Show All (#5954)
This commit is contained in:
@@ -402,6 +402,7 @@ 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
|
waves.units.hide = Hide All
|
||||||
|
waves.units.show = Show All
|
||||||
|
|
||||||
#these are intentionally in lower case
|
#these are intentionally in lower case
|
||||||
wavemode.counts = counts
|
wavemode.counts = counts
|
||||||
|
|||||||
@@ -181,7 +181,7 @@ public class WaveGraph extends Table{
|
|||||||
|
|
||||||
colors.clear();
|
colors.clear();
|
||||||
colors.left();
|
colors.left();
|
||||||
colors.button("@waves.units.hide", Styles.fullTogglet, () -> {
|
colors.button("@waves.units.hide", Styles.cleart, () -> {
|
||||||
if(hidden.size == usedCopy.size){
|
if(hidden.size == usedCopy.size){
|
||||||
hidden.clear();
|
hidden.clear();
|
||||||
}else{
|
}else{
|
||||||
@@ -191,7 +191,7 @@ public class WaveGraph extends Table{
|
|||||||
used.clear();
|
used.clear();
|
||||||
used.addAll(usedCopy);
|
used.addAll(usedCopy);
|
||||||
for(UnitType o : hidden) used.remove(o);
|
for(UnitType o : hidden) used.remove(o);
|
||||||
}).update(b -> b.setChecked(hidden.size == usedCopy.size)).height(32f).width(130f);
|
}).update(b -> b.setText(hidden.size == usedCopy.size ? "@waves.units.show" : "@waves.units.hide")).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