aboutsummaryrefslogtreecommitdiff
path: root/game/src/GameSession/ProvinceOverviewPanel.gd
diff options
context:
space:
mode:
author George L. Albany <Megacake1234@gmail.com>2023-05-02 11:26:07 +0200
committer GitHub <noreply@github.com>2023-05-02 11:26:07 +0200
commitbce3086568b28528f1aee4cb56fd8ffd6c2dfb84 (patch)
tree2b675593f4237c408bc2e75e5b22e0e80c9a9b75 /game/src/GameSession/ProvinceOverviewPanel.gd
parent9f772a314dc130df95fe5e3b018a9ba60e5be5b1 (diff)
parente0874b0d92e1320108b8c2417e81f958420119ac (diff)
Merge pull request #104 from OpenVic2Project/map-hover-tweaks
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)