diff --git a/mods/d2k/chrome/ingame-player.yaml b/mods/d2k/chrome/ingame-player.yaml index 4482aebb63..70dd7e2e60 100644 --- a/mods/d2k/chrome/ingame-player.yaml +++ b/mods/d2k/chrome/ingame-player.yaml @@ -506,21 +506,6 @@ Container@PLAYER_WIDGETS: X: 5 Y: 5 ImageCollection: production-icons - ProductionTypeButton@UPGRADE: - Y: 31 - Width: 25 - Height: 25 - VisualHeight: 0 - Background: sidebar-button - TooltipText: Upgrades - TooltipContainer: TOOLTIP_CONTAINER - ProductionGroup: Upgrade - Key: ProductionTypeUpgrade - Children: - Image@ICON: - X: 5 - Y: 5 - ImageCollection: production-icons ProductionTypeButton@INFANTRY: Y: 62 Width: 25 @@ -596,6 +581,21 @@ Container@PLAYER_WIDGETS: X: 5 Y: 5 ImageCollection: production-icons + ProductionTypeButton@UPGRADE: # Upgrade is defined after others so it won't be automatically selected after sell or at game start. + Y: 31 + Width: 25 + Height: 25 + VisualHeight: 0 + Background: sidebar-button + TooltipText: Upgrades + TooltipContainer: TOOLTIP_CONTAINER + ProductionGroup: Upgrade + Key: ProductionTypeUpgrade + Children: + Image@ICON: + X: 5 + Y: 5 + ImageCollection: production-icons Button@SCROLL_UP_BUTTON: Y: 217 Width: 25 diff --git a/mods/d2k/rules/player.yaml b/mods/d2k/rules/player.yaml index 0125d3f7f1..b9ae27c7c1 100644 --- a/mods/d2k/rules/player.yaml +++ b/mods/d2k/rules/player.yaml @@ -9,14 +9,6 @@ Player: ReadyAudio: BuildingReady BlockedAudio: NoRoom SpeedUp: true - ClassicProductionQueue@Upgrade: - Type: Upgrade - BuildDurationModifier: 250 - LowPowerSlowdown: 0 - QueuedAudio: Upgrading - ReadyAudio: NewOptions - BlockedAudio: NoRoom - SpeedUp: true ClassicProductionQueue@Infantry: Type: Infantry BuildDurationModifier: 250 @@ -51,6 +43,14 @@ Player: QueuedAudio: Building BlockedAudio: NoRoom SpeedUp: true + ClassicProductionQueue@Upgrade: # Upgrade is defined after others so it won't be automatically selected by ProductionQueueFromSelection. + Type: Upgrade + BuildDurationModifier: 250 + LowPowerSlowdown: 0 + QueuedAudio: Upgrading + ReadyAudio: NewOptions + BlockedAudio: NoRoom + SpeedUp: true PlaceBuilding: SupportPowerManager: ScriptTriggers: