warn user when room got deleted
This commit is contained in:
parent
c262c0bd1b
commit
cc11063aad
|
@ -72,6 +72,7 @@ func _ready():
|
||||||
edit_room=false
|
edit_room=false
|
||||||
|
|
||||||
if !House.body.is_valid_room(selected_room):
|
if !House.body.is_valid_room(selected_room):
|
||||||
|
EventSystem.notify("Room was deleted as it had less than 3 corners.", EventNotify.Type.WARNING)
|
||||||
House.body.delete_room(selected_room)
|
House.body.delete_room(selected_room)
|
||||||
selected_room=null
|
selected_room=null
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user