From e0874b0d92e1320108b8c2417e81f958420119ac Mon Sep 17 00:00:00 2001 From: Hop311 Date: Mon, 1 May 2023 18:19:01 +0100 Subject: Better province highlight on selection/hover. --- game/src/GameSession/ProvinceOverviewPanel.gd | 2 ++ 1 file changed, 2 insertions(+) (limited to 'game/src/GameSession/ProvinceOverviewPanel.gd') 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) -- cgit v1.2.3-56-ga3b1