mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-29 00:50:06 +07:00
Fixed campaign rules in portrait mode
This commit is contained in:
parent
90fcafa80d
commit
a293cb4687
@ -29,6 +29,10 @@ public class CampaignRulesDialog extends BaseDialog{
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
onResize(() -> {
|
||||
rebuild();
|
||||
});
|
||||
}
|
||||
|
||||
void rebuild(){
|
||||
@ -50,6 +54,10 @@ public class CampaignRulesDialog extends BaseDialog{
|
||||
t.button(diff.localized(), style, () -> {
|
||||
rules.difficulty = diff;
|
||||
}).group(group).checked(b -> rules.difficulty == diff);
|
||||
|
||||
if(Core.graphics.isPortrait() && diff.ordinal() % 2 == 1){
|
||||
t.row();
|
||||
}
|
||||
}
|
||||
}).left().fill(false).expand(false, false).row();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user