mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-08 23:07:33 +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
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
scroll-knob-vertical-thin
|
||||
rotate: false
|
||||
xy: 2033, 361
|
||||
size: 12, 40
|
||||
orig: 12, 40
|
||||
offset: 0, 0
|
||||
index: -1
|
||||
selection
|
||||
rotate: false
|
||||
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 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 ScrollPaneStyle defaultPane, horizontalPane;
|
||||
public static ScrollPaneStyle defaultPane, horizontalPane, smallPane;
|
||||
public static KeybindDialogStyle defaultKeybindDialog;
|
||||
public static SliderStyle defaultSlider, vSlider;
|
||||
public static LabelStyle defaultLabel, outlineLabel;
|
||||
@ -225,6 +225,10 @@ public class Styles{
|
||||
hScroll = scrollHorizontal;
|
||||
hScrollKnob = scrollKnobHorizontalBlack;
|
||||
}};
|
||||
smallPane = new ScrollPaneStyle(){{
|
||||
vScroll = clear;
|
||||
vScrollKnob = scrollKnobVerticalThin;
|
||||
}};
|
||||
|
||||
defaultKeybindDialog = new KeybindDialogStyle(){{
|
||||
keyColor = Pal.accent;
|
||||
|
@ -232,7 +232,7 @@ public class PlacementFragment extends Fragment{
|
||||
frame.row();
|
||||
frame.table(Tex.pane2, blocksSelect -> {
|
||||
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.table(control.input::buildPlacementUI).name("inputTable").growX();
|
||||
}).fillY().bottom().touchable(Touchable.enabled);
|
||||
|
Reference in New Issue
Block a user