aboutsummaryrefslogtreecommitdiff
path: root/game/src/GameSession/ProvinceOverviewPanel.gd
diff options
context:
space:
mode:
author Hop311 <hop3114@gmail.com>2023-05-01 19:19:01 +0200
committer Hop311 <hop3114@gmail.com>2023-05-01 19:19:01 +0200
commite0874b0d92e1320108b8c2417e81f958420119ac (patch)
tree81421796bbd3e7df4a92f3853a7fae3f40c62bdc /game/src/GameSession/ProvinceOverviewPanel.gd
parentb1e985e0774598b3add22069be50f891e981fd79 (diff)
Better province highlight on selection/hover.
Diffstat (limited to 'game/src/GameSession/ProvinceOverviewPanel.gd')
-rw-r--r--game/src/GameSession/ProvinceOverviewPanel.gd2
1 files changed, 2 insertions, 0 deletions
diff --git a/game/src/GameSession/ProvinceOverviewPanel.gd b/game/src/GameSession/ProvinceOverviewPanel.gd
index 5a914f7..80f02c5 100644
--- a/game/src/GameSession/ProvinceOverviewPanel.gd
+++ b/game/src/GameSession/ProvinceOverviewPanel.gd
@@ -54,11 +54,13 @@ func _add_building(building : Dictionary) -> void:
progress_bar.max_value = 1
progress_bar.value = building.get(_expansion_progress_key, 0)
progress_bar.size_flags_horizontal = Control.SIZE_EXPAND_FILL
+ progress_bar.mouse_filter = Control.MOUSE_FILTER_PASS
_buildings_container.add_child(progress_bar)
else:
var expand_button := Button.new()
expand_button.text = _expand_province_building
expand_button.size_flags_horizontal = Control.SIZE_EXPAND_FILL
+ expand_button.mouse_filter = Control.MOUSE_FILTER_PASS
expand_button.disabled = expansion_state != CAN_EXPAND
expand_button.pressed.connect(func(): _expand_building(building_label.text))
_buildings_container.add_child(expand_button)