@@ -102,29 +102,13 @@ func _ready() -> void:
102102 _country_flag_overlay_icon = get_gui_icon_from_nodepath (^ "./topbar/topbar_flag_overlay" )
103103 _country_name_label = get_gui_label_from_nodepath (^ "./topbar/CountryName" )
104104 _country_rank_label = get_gui_label_from_nodepath (^ "./topbar/nation_totalrank" )
105- if _country_rank_label :
106- _country_rank_label .set_mouse_filter (MOUSE_FILTER_PASS )
107105 _country_prestige_label = get_gui_label_from_nodepath (^ "./topbar/country_prestige" )
108- if _country_prestige_label :
109- _country_prestige_label .set_mouse_filter (MOUSE_FILTER_PASS )
110106 _country_prestige_rank_label = get_gui_label_from_nodepath (^ "./topbar/selected_prestige_rank" )
111- if _country_prestige_rank_label :
112- _country_prestige_rank_label .set_mouse_filter (MOUSE_FILTER_PASS )
113107 _country_industrial_power_label = get_gui_label_from_nodepath (^ "./topbar/country_economic" )
114- if _country_industrial_power_label :
115- _country_industrial_power_label .set_mouse_filter (MOUSE_FILTER_PASS )
116108 _country_industrial_power_rank_label = get_gui_label_from_nodepath (^ "./topbar/selected_industry_rank" )
117- if _country_industrial_power_rank_label :
118- _country_industrial_power_rank_label .set_mouse_filter (MOUSE_FILTER_PASS )
119109 _country_military_power_label = get_gui_label_from_nodepath (^ "./topbar/country_military" )
120- if _country_military_power_label :
121- _country_military_power_label .set_mouse_filter (MOUSE_FILTER_PASS )
122110 _country_military_power_rank_label = get_gui_label_from_nodepath (^ "./topbar/selected_military_rank" )
123- if _country_military_power_rank_label :
124- _country_military_power_rank_label .set_mouse_filter (MOUSE_FILTER_PASS )
125111 _country_colonial_power_label = get_gui_label_from_nodepath (^ "./topbar/country_colonial_power" )
126- if _country_colonial_power_label :
127- _country_colonial_power_label .set_mouse_filter (MOUSE_FILTER_PASS )
128112
129113 # Time controls
130114 _speed_up_button = get_gui_icon_button_from_nodepath (^ "./topbar/button_speedup" )
@@ -184,20 +168,14 @@ func _ready() -> void:
184168 if _technology_progress_bar and tech_button :
185169 _technology_progress_bar .reparent (tech_button )
186170 _technology_current_research_label = get_gui_label_from_nodepath (^ "./topbar/tech_current_research" )
187- if _technology_current_research_label :
188- _technology_current_research_label .set_mouse_filter (MOUSE_FILTER_PASS )
189- if tech_button :
190- _technology_current_research_label .reparent (tech_button )
171+ if _technology_current_research_label and tech_button :
172+ _technology_current_research_label .reparent (tech_button )
191173 _technology_literacy_label = get_gui_label_from_nodepath (^ "./topbar/tech_literacy_value" )
192- if _technology_literacy_label :
193- _technology_literacy_label .set_mouse_filter (MOUSE_FILTER_PASS )
194- if tech_button :
195- _technology_literacy_label .reparent (tech_button )
174+ if _technology_literacy_label and tech_button :
175+ _technology_literacy_label .reparent (tech_button )
196176 _technology_research_points_label = get_gui_label_from_nodepath (^ "./topbar/topbar_researchpoints_value" )
197- if _technology_research_points_label :
198- _technology_research_points_label .set_mouse_filter (MOUSE_FILTER_PASS )
199- if tech_button :
200- _technology_research_points_label .reparent (tech_button )
177+ if _technology_research_points_label and tech_button :
178+ _technology_research_points_label .reparent (tech_button )
201179
202180 # Politics
203181 _politics_party_icon = get_gui_icon_from_nodepath (^ "./topbar/politics_party_icon" )
@@ -264,18 +242,11 @@ func _ready() -> void:
264242 # Military
265243 _military_army_size_label = get_gui_label_from_nodepath (^ "./topbar/military_army_value" )
266244 if _military_army_size_label :
267- _military_army_size_label .set_mouse_filter (MOUSE_FILTER_PASS )
268245 _military_army_size_label .set_text ("§Y$CURR$/$MAX$" )
269246 _military_army_size_label .set_tooltip_string ("TOPBAR_ARMY_TOOLTIP" )
270247 _military_navy_size_label = get_gui_label_from_nodepath (^ "./topbar/military_navy_value" )
271- if _military_navy_size_label :
272- _military_navy_size_label .set_mouse_filter (MOUSE_FILTER_PASS )
273248 _military_mobilisation_size_label = get_gui_label_from_nodepath (^ "./topbar/military_manpower_value" )
274- if _military_mobilisation_size_label :
275- _military_mobilisation_size_label .set_mouse_filter (MOUSE_FILTER_PASS )
276249 _military_leadership_points_label = get_gui_label_from_nodepath (^ "./topbar/military_leadership_value" )
277- if _military_leadership_points_label :
278- _military_leadership_points_label .set_mouse_filter (MOUSE_FILTER_PASS )
279250
280251 _update_info ()
281252 _update_speed_controls ()
@@ -539,6 +510,7 @@ func _update_info() -> void:
539510
540511 if _military_navy_size_label :
541512 _military_navy_size_label .set_text ("§Y%d /%d " % [0 , 0 ])
513+ # TODO - navy size tooltip
542514
543515 const mobilised_key : StringName = & "mobilised"
544516 const mobilisation_regiments_key : StringName = & "mobilisation_regiments"
@@ -565,6 +537,7 @@ func _update_info() -> void:
565537
566538 if _military_leadership_points_label :
567539 _military_leadership_points_label .set_text ("§Y%d " % 0 )
540+ # TODO - leadership points tooltip
568541
569542func _update_speed_controls () -> void :
570543 var paused : bool = MenuSingleton .is_paused ()
0 commit comments