mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-04-26 23:41:22 -07:00
Fixed some disabled image buttons being 'clickable'
This commit is contained in:
parent
9cb2ae259c
commit
4d8ebbcc15
2 changed files with 3 additions and 3 deletions
|
|
@ -276,6 +276,7 @@ public class Styles{
|
|||
imageCheckedColor = Color.white;
|
||||
imageDownColor = Color.white;
|
||||
imageUpColor = Color.gray;
|
||||
imageDisabledColor = Color.darkGray;
|
||||
}};
|
||||
selecti = new ImageButtonStyle(){{
|
||||
checked = buttonSelect;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ package mindustry.ui.dialogs;
|
|||
|
||||
import arc.*;
|
||||
import arc.graphics.*;
|
||||
import arc.input.KeyCode;
|
||||
import arc.scene.style.*;
|
||||
import arc.scene.ui.*;
|
||||
import arc.scene.ui.layout.*;
|
||||
|
|
@ -108,7 +107,7 @@ public abstract class MapListDialog extends BaseDialog{
|
|||
int i = 0;
|
||||
|
||||
Seq<Map> mapList = new Seq<>();
|
||||
|
||||
|
||||
if(showCustom) mapList.addAll(maps.customMaps());
|
||||
if(showBuiltIn) mapList.addAll(maps.defaultMaps());
|
||||
if(showModded) mapList.addAll(maps.moddedMaps());
|
||||
|
|
@ -224,7 +223,7 @@ public abstract class MapListDialog extends BaseDialog{
|
|||
}
|
||||
Core.settings.put("editorprioritizecustom", prioritizeCustom);
|
||||
rebuildMaps();
|
||||
}).size(60f).checked(b-> showCustom && prioritizeCustom).tooltip("@editor.filters.prioritizecustom").disabled(b -> !showCustom);
|
||||
}).size(60f).checked(b -> showCustom && prioritizeCustom).tooltip("@editor.filters.prioritizecustom").disabled(b -> !showCustom);
|
||||
right.button(ui.getIcon("hammer"), Styles.emptyTogglei, () -> {
|
||||
prioritizeModded = !prioritizeModded;
|
||||
if(prioritizeCustom){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue