Styles documented
This commit is contained in:
@@ -457,19 +457,19 @@ public class DesktopInput extends InputHandler{
|
||||
table.row();
|
||||
table.left().margin(0f).defaults().size(48f).left();
|
||||
|
||||
table.button(Icon.paste, Styles.clearPartiali, () -> {
|
||||
table.button(Icon.paste, Styles.clearNonei, () -> {
|
||||
ui.schematics.show();
|
||||
}).tooltip("@schematics");
|
||||
|
||||
table.button(Icon.book, Styles.clearPartiali, () -> {
|
||||
table.button(Icon.book, Styles.clearNonei, () -> {
|
||||
ui.database.show();
|
||||
}).tooltip("@database");
|
||||
|
||||
table.button(Icon.tree, Styles.clearPartiali, () -> {
|
||||
table.button(Icon.tree, Styles.clearNonei, () -> {
|
||||
ui.research.show();
|
||||
}).visible(() -> state.isCampaign()).tooltip("@research");
|
||||
|
||||
table.button(Icon.map, Styles.clearPartiali, () -> {
|
||||
table.button(Icon.map, Styles.clearNonei, () -> {
|
||||
ui.planet.show();
|
||||
}).visible(() -> state.isCampaign()).tooltip("@planetmap");
|
||||
}
|
||||
|
||||
@@ -189,18 +189,18 @@ public class MobileInput extends InputHandler implements GestureListener{
|
||||
table.row();
|
||||
table.left().margin(0f).defaults().size(48f);
|
||||
|
||||
table.button(Icon.hammer, Styles.clearTogglePartiali, () -> {
|
||||
table.button(Icon.hammer, Styles.clearNoneTogglei, () -> {
|
||||
mode = mode == breaking ? block == null ? none : placing : breaking;
|
||||
lastBlock = block;
|
||||
}).update(l -> l.setChecked(mode == breaking)).name("breakmode");
|
||||
|
||||
//diagonal swap button
|
||||
table.button(Icon.diagonal, Styles.clearTogglePartiali, () -> {
|
||||
table.button(Icon.diagonal, Styles.clearNoneTogglei, () -> {
|
||||
Core.settings.put("swapdiagonal", !Core.settings.getBool("swapdiagonal"));
|
||||
}).update(l -> l.setChecked(Core.settings.getBool("swapdiagonal")));
|
||||
|
||||
//rotate button
|
||||
table.button(Icon.right, Styles.clearTogglePartiali, () -> {
|
||||
table.button(Icon.right, Styles.clearNoneTogglei, () -> {
|
||||
if(block != null && block.rotate){
|
||||
rotation = Mathf.mod(rotation + 1, 4);
|
||||
}else{
|
||||
@@ -219,7 +219,7 @@ public class MobileInput extends InputHandler implements GestureListener{
|
||||
});
|
||||
|
||||
//confirm button
|
||||
table.button(Icon.ok, Styles.clearPartiali, () -> {
|
||||
table.button(Icon.ok, Styles.clearNonei, () -> {
|
||||
for(BuildPlan plan : selectPlans){
|
||||
Tile tile = plan.tile();
|
||||
|
||||
@@ -273,7 +273,7 @@ public class MobileInput extends InputHandler implements GestureListener{
|
||||
t.table(Tex.pane, b -> {
|
||||
b.defaults().size(50f);
|
||||
|
||||
ImageButtonStyle style = Styles.clearPartiali;
|
||||
ImageButtonStyle style = Styles.clearNonei;
|
||||
|
||||
b.button(Icon.save, style, this::showSchematicSave).disabled(f -> lastSchematic == null || lastSchematic.file != null);
|
||||
b.button(Icon.cancel, style, () -> {
|
||||
|
||||
Reference in New Issue
Block a user