mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-16 22:31:53 -08:00
heck
This commit is contained in:
parent
7d1a8f5404
commit
97067a6ee2
1 changed files with 12 additions and 0 deletions
|
|
@ -21,6 +21,7 @@ import io.anuke.arc.util.Scaling;
|
|||
import io.anuke.arc.util.Time;
|
||||
import io.anuke.arc.util.Tmp;
|
||||
import io.anuke.mindustry.core.GameState.State;
|
||||
import io.anuke.mindustry.game.EventType.PlayEvent;
|
||||
import io.anuke.mindustry.game.EventType.StateChangeEvent;
|
||||
import io.anuke.mindustry.game.UnlockableContent;
|
||||
import io.anuke.mindustry.gen.Call;
|
||||
|
|
@ -46,6 +47,16 @@ public class HudFragment extends Fragment{
|
|||
private float coreAttackTime;
|
||||
private float lastCoreHP;
|
||||
private float coreAttackOpacity = 0f;
|
||||
private Table goshDarnHeckingFlippedTableWhyDoesThisHappen;
|
||||
|
||||
{
|
||||
Events.on(PlayEvent.class, event -> {
|
||||
if(goshDarnHeckingFlippedTableWhyDoesThisHappen != null){
|
||||
goshDarnHeckingFlippedTableWhyDoesThisHappen.invalidateHierarchy();
|
||||
goshDarnHeckingFlippedTableWhyDoesThisHappen.pack();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void build(Group parent){
|
||||
|
||||
|
|
@ -55,6 +66,7 @@ public class HudFragment extends Fragment{
|
|||
|
||||
if(mobile){
|
||||
cont.table(select -> {
|
||||
goshDarnHeckingFlippedTableWhyDoesThisHappen = select;
|
||||
select.left();
|
||||
select.defaults().size(dsize).left();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue