Complete lab, quest, garrison, and energy tickets
This commit is contained in:
parent
d413d1da9f
commit
0f7edff15a
20 changed files with 238 additions and 45 deletions
|
|
@ -22,6 +22,7 @@ const VESSEL_MARGIN := 24.0
|
|||
@onready var vessel_heading: Label = $VesselLabel
|
||||
@onready var detail: Label = $DetailLabel
|
||||
@onready var status: Label = $StatusLabel
|
||||
@onready var research_progress: ProgressBar = $ResearchProgress
|
||||
@onready var resource_bar: Control = $Bar
|
||||
|
||||
var building_id: int = 0
|
||||
|
|
@ -96,6 +97,16 @@ func set_status(message: String) -> void:
|
|||
status.text = message
|
||||
|
||||
|
||||
func show_research_progress(message: String, ratio: float) -> void:
|
||||
status.text = message
|
||||
research_progress.value = clampf(ratio, 0.0, 1.0)
|
||||
research_progress.visible = true
|
||||
|
||||
|
||||
func hide_research_progress() -> void:
|
||||
research_progress.visible = false
|
||||
|
||||
|
||||
func _build_price_tags() -> void:
|
||||
for i in range(upgrade_labels.size()):
|
||||
var label: Control = upgrade_labels[i]
|
||||
|
|
|
|||
|
|
@ -1,9 +1,28 @@
|
|||
[gd_scene load_steps=4 format=3]
|
||||
[gd_scene load_steps=6 format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://ui/IconButton.gd" id="10"]
|
||||
[ext_resource type="Script" path="res://ui/ResourceBar.gd" id="24"]
|
||||
[ext_resource type="Script" path="res://ui/menus/LabMenu.gd" id="menu_script"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_progress_background"]
|
||||
bg_color = Color(0.025, 0.045, 0.09, 0.92)
|
||||
border_width_left = 2
|
||||
border_width_top = 2
|
||||
border_width_right = 2
|
||||
border_width_bottom = 2
|
||||
border_color = Color(0.18, 0.48, 0.62, 0.9)
|
||||
corner_radius_top_left = 8
|
||||
corner_radius_top_right = 8
|
||||
corner_radius_bottom_right = 8
|
||||
corner_radius_bottom_left = 8
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_progress_fill"]
|
||||
bg_color = Color(0.3, 0.9, 1, 0.88)
|
||||
corner_radius_top_left = 6
|
||||
corner_radius_top_right = 6
|
||||
corner_radius_bottom_right = 6
|
||||
corner_radius_bottom_left = 6
|
||||
|
||||
[node name="LabMenu" type="Control" groups=["modal_menus"]]
|
||||
visible = false
|
||||
mouse_filter = 2
|
||||
|
|
@ -283,12 +302,29 @@ anchor_bottom = 1.0
|
|||
offset_left = 32
|
||||
offset_top = -174
|
||||
offset_right = -32
|
||||
offset_bottom = -120
|
||||
offset_bottom = -128
|
||||
theme_override_font_sizes/font_size = 30
|
||||
autowrap_mode = 2
|
||||
horizontal_alignment = 1
|
||||
text = ""
|
||||
|
||||
[node name="ResearchProgress" type="ProgressBar" parent="."]
|
||||
visible = false
|
||||
mouse_filter = 2
|
||||
anchor_left = 0.5
|
||||
anchor_top = 1.0
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -280
|
||||
offset_top = -116
|
||||
offset_right = 280
|
||||
offset_bottom = -82
|
||||
theme_override_styles/background = SubResource("StyleBoxFlat_progress_background")
|
||||
theme_override_styles/fill = SubResource("StyleBoxFlat_progress_fill")
|
||||
max_value = 1.0
|
||||
step = 0.001
|
||||
show_percentage = false
|
||||
|
||||
[node name="NextButton" type="Control" parent="."]
|
||||
visible = false
|
||||
anchor_left = 0.5
|
||||
|
|
|
|||
Loading…
Reference in a new issue