mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-10 15:57:37 +07:00
Layout fixes
This commit is contained in:
BIN
core/assets-raw/sprites/ui/scroll-knob-vertical-thin.png
Normal file
BIN
core/assets-raw/sprites/ui/scroll-knob-vertical-thin.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
@ -19199,6 +19199,13 @@ scroll-knob-vertical-black
|
|||||||
orig: 24, 40
|
orig: 24, 40
|
||||||
offset: 0, 0
|
offset: 0, 0
|
||||||
index: -1
|
index: -1
|
||||||
|
scroll-knob-vertical-thin
|
||||||
|
rotate: false
|
||||||
|
xy: 2033, 361
|
||||||
|
size: 12, 40
|
||||||
|
orig: 12, 40
|
||||||
|
offset: 0, 0
|
||||||
|
index: -1
|
||||||
selection
|
selection
|
||||||
rotate: false
|
rotate: false
|
||||||
xy: 309, 975
|
xy: 309, 975
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 882 KiB After Width: | Height: | Size: 882 KiB |
@ -27,7 +27,7 @@ public class Styles{
|
|||||||
public static ButtonStyle defaultb, waveb;
|
public static ButtonStyle defaultb, waveb;
|
||||||
public static TextButtonStyle defaultt, squaret, nodet, cleart, discordt, infot, clearPartialt, clearTogglet, clearToggleMenut, togglet;
|
public static TextButtonStyle defaultt, squaret, nodet, cleart, discordt, infot, clearPartialt, clearTogglet, clearToggleMenut, togglet;
|
||||||
public static ImageButtonStyle defaulti, nodei, righti, emptyi, emptytogglei, selecti, cleari, clearFulli, clearPartiali, clearPartial2i, clearTogglei, clearTransi, clearToggleTransi, clearTogglePartiali;
|
public static ImageButtonStyle defaulti, nodei, righti, emptyi, emptytogglei, selecti, cleari, clearFulli, clearPartiali, clearPartial2i, clearTogglei, clearTransi, clearToggleTransi, clearTogglePartiali;
|
||||||
public static ScrollPaneStyle defaultPane, horizontalPane;
|
public static ScrollPaneStyle defaultPane, horizontalPane, smallPane;
|
||||||
public static KeybindDialogStyle defaultKeybindDialog;
|
public static KeybindDialogStyle defaultKeybindDialog;
|
||||||
public static SliderStyle defaultSlider, vSlider;
|
public static SliderStyle defaultSlider, vSlider;
|
||||||
public static LabelStyle defaultLabel, outlineLabel;
|
public static LabelStyle defaultLabel, outlineLabel;
|
||||||
@ -225,6 +225,10 @@ public class Styles{
|
|||||||
hScroll = scrollHorizontal;
|
hScroll = scrollHorizontal;
|
||||||
hScrollKnob = scrollKnobHorizontalBlack;
|
hScrollKnob = scrollKnobHorizontalBlack;
|
||||||
}};
|
}};
|
||||||
|
smallPane = new ScrollPaneStyle(){{
|
||||||
|
vScroll = clear;
|
||||||
|
vScrollKnob = scrollKnobVerticalThin;
|
||||||
|
}};
|
||||||
|
|
||||||
defaultKeybindDialog = new KeybindDialogStyle(){{
|
defaultKeybindDialog = new KeybindDialogStyle(){{
|
||||||
keyColor = Pal.accent;
|
keyColor = Pal.accent;
|
||||||
|
@ -232,7 +232,7 @@ public class PlacementFragment extends Fragment{
|
|||||||
frame.row();
|
frame.row();
|
||||||
frame.table(Tex.pane2, blocksSelect -> {
|
frame.table(Tex.pane2, blocksSelect -> {
|
||||||
blocksSelect.margin(4).marginTop(0);
|
blocksSelect.margin(4).marginTop(0);
|
||||||
blocksSelect.table(blocks -> blockTable = blocks).grow();
|
blocksSelect.pane(blocks -> blockTable = blocks).height(194f).grow().get().setStyle(Styles.smallPane);
|
||||||
blocksSelect.row();
|
blocksSelect.row();
|
||||||
blocksSelect.table(control.input::buildPlacementUI).name("inputTable").growX();
|
blocksSelect.table(control.input::buildPlacementUI).name("inputTable").growX();
|
||||||
}).fillY().bottom().touchable(Touchable.enabled);
|
}).fillY().bottom().touchable(Touchable.enabled);
|
||||||
|
Reference in New Issue
Block a user