Skip to content

Commit

Permalink
Slabset ThingType now sticks to either Objects or Effectgens
Browse files Browse the repository at this point in the history
  • Loading branch information
rainlizard committed May 31, 2024
1 parent a9275e4 commit 1a8fa9c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Scenes/SlabsetWindow.gd
Original file line number Diff line number Diff line change
Expand Up @@ -503,9 +503,18 @@ func _on_ObjDeleteButton_pressed():
oMessage.quick("Deleted object")

func _on_ObjThingTypeSpinBox_value_changed(value:int):
print("_on_ObjThingTypeSpinBox_value_changed")
#oObjThingTypeSpinBox.hint_tooltip = Things.data_structure_name.get(value, "?")
#yield(get_tree(),'idle_frame')

var new_value = 1
if value == 0: new_value = 7
if value == 2: new_value = 7
if value == 6: new_value = 1
if value == 8: new_value = 1
oObjThingTypeSpinBox.disconnect("value_changed", self, "_on_ObjThingTypeSpinBox_value_changed")
oObjThingTypeSpinBox.value = new_value
oObjThingTypeSpinBox.connect("value_changed", self, "_on_ObjThingTypeSpinBox_value_changed")

update_obj_name()
update_object_property(Slabset.obj.THING_TYPE, value)
update_3D_sprite_visuals()
Expand Down

0 comments on commit 1a8fa9c

Please sign in to comment.