Skip to content

Commit

Permalink
fix slab name display
Browse files Browse the repository at this point in the history
  • Loading branch information
rainlizard committed May 28, 2024
1 parent 71f2aff commit 991e630
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Scenes/Selection.gd
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ onready var oPlaceThingsAnywhere = Nodelist.list["oPlaceThingsAnywhere"]
onready var oSlabSideViewer = Nodelist.list["oSlabSideViewer"]
onready var oUseSlabOwnerCheckBox = Nodelist.list["oUseSlabOwnerCheckBox"]
onready var oPlacingSettings = Nodelist.list["oPlacingSettings"]
onready var oSlabNameDisplay = Nodelist.list["oSlabNameDisplay"]

enum {
CONSTRUCT_BRUSH
Expand Down Expand Up @@ -101,6 +102,7 @@ func update_under_cursor():
cursorOverSlab = oSelector.get_slabID_at_pos(oSelector.cursorTile)
cursorOverSlabOwner = oDataOwnership.get_cellv_ownership(oSelector.cursorTile)
oSlabSideViewer.update_side()
oSlabNameDisplay.update_text_with_id(cursorOverSlab, false)

func update_paint():
match oSelector.mode:
Expand Down
1 change: 0 additions & 1 deletion Scenes/Selector.gd
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,6 @@ func update_cursor_position():

func moved_to_new_tile():
if mode == MODE_TILE: canPlace = true
oSlabNameDisplay.update_text_with_id(oSelection.cursorOverSlab, false)

func moved_to_new_subtile():
oColumnDetails.update_details()
Expand Down

0 comments on commit 991e630

Please sign in to comment.