Indicators
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
@@ -1,32 +0,0 @@
|
||||
class_name TopMenu extends HBoxContainer
|
||||
|
||||
signal button_pressed(button_name: String)
|
||||
|
||||
|
||||
|
||||
@export_group("Menu Items")
|
||||
|
||||
@export var BurgerButton: TextureButton
|
||||
@export var Info: Label
|
||||
|
||||
@export var TopMenuButtons: Dictionary[String, TextureButton]
|
||||
|
||||
@onready var date_time: Label = $InfoPanel/DateTime
|
||||
|
||||
|
||||
func set_datetime(value: String):
|
||||
date_time.text = value
|
||||
|
||||
func set_info(value: String):
|
||||
Info.text = value
|
||||
|
||||
func enable_buttons(button_state: Array):
|
||||
for button_name in TopMenuButtons:
|
||||
TopMenuButtons[button_name].visible = button_state.has(button_name)
|
||||
|
||||
func on_putton_pressed(button_name: String):
|
||||
emit_signal("button_pressed", button_name)
|
||||
print(button_name)
|
||||
#SaveManager.save_settings()
|
||||
SaveManager.ch()
|
||||
#print(Global.filename)
|
||||
@@ -1 +0,0 @@
|
||||
uid://co14qmemlpt4a
|
||||
@@ -1,84 +0,0 @@
|
||||
[gd_scene format=3 uid="uid://cdbqh3hvqvpab"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://5f80g4i46ycl" path="res://UI/TopMenu/Buttons/button.burger.normal.png" id="1_0ttbs"]
|
||||
[ext_resource type="Script" uid="uid://co14qmemlpt4a" path="res://UI/TopMenu/top_menu.gd" id="1_jcwb6"]
|
||||
[ext_resource type="Texture2D" uid="uid://cimgueu70lvqi" path="res://UI/TopMenu/Buttons/button.burger.focused.png" id="4_5mkgh"]
|
||||
[ext_resource type="Texture2D" uid="uid://cjcchycx7biyl" path="res://UI/TopMenu/Time/TimeX.png" id="4_radhq"]
|
||||
[ext_resource type="FontFile" uid="uid://dtyi81a0phumr" path="res://fonts/Roboto_Condensed/RobotoCondensed-Bold.ttf" id="5_radhq"]
|
||||
[ext_resource type="Texture2D" uid="uid://cnjtnggw5ccq3" path="res://UI/TopMenu/Time/Time1.png" id="6_osfsp"]
|
||||
[ext_resource type="Texture2D" uid="uid://rmdsdkck0vst" path="res://UI/TopMenu/Buttons/buton.report.normal.png" id="9_4n2up"]
|
||||
[ext_resource type="Texture2D" uid="uid://dbhkuw2jshyoh" path="res://UI/TopMenu/Buttons/buton.report.pressed.png" id="10_nnhdd"]
|
||||
|
||||
[node name="TopMenu" type="HBoxContainer" unique_id=10516167 node_paths=PackedStringArray("BurgerButton", "TopMenuButtons")]
|
||||
custom_minimum_size = Vector2(0, 128)
|
||||
size_flags_horizontal = 6
|
||||
size_flags_vertical = 4
|
||||
theme_override_constants/separation = 0
|
||||
script = ExtResource("1_jcwb6")
|
||||
BurgerButton = NodePath("BurgerButton")
|
||||
TopMenuButtons = {
|
||||
"Charsheet": null,
|
||||
"Dialog": null,
|
||||
"Questlog": null,
|
||||
"Starship": null,
|
||||
"Travel": null
|
||||
}
|
||||
|
||||
[node name="BurgerButton" type="TextureButton" parent="." unique_id=760392200]
|
||||
custom_minimum_size = Vector2(128, 128)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 4
|
||||
texture_normal = ExtResource("1_0ttbs")
|
||||
texture_focused = ExtResource("4_5mkgh")
|
||||
|
||||
[node name="LeftSeparator" type="Panel" parent="." unique_id=305575734]
|
||||
custom_minimum_size = Vector2(64, 128)
|
||||
layout_mode = 2
|
||||
|
||||
[node name="TimeMinus" type="TextureButton" parent="." unique_id=1811052825]
|
||||
custom_minimum_size = Vector2(128, 128)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 4
|
||||
texture_normal = ExtResource("4_radhq")
|
||||
|
||||
[node name="InfoPanel" type="VBoxContainer" parent="." unique_id=685953039]
|
||||
custom_minimum_size = Vector2(440, 0)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_constants/separation = 0
|
||||
|
||||
[node name="DateTime" type="Label" parent="InfoPanel" unique_id=1261215093]
|
||||
custom_minimum_size = Vector2(240, 128)
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_color = Color(0, 0.6862745, 0, 1)
|
||||
theme_override_fonts/font = ExtResource("5_radhq")
|
||||
theme_override_font_sizes/font_size = 48
|
||||
text = "2025.11.16 09:23"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="TimePlus" type="TextureButton" parent="." unique_id=2128537958]
|
||||
custom_minimum_size = Vector2(128, 128)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 4
|
||||
texture_normal = ExtResource("6_osfsp")
|
||||
|
||||
[node name="RightSeparator" type="Panel" parent="." unique_id=1481873764]
|
||||
custom_minimum_size = Vector2(64, 128)
|
||||
layout_mode = 2
|
||||
|
||||
[node name="ReportButton" type="TextureButton" parent="." unique_id=247269539]
|
||||
custom_minimum_size = Vector2(128, 128)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 4
|
||||
texture_normal = ExtResource("9_4n2up")
|
||||
texture_pressed = ExtResource("10_nnhdd")
|
||||
|
||||
[connection signal="pressed" from="BurgerButton" to="." method="on_putton_pressed" binds= ["Burger"]]
|
||||
[connection signal="pressed" from="TimeMinus" to="." method="on_putton_pressed" binds= ["TimeMinus"]]
|
||||
[connection signal="pressed" from="TimePlus" to="." method="on_putton_pressed" binds= ["TimePlus"]]
|
||||
[connection signal="pressed" from="ReportButton" to="." method="on_putton_pressed" binds= ["Report"]]
|
||||
Reference in New Issue
Block a user