Karten Menü Event Verkabelung
This commit is contained in:
parent
84197dd5f8
commit
0b000e0be8
3 changed files with 8 additions and 1 deletions
|
|
@ -264,6 +264,7 @@ script = ExtResource("1_fax2j")
|
||||||
[connection signal="mouse_exited" from="UI/Palette" to="VBoxContainer/Map/CursorTimer" method="enable_cursor"]
|
[connection signal="mouse_exited" from="UI/Palette" to="VBoxContainer/Map/CursorTimer" method="enable_cursor"]
|
||||||
[connection signal="mouse_entered" from="UI/MenuTop" to="VBoxContainer/Map/CursorTimer" method="disable_cursor"]
|
[connection signal="mouse_entered" from="UI/MenuTop" to="VBoxContainer/Map/CursorTimer" method="disable_cursor"]
|
||||||
[connection signal="mouse_exited" from="UI/MenuTop" to="VBoxContainer/Map/CursorTimer" method="enable_cursor"]
|
[connection signal="mouse_exited" from="UI/MenuTop" to="VBoxContainer/Map/CursorTimer" method="enable_cursor"]
|
||||||
|
[connection signal="item_selected" from="UI/MenuTop/opt_map" to="Logic/GroundMapManager" method="_on_opt_map_item_selected"]
|
||||||
[connection signal="mouse_entered" from="UI/MenuTop/opt_map" to="VBoxContainer/Map/CursorTimer" method="disable_cursor"]
|
[connection signal="mouse_entered" from="UI/MenuTop/opt_map" to="VBoxContainer/Map/CursorTimer" method="disable_cursor"]
|
||||||
[connection signal="mouse_exited" from="UI/MenuTop/opt_map" to="VBoxContainer/Map/CursorTimer" method="enable_cursor"]
|
[connection signal="mouse_exited" from="UI/MenuTop/opt_map" to="VBoxContainer/Map/CursorTimer" method="enable_cursor"]
|
||||||
[connection signal="selected_map_for_loading" from="Logic/Startup" to="Data/ResourceSaver" method="loadMap"]
|
[connection signal="selected_map_for_loading" from="Logic/Startup" to="Data/ResourceSaver" method="loadMap"]
|
||||||
|
|
|
||||||
|
|
@ -28,4 +28,3 @@ func _input(event: InputEvent):
|
||||||
elif event.button_index == MOUSE_BUTTON_RIGHT:
|
elif event.button_index == MOUSE_BUTTON_RIGHT:
|
||||||
print("Click right")
|
print("Click right")
|
||||||
set_cell(cell_pos, -1) # Erase tile
|
set_cell(cell_pos, -1) # Erase tile
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -80,3 +80,10 @@ func get_tile_texcoord(str_palette:String, tile_name:String) -> Vector2i:
|
||||||
print("get_tile_textcoord tile_name:", tile_name)
|
print("get_tile_textcoord tile_name:", tile_name)
|
||||||
var ret_v2 = Vector2(0,0)
|
var ret_v2 = Vector2(0,0)
|
||||||
return ret_v2
|
return ret_v2
|
||||||
|
|
||||||
|
func _on_opt_map_item_selected(index: int) -> void: # 1 laden, 2 speichern, 3 speichern als
|
||||||
|
match index:
|
||||||
|
1: print("Karte laden")
|
||||||
|
2: print("Karte speichern")
|
||||||
|
3: print("Karte speichern als")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue