Compare commits
No commits in common. "de2baa46372222853b87524741f68f0887c4609e" and "5d9a6e6bcfbe69a12c785041873c794ff25a6ca8" have entirely different histories.
de2baa4637
...
5d9a6e6bcf
1 changed files with 3 additions and 8 deletions
|
@ -3,7 +3,9 @@ extends Control
|
|||
|
||||
func _process(_delta):
|
||||
update_layer_number()
|
||||
update_minify_button()
|
||||
var expanded = is_scene_expanded(get_scene())
|
||||
$VBoxContainer/Minify.visible = expanded
|
||||
$VBoxContainer/Expand.visible = !expanded
|
||||
|
||||
func _on_new_pressed():
|
||||
var dialog = EditorFileDialog.new()
|
||||
|
@ -38,7 +40,6 @@ func _on_minify_pressed():
|
|||
scene.remove_child(scene.get_node("ProjectionViewport"))
|
||||
scene.get_node("HeightMap").mesh_library = load("res://Assets/heightmap_meshlibrary.tres")
|
||||
scene.remove_child(scene.get_node("NotMinified"))
|
||||
EditorInterface.mark_scene_as_unsaved()
|
||||
|
||||
func _on_expand_pressed():
|
||||
var scene = get_scene()
|
||||
|
@ -56,7 +57,6 @@ func _on_expand_pressed():
|
|||
scene.add_child(sv)
|
||||
sv.owner = scene
|
||||
update_proj_map()
|
||||
EditorInterface.mark_scene_as_unsaved()
|
||||
|
||||
func _on_up_pressed():
|
||||
move_up_or_down(1)
|
||||
|
@ -95,11 +95,6 @@ func _on_create_baseplate_pressed():
|
|||
for cell in map.get_used_cells():
|
||||
heightmap.set_cell_item(Vector3i(cell.x, -1, cell.y), cube)
|
||||
|
||||
func update_minify_button():
|
||||
var expanded = is_scene_expanded(get_scene())
|
||||
$VBoxContainer/Minify.visible = expanded
|
||||
$VBoxContainer/Expand.visible = !expanded
|
||||
|
||||
func move_up_or_down(direction: int):
|
||||
var selection = EditorInterface.get_selection().get_selected_nodes()
|
||||
if len(selection) != 1: return await error_not_editing_tilemap()
|
||||
|
|
Loading…
Add table
Reference in a new issue