Styles documented
This commit is contained in:
@@ -134,7 +134,7 @@ public class HudFragment{
|
||||
select.left();
|
||||
select.defaults().size(dsize).left();
|
||||
|
||||
ImageButtonStyle style = Styles.clearTransi;
|
||||
ImageButtonStyle style = Styles.cleari;
|
||||
|
||||
select.button(Icon.menu, style, ui.paused::show).name("menu");
|
||||
flip = select.button(Icon.upOpen, style, this::toggleMenus).get();
|
||||
@@ -242,7 +242,7 @@ public class HudFragment{
|
||||
teams.left();
|
||||
int i = 0;
|
||||
for(Team team : Team.baseTeams){
|
||||
ImageButton button = teams.button(Tex.whiteui, Styles.clearTogglePartiali, 40f, () -> Call.setPlayerTeamEditor(player, team))
|
||||
ImageButton button = teams.button(Tex.whiteui, Styles.clearNoneTogglei, 40f, () -> Call.setPlayerTeamEditor(player, team))
|
||||
.size(50f).margin(6f).get();
|
||||
button.getImageCell().grow();
|
||||
button.getStyle().imageUpColor = team.color;
|
||||
|
||||
@@ -226,7 +226,7 @@ public class MenuFragment{
|
||||
for(Buttoni b : buttons){
|
||||
if(b == null) continue;
|
||||
Button[] out = {null};
|
||||
out[0] = t.button(b.text, b.icon, Styles.clearToggleMenut, () -> {
|
||||
out[0] = t.button(b.text, b.icon, Styles.flatToggleMenut, () -> {
|
||||
if(currentMenu == out[0]){
|
||||
currentMenu = null;
|
||||
fadeOutMenu();
|
||||
|
||||
@@ -343,7 +343,7 @@ public class PlacementFragment{
|
||||
.left().width(190f).padLeft(5);
|
||||
header.add().growX();
|
||||
if(unlocked(displayBlock)){
|
||||
header.button("?", Styles.clearPartialt, () -> {
|
||||
header.button("?", Styles.flatBordert, () -> {
|
||||
ui.content.show(displayBlock);
|
||||
Events.fire(new BlockInfoEvent());
|
||||
}).size(8 * 5).padTop(-5).padRight(-5).right().grow().name("blockinfo");
|
||||
@@ -518,7 +518,7 @@ public class PlacementFragment{
|
||||
needsAssign = false;
|
||||
}
|
||||
|
||||
categories.button(ui.getIcon(cat.name()), Styles.clearToggleTransi, () -> {
|
||||
categories.button(ui.getIcon(cat.name()), Styles.clearTogglei, () -> {
|
||||
currentCategory = cat;
|
||||
if(control.input.block != null){
|
||||
control.input.block = getSelectedBlock(currentCategory);
|
||||
|
||||
Reference in New Issue
Block a user