diff --git a/Scenes/Main.tscn b/Scenes/Main.tscn index bf093606..63896be9 100644 --- a/Scenes/Main.tscn +++ b/Scenes/Main.tscn @@ -5468,7 +5468,7 @@ size_flags_horizontal = 3 size_flags_vertical = 3 [node name="DkSlabsetVoxelView" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer" instance=ExtResource( 19 )] -margin_right = 933.0 +margin_right = 996.0 margin_bottom = 915.0 displayingType = 2 @@ -5483,7 +5483,7 @@ anchor_right = 1.0 anchor_bottom = 1.0 [node name="SlabsetSlabNameLabel" type="Label" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/DkSlabsetVoxelView/Control/VBoxContainer"] -margin_right = 933.0 +margin_right = 996.0 margin_bottom = 21.0 size_flags_vertical = 1 text = "Impenetrable Rock" @@ -5491,54 +5491,54 @@ align = 2 [node name="VariationInfoLabel" type="Label" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/DkSlabsetVoxelView/Control/VBoxContainer"] margin_top = 25.0 -margin_right = 933.0 +margin_right = 996.0 margin_bottom = 46.0 size_flags_vertical = 1 text = "Variation info" align = 2 [node name="VBoxContainer" type="VBoxContainer" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer"] -margin_left = 937.0 +margin_left = 1000.0 margin_right = 1236.0 margin_bottom = 915.0 size_flags_vertical = 3 [node name="ScrollContainer" type="ScrollContainer" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer"] -margin_right = 299.0 +margin_right = 236.0 margin_bottom = 839.0 size_flags_vertical = 3 scroll_horizontal_enabled = false [node name="VBoxContainer" type="VBoxContainer" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/ScrollContainer"] -margin_right = 299.0 +margin_right = 236.0 margin_bottom = 839.0 size_flags_vertical = 3 [node name="PanelContainer4" type="PanelContainer" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/ScrollContainer/VBoxContainer"] -margin_right = 299.0 +margin_right = 236.0 margin_bottom = 39.0 [node name="SlabsetFilenameLabel" type="Label" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/ScrollContainer/VBoxContainer/PanelContainer4"] margin_left = 9.0 margin_top = 9.0 -margin_right = 290.0 +margin_right = 227.0 margin_bottom = 30.0 text = "slabset.toml" align = 1 [node name="PanelContainer2" type="PanelContainer" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/ScrollContainer/VBoxContainer"] margin_top = 43.0 -margin_right = 299.0 +margin_right = 236.0 margin_bottom = 123.0 [node name="VBoxContainer" type="VBoxContainer" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/ScrollContainer/VBoxContainer/PanelContainer2"] margin_left = 9.0 margin_top = 9.0 -margin_right = 290.0 +margin_right = 227.0 margin_bottom = 71.0 [node name="GridContainer" type="GridContainer" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/ScrollContainer/VBoxContainer/PanelContainer2/VBoxContainer"] -margin_right = 281.0 +margin_right = 218.0 margin_bottom = 31.0 size_flags_horizontal = 11 size_flags_vertical = 3 @@ -5546,7 +5546,7 @@ columns = 2 [node name="SlabsetTextSIDLabel" type="Label" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/ScrollContainer/VBoxContainer/PanelContainer2/VBoxContainer/GridContainer"] margin_top = 5.0 -margin_right = 139.0 +margin_right = 107.0 margin_bottom = 26.0 size_flags_horizontal = 3 text = "Slab ID" @@ -5555,8 +5555,8 @@ __meta__ = { } [node name="SlabsetIDSpinBox" type="SpinBox" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/ScrollContainer/VBoxContainer/PanelContainer2/VBoxContainer/GridContainer"] -margin_left = 207.0 -margin_right = 281.0 +margin_left = 144.0 +margin_right = 218.0 margin_bottom = 31.0 mouse_filter = 1 size_flags_horizontal = 10 @@ -5568,50 +5568,50 @@ __meta__ = { [node name="GridContainer2" type="GridContainer" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/ScrollContainer/VBoxContainer/PanelContainer2/VBoxContainer"] margin_top = 35.0 -margin_right = 281.0 +margin_right = 218.0 margin_bottom = 62.0 columns = 3 [node name="SlabCopyButton" type="Button" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/ScrollContainer/VBoxContainer/PanelContainer2/VBoxContainer/GridContainer2"] -margin_right = 100.0 +margin_right = 70.0 margin_bottom = 27.0 size_flags_horizontal = 3 -text = "Copy slab" +text = "Copy" [node name="SlabPasteButton" type="Button" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/ScrollContainer/VBoxContainer/PanelContainer2/VBoxContainer/GridContainer2"] -margin_left = 104.0 -margin_right = 207.0 +margin_left = 74.0 +margin_right = 144.0 margin_bottom = 27.0 size_flags_horizontal = 3 -text = "Paste slab" +text = "Paste" [node name="SlabRevertButton" type="Button" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/ScrollContainer/VBoxContainer/PanelContainer2/VBoxContainer/GridContainer2"] -margin_left = 211.0 -margin_right = 281.0 +margin_left = 148.0 +margin_right = 218.0 margin_bottom = 27.0 size_flags_horizontal = 3 text = "Revert" [node name="PanelContainer5" type="PanelContainer" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/ScrollContainer/VBoxContainer"] margin_top = 127.0 -margin_right = 299.0 +margin_right = 236.0 margin_bottom = 238.0 [node name="VBoxContainer" type="VBoxContainer" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/ScrollContainer/VBoxContainer/PanelContainer5"] margin_left = 9.0 margin_top = 9.0 -margin_right = 290.0 +margin_right = 227.0 margin_bottom = 102.0 [node name="GridContainer" type="GridContainer" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/ScrollContainer/VBoxContainer/PanelContainer5/VBoxContainer"] -margin_right = 281.0 +margin_right = 218.0 margin_bottom = 31.0 size_flags_horizontal = 11 columns = 2 [node name="Label" type="Label" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/ScrollContainer/VBoxContainer/PanelContainer5/VBoxContainer/GridContainer"] margin_top = 5.0 -margin_right = 139.0 +margin_right = 107.0 margin_bottom = 26.0 size_flags_horizontal = 3 text = "Variation" @@ -5620,8 +5620,8 @@ __meta__ = { } [node name="VariationNumberSpinBox" type="SpinBox" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/ScrollContainer/VBoxContainer/PanelContainer5/VBoxContainer/GridContainer"] -margin_left = 207.0 -margin_right = 281.0 +margin_left = 144.0 +margin_right = 218.0 margin_bottom = 31.0 mouse_filter = 1 size_flags_horizontal = 10 @@ -5633,62 +5633,60 @@ __meta__ = { [node name="GridContainer2" type="GridContainer" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/ScrollContainer/VBoxContainer/PanelContainer5/VBoxContainer"] margin_top = 35.0 -margin_right = 281.0 +margin_right = 218.0 margin_bottom = 93.0 columns = 3 [node name="VarCopyButton" type="Button" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/ScrollContainer/VBoxContainer/PanelContainer5/VBoxContainer/GridContainer2"] -margin_right = 100.0 +margin_right = 71.0 margin_bottom = 27.0 -rect_min_size = Vector2( 100, 0 ) size_flags_horizontal = 3 text = "Copy" [node name="VarPasteButton" type="Button" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/ScrollContainer/VBoxContainer/PanelContainer5/VBoxContainer/GridContainer2"] -margin_left = 104.0 -margin_right = 207.0 +margin_left = 75.0 +margin_right = 144.0 margin_bottom = 27.0 -rect_min_size = Vector2( 103, 0 ) size_flags_horizontal = 3 text = "Paste" [node name="VarRevertButton" type="Button" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/ScrollContainer/VBoxContainer/PanelContainer5/VBoxContainer/GridContainer2"] -margin_left = 211.0 -margin_right = 281.0 +margin_left = 148.0 +margin_right = 218.0 margin_bottom = 27.0 size_flags_horizontal = 3 text = "Revert" [node name="VarRotateButton" type="Button" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/ScrollContainer/VBoxContainer/PanelContainer5/VBoxContainer/GridContainer2"] margin_top = 31.0 -margin_right = 100.0 +margin_right = 71.0 margin_bottom = 58.0 size_flags_horizontal = 3 text = "Rotate" [node name="PanelContainer" type="PanelContainer" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/ScrollContainer/VBoxContainer"] margin_top = 242.0 -margin_right = 299.0 +margin_right = 236.0 margin_bottom = 285.0 [node name="VBoxContainer" type="VBoxContainer" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/ScrollContainer/VBoxContainer/PanelContainer"] margin_left = 9.0 margin_top = 9.0 -margin_right = 290.0 +margin_right = 227.0 margin_bottom = 34.0 size_flags_horizontal = 3 size_flags_vertical = 3 [node name="Label" type="Label" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/ScrollContainer/VBoxContainer/PanelContainer/VBoxContainer"] -margin_right = 281.0 +margin_right = 218.0 margin_bottom = 21.0 text = "Columnset IDs" align = 1 [node name="GridContainerDynamicColumns3x3" type="GridContainer" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/ScrollContainer/VBoxContainer/PanelContainer/VBoxContainer"] -margin_left = 140.0 +margin_left = 109.0 margin_top = 25.0 -margin_right = 140.0 +margin_right = 109.0 margin_bottom = 25.0 size_flags_horizontal = 6 size_flags_vertical = 4 @@ -5696,7 +5694,7 @@ columns = 3 [node name="PanelContainer3" type="PanelContainer" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/ScrollContainer/VBoxContainer"] margin_top = 289.0 -margin_right = 299.0 +margin_right = 236.0 margin_bottom = 839.0 size_flags_horizontal = 3 size_flags_vertical = 3 @@ -5704,68 +5702,68 @@ size_flags_vertical = 3 [node name="VBoxContainer" type="VBoxContainer" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/ScrollContainer/VBoxContainer/PanelContainer3"] margin_left = 9.0 margin_top = 9.0 -margin_right = 290.0 +margin_right = 227.0 margin_bottom = 541.0 [node name="Label2" type="Label" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/ScrollContainer/VBoxContainer/PanelContainer3/VBoxContainer"] -margin_right = 281.0 +margin_right = 218.0 margin_bottom = 21.0 text = "Objects" align = 1 [node name="HBoxContainer" type="HBoxContainer" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/ScrollContainer/VBoxContainer/PanelContainer3/VBoxContainer"] margin_top = 25.0 -margin_right = 281.0 +margin_right = 218.0 margin_bottom = 52.0 size_flags_horizontal = 3 [node name="ObjAddButton" type="Button" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/ScrollContainer/VBoxContainer/PanelContainer3/VBoxContainer/HBoxContainer"] -margin_right = 138.0 +margin_right = 107.0 margin_bottom = 27.0 size_flags_horizontal = 3 text = "Add" [node name="ObjDeleteButton" type="Button" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/ScrollContainer/VBoxContainer/PanelContainer3/VBoxContainer/HBoxContainer"] -margin_left = 142.0 -margin_right = 281.0 +margin_left = 111.0 +margin_right = 218.0 margin_bottom = 27.0 size_flags_horizontal = 3 text = "Delete" [node name="SlabsetObjectSection" type="ScrollContainer" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/ScrollContainer/VBoxContainer/PanelContainer3/VBoxContainer"] margin_top = 56.0 -margin_right = 281.0 +margin_right = 218.0 margin_bottom = 532.0 size_flags_vertical = 3 scroll_horizontal_enabled = false [node name="VBoxContainer" type="VBoxContainer" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/ScrollContainer/VBoxContainer/PanelContainer3/VBoxContainer/SlabsetObjectSection"] -margin_right = 281.0 +margin_right = 218.0 margin_bottom = 476.0 size_flags_horizontal = 3 size_flags_vertical = 3 [node name="PanelContainer" type="PanelContainer" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/ScrollContainer/VBoxContainer/PanelContainer3/VBoxContainer/SlabsetObjectSection/VBoxContainer"] -margin_right = 281.0 +margin_right = 218.0 margin_bottom = 49.0 [node name="GridContainer2" type="GridContainer" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/ScrollContainer/VBoxContainer/PanelContainer3/VBoxContainer/SlabsetObjectSection/VBoxContainer/PanelContainer"] margin_left = 9.0 margin_top = 9.0 -margin_right = 272.0 +margin_right = 209.0 margin_bottom = 40.0 columns = 2 [node name="ObjNameLabel" type="Label" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/ScrollContainer/VBoxContainer/PanelContainer3/VBoxContainer/SlabsetObjectSection/VBoxContainer/PanelContainer/GridContainer2"] margin_top = 5.0 -margin_right = 130.0 +margin_right = 98.0 margin_bottom = 26.0 size_flags_horizontal = 3 text = "ID" [node name="ObjObjectIndexSpinBox" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/ScrollContainer/VBoxContainer/PanelContainer3/VBoxContainer/SlabsetObjectSection/VBoxContainer/PanelContainer/GridContainer2" instance=ExtResource( 152 )] -margin_left = 189.0 -margin_right = 263.0 +margin_left = 126.0 +margin_right = 200.0 margin_bottom = 31.0 size_flags_horizontal = 10 min_value = -1.0 @@ -5773,7 +5771,7 @@ max_value = 1e+06 [node name="GridContainer" type="GridContainer" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/ScrollContainer/VBoxContainer/PanelContainer3/VBoxContainer/SlabsetObjectSection/VBoxContainer"] margin_top = 53.0 -margin_right = 281.0 +margin_right = 218.0 margin_bottom = 327.0 size_flags_horizontal = 3 columns = 2 @@ -5785,8 +5783,8 @@ margin_bottom = 26.0 text = "ThingType" [node name="ObjThingTypeSpinBox" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/ScrollContainer/VBoxContainer/PanelContainer3/VBoxContainer/SlabsetObjectSection/VBoxContainer/GridContainer" instance=ExtResource( 152 )] -margin_left = 207.0 -margin_right = 281.0 +margin_left = 144.0 +margin_right = 218.0 margin_bottom = 31.0 size_flags_horizontal = 10 max_value = 1e+06 @@ -5798,9 +5796,9 @@ margin_bottom = 61.0 text = "Subtype" [node name="ObjSubtypeSpinBox" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/ScrollContainer/VBoxContainer/PanelContainer3/VBoxContainer/SlabsetObjectSection/VBoxContainer/GridContainer" instance=ExtResource( 152 )] -margin_left = 207.0 +margin_left = 144.0 margin_top = 35.0 -margin_right = 281.0 +margin_right = 218.0 margin_bottom = 66.0 size_flags_horizontal = 10 max_value = 1e+06 @@ -5812,9 +5810,9 @@ margin_bottom = 96.0 text = "Subtile" [node name="ObjSubtileSpinBox" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/ScrollContainer/VBoxContainer/PanelContainer3/VBoxContainer/SlabsetObjectSection/VBoxContainer/GridContainer" instance=ExtResource( 152 )] -margin_left = 207.0 +margin_left = 144.0 margin_top = 70.0 -margin_right = 281.0 +margin_right = 218.0 margin_bottom = 101.0 size_flags_horizontal = 10 max_value = 8.0 @@ -5826,9 +5824,9 @@ margin_bottom = 131.0 text = "RelativeX" [node name="ObjRelativeXSpinBox" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/ScrollContainer/VBoxContainer/PanelContainer3/VBoxContainer/SlabsetObjectSection/VBoxContainer/GridContainer" instance=ExtResource( 152 )] -margin_left = 207.0 +margin_left = 144.0 margin_top = 105.0 -margin_right = 281.0 +margin_right = 218.0 margin_bottom = 136.0 size_flags_horizontal = 10 min_value = -1e+06 @@ -5842,9 +5840,9 @@ margin_bottom = 166.0 text = "RelativeY" [node name="ObjRelativeYSpinBox" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/ScrollContainer/VBoxContainer/PanelContainer3/VBoxContainer/SlabsetObjectSection/VBoxContainer/GridContainer" instance=ExtResource( 152 )] -margin_left = 207.0 +margin_left = 144.0 margin_top = 140.0 -margin_right = 281.0 +margin_right = 218.0 margin_bottom = 171.0 size_flags_horizontal = 10 min_value = -1e+06 @@ -5858,9 +5856,9 @@ margin_bottom = 201.0 text = "RelativeZ" [node name="ObjRelativeZSpinBox" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/ScrollContainer/VBoxContainer/PanelContainer3/VBoxContainer/SlabsetObjectSection/VBoxContainer/GridContainer" instance=ExtResource( 152 )] -margin_left = 207.0 +margin_left = 144.0 margin_top = 175.0 -margin_right = 281.0 +margin_right = 218.0 margin_bottom = 206.0 size_flags_horizontal = 10 min_value = -1e+06 @@ -5874,9 +5872,9 @@ margin_bottom = 236.0 text = "EffectRange" [node name="ObjEffectRangeSpinBox" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/ScrollContainer/VBoxContainer/PanelContainer3/VBoxContainer/SlabsetObjectSection/VBoxContainer/GridContainer" instance=ExtResource( 152 )] -margin_left = 207.0 +margin_left = 144.0 margin_top = 210.0 -margin_right = 281.0 +margin_right = 218.0 margin_bottom = 241.0 size_flags_horizontal = 10 max_value = 1e+06 @@ -5887,9 +5885,9 @@ margin_right = 106.0 margin_bottom = 274.0 [node name="ObjIsLightCheckBox" type="CheckBox" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/ScrollContainer/VBoxContainer/PanelContainer3/VBoxContainer/SlabsetObjectSection/VBoxContainer/GridContainer"] -margin_left = 173.0 +margin_left = 110.0 margin_top = 245.0 -margin_right = 281.0 +margin_right = 218.0 margin_bottom = 274.0 size_flags_horizontal = 10 text = "Is a light" @@ -5918,13 +5916,13 @@ text = "Export slabs.dat" [node name="PanelContainer" type="PanelContainer" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer"] margin_top = 843.0 -margin_right = 299.0 +margin_right = 236.0 margin_bottom = 893.0 [node name="HBoxContainer" type="HBoxContainer" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/PanelContainer"] margin_left = 9.0 margin_top = 9.0 -margin_right = 290.0 +margin_right = 227.0 margin_bottom = 41.0 [node name="SlabsetHelpButton" type="TextureButton" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/PanelContainer/HBoxContainer"] @@ -5940,8 +5938,8 @@ expand = true stretch_mode = 4 [node name="ExportSlabsToml" type="Button" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/PanelContainer/HBoxContainer"] -margin_left = 142.0 -margin_right = 281.0 +margin_left = 95.0 +margin_right = 218.0 margin_bottom = 27.0 size_flags_horizontal = 3 size_flags_vertical = 0 @@ -5949,21 +5947,21 @@ text = "Save slabset" [node name="SlabsetPathsLabel" type="PanelContainer" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer"] margin_top = 897.0 -margin_right = 299.0 +margin_right = 236.0 margin_bottom = 915.0 script = ExtResource( 91 ) [node name="ScrollContainer" type="ScrollContainer" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/SlabsetPathsLabel"] margin_left = 9.0 margin_top = 9.0 -margin_right = 290.0 +margin_right = 227.0 margin_bottom = 9.0 size_flags_horizontal = 3 size_flags_vertical = 3 scroll_vertical_enabled = false [node name="VBoxContainer" type="VBoxContainer" parent="Ui/UiSystem/SlabsetWindow/SlabsetTabs/TabSlabset/HBoxContainer/VBoxContainer/SlabsetPathsLabel/ScrollContainer"] -margin_right = 281.0 +margin_right = 218.0 size_flags_horizontal = 3 size_flags_vertical = 3 diff --git a/Scenes/SlabsetWindow.gd b/Scenes/SlabsetWindow.gd index 9fa258af..1f72f0a9 100644 --- a/Scenes/SlabsetWindow.gd +++ b/Scenes/SlabsetWindow.gd @@ -36,6 +36,9 @@ onready var oCurrentMap = Nodelist.list["oCurrentMap"] onready var oSlabsetPathsLabel = Nodelist.list["oSlabsetPathsLabel"] onready var oColumnsetPathsLabel = Nodelist.list["oColumnsetPathsLabel"] onready var oSlabsetTextSIDLabel = Nodelist.list["oSlabsetTextSIDLabel"] +onready var oExportSlabsToml = Nodelist.list["oExportSlabsToml"] +onready var oSlabRevertButton = Nodelist.list["oSlabRevertButton"] +onready var oVarRevertButton = Nodelist.list["oVarRevertButton"] enum { ONE_VARIATION, @@ -191,16 +194,26 @@ func _on_SlabsetIDSpinBox_value_changed(value): func update_modified_label_for_slab_id(): if Slabset.is_slab_edited(int(oSlabsetIDSpinBox.value)): oSlabsetIDSpinBox.modulate = Color(1.4,1.4,1.7) + oSlabRevertButton.disabled = false else: oSlabsetIDSpinBox.modulate = Color(1,1,1) + oSlabRevertButton.disabled = true func update_modified_label_for_variation(): var variation = get_current_variation() if Slabset.is_dat_variation_different(variation) or Slabset.is_tng_variation_different(variation): oVariationNumberSpinBox.modulate = Color(1.4, 1.4, 1.7) + oVarRevertButton.disabled = false else: oVariationNumberSpinBox.modulate = Color(1, 1, 1) + oVarRevertButton.disabled = true +func update_save_slabset_button_availability(): + var list_of_modified_slabs = Slabset.get_all_modified_slabs() + if list_of_modified_slabs.empty(): + oExportSlabsToml.disabled = true + else: + oExportSlabsToml.disabled = false func _on_VariationNumberSpinBox_value_changed(value): @@ -377,6 +390,8 @@ func adjust_column_color_if_different(variation): update_modified_label_for_slab_id() update_modified_label_for_variation() + update_save_slabset_button_availability() + func update_objects_ui():