Hide all button for units (#5953)
* Hide all button for units * Add bundle property
This commit is contained in:
committed by
GitHub
parent
efae0d3b6a
commit
34d2a0d3a0
@@ -401,6 +401,7 @@ waves.sort.reverse = Reverse Sort
|
|||||||
waves.sort.begin = Begin
|
waves.sort.begin = Begin
|
||||||
waves.sort.health = Health
|
waves.sort.health = Health
|
||||||
waves.sort.type = Type
|
waves.sort.type = Type
|
||||||
|
waves.units.hide = Hide All
|
||||||
|
|
||||||
#these are intentionally in lower case
|
#these are intentionally in lower case
|
||||||
wavemode.counts = counts
|
wavemode.counts = counts
|
||||||
|
|||||||
@@ -181,6 +181,17 @@ public class WaveGraph extends Table{
|
|||||||
|
|
||||||
colors.clear();
|
colors.clear();
|
||||||
colors.left();
|
colors.left();
|
||||||
|
colors.button("@waves.units.hide", Styles.fullTogglet, () -> {
|
||||||
|
if(hidden.size == usedCopy.size){
|
||||||
|
hidden.clear();
|
||||||
|
}else{
|
||||||
|
hidden.addAll(usedCopy);
|
||||||
|
}
|
||||||
|
|
||||||
|
used.clear();
|
||||||
|
used.addAll(usedCopy);
|
||||||
|
for(UnitType o : hidden) used.remove(o);
|
||||||
|
}).update(b -> b.setChecked(hidden.size == usedCopy.size)).height(32f).width(130f);
|
||||||
colors.pane(t -> {
|
colors.pane(t -> {
|
||||||
t.left();
|
t.left();
|
||||||
for(UnitType type : used){
|
for(UnitType type : used){
|
||||||
|
|||||||
Reference in New Issue
Block a user