infoPanel integration.
This commit is contained in:
@@ -14,8 +14,22 @@ func options_camera_pressed(target_position):
|
|||||||
camera_menu.position = target_position
|
camera_menu.position = target_position
|
||||||
camera_menu.show()
|
camera_menu.show()
|
||||||
|
|
||||||
|
|
||||||
func options_world_pressed(target_position):
|
func options_world_pressed(target_position):
|
||||||
var world_menu = $Options/World
|
var world_menu = $Options/World
|
||||||
world_menu.position = target_position
|
world_menu.position = target_position
|
||||||
world_menu.show()
|
world_menu.show()
|
||||||
|
|
||||||
|
|
||||||
|
func info_index_pressed(index):
|
||||||
|
var infoPanel: Node = get_parent().get_node("InformationPanel")
|
||||||
|
if index == 0: #Camera
|
||||||
|
pass
|
||||||
|
elif index == 1: #World
|
||||||
|
infoPanel.call("worldInfoPanel")
|
||||||
|
infoPanel.call("ShowInfoPanel")
|
||||||
|
|
||||||
|
elif index == 2: #Close
|
||||||
|
infoPanel.call("HideInfoPanel")
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user