1
0
mirror of https://gitee.com/freeyz/godot-mota.git synced 2024-09-28 06:54:08 +08:00
godot-mota/src/hud/HUD.gd

49 lines
1.5 KiB
GDScript3
Raw Normal View History

2020-08-21 10:16:32 +08:00
extends CanvasLayer
class_name Hud
func get_level_view() -> Label:
return $"HeaderBackground/GridContainer/LevelLabel" as Label
func get_hp_view() -> Label:
return $"HeaderBackground/GridContainer/HpLabel" as Label
func get_atk_view() -> Label:
return $"HeaderBackground/GridContainer/AtkLabel" as Label
func get_def_view() -> Label:
return $"HeaderBackground/GridContainer2/DefLabel" as Label
func get_money_view() -> Label:
return $"HeaderBackground/GridContainer2/MoneyLabel" as Label
2020-08-21 10:16:32 +08:00
func get_yellow_key_view() -> Label:
return $"HeaderBackground/GridContainer3/YellowKeyCount" as Label
func get_blue_key_view() -> Label:
return $"HeaderBackground/GridContainer3/BlueKeyCount" as Label
func get_red_key_view() -> Label:
return $"HeaderBackground/GridContainer3/RedKeyCount" as Label
func get_save_button_view() -> TextureButton:
return $"BottomBackground/VBoxContainer/SaveButton" as TextureButton
func get_load_button_view() -> TextureButton:
return $"BottomBackground/VBoxContainer/Loadutton" as TextureButton
2020-09-03 22:30:49 +08:00
2020-09-05 13:25:45 +08:00
func get_book_button_view() -> TextureButton:
return $"BottomBackground/VBoxContainer/BookButton" as TextureButton
2020-09-08 11:16:14 +08:00
func get_fly_button_view() -> TextureButton:
return $"BottomBackground/VBoxContainer/FlyButton" as TextureButton
2020-09-03 22:30:49 +08:00
func get_book_dialog_view() -> PopupDialog:
return $"BookDialog" as PopupDialog
func get_close_book_button_view() -> Button:
return $"BookDialog/CloseBook" as Button
2020-09-08 11:16:14 +08:00
func get_fly_dialog_view() -> PopupDialog:
return $"FlyDialog" as PopupDialog