Branch created
Before Width: | Height: | Size: 208 B After Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 1.2 MiB After Width: | Height: | Size: 816 KiB |
Before Width: | Height: | Size: 254 KiB After Width: | Height: | Size: 150 KiB |
Before Width: | Height: | Size: 276 KiB After Width: | Height: | Size: 233 KiB |
Before Width: | Height: | Size: 133 KiB After Width: | Height: | Size: 86 KiB |
Before Width: | Height: | Size: 158 KiB After Width: | Height: | Size: 94 KiB |
Before Width: | Height: | Size: 235 KiB After Width: | Height: | Size: 169 KiB |
Before Width: | Height: | Size: 401 KiB After Width: | Height: | Size: 369 KiB |
Before Width: | Height: | Size: 295 KiB After Width: | Height: | Size: 69 KiB |
Before Width: | Height: | Size: 278 KiB After Width: | Height: | Size: 233 KiB |
@ -5,7 +5,6 @@ import io.anuke.arc.graphics.g2d.*;
|
||||
import io.anuke.arc.scene.Group;
|
||||
import io.anuke.arc.scene.ui.layout.Unit;
|
||||
import io.anuke.mindustry.core.GameState.State;
|
||||
import io.anuke.mindustry.graphics.Shaders;
|
||||
|
||||
import static io.anuke.mindustry.Vars.state;
|
||||
|
||||
@ -16,9 +15,9 @@ public class BackgroundFragment extends Fragment{
|
||||
Core.scene.table().addRect((a, b, w, h) -> {
|
||||
Draw.colorl(0.1f);
|
||||
Fill.crect(0, 0, w, h);
|
||||
Draw.shader(Shaders.menu);
|
||||
Fill.crect(0, 0, w, h);
|
||||
Draw.shader();
|
||||
//Draw.shader(Shaders.menu);
|
||||
// Fill.crect(0, 0, w, h);
|
||||
//Draw.shader();
|
||||
|
||||
boolean portrait = Core.graphics.getWidth() < Core.graphics.getHeight();
|
||||
float logoscl = (int)Unit.dp.scl(1);
|
||||
@ -27,7 +26,7 @@ public class BackgroundFragment extends Fragment{
|
||||
float logoh = logo.getHeight() * logoscl;
|
||||
|
||||
Draw.color();
|
||||
Draw.rect(logo, (int)(w / 2), (int)(h - 10 - logoh - Unit.dp.scl(portrait ? 30f : 0)) + logoh / 2, logow, logoh);
|
||||
//Draw.rect(logo, (int)(w / 2), (int)(h - 10 - logoh - Unit.dp.scl(portrait ? 30f : 0)) + logoh / 2, logow, logoh);
|
||||
}).visible(() -> state.is(State.menu)).grow();
|
||||
}
|
||||
}
|
||||
|