2025-May-10 - 2.7.15027
Pre-release
Pre-release
12637 (relationship of territory owner in taskbar) (#13370) * 12637 (relationship of territory owner in taskbar) BottomBar.java - new method getTerritoryLabelTextPattern: return html patterns for different texts (incl. coloring) - change createTerritoryNameLabel: use new patterns TripleAFrame.java - move member lastPlayer to UiContext as currentPlayer - replace bottomBar updates via setCurrentPlayer with uiContext.setCurrentPlayer(player) and bottomBar.updateFromCurrentPlayer - adjust parameters for bottomBar.setStepInfo UiContext.java - add members currentPlayer and isCurrentPlayerRemote (incl. Getters) - new setCurrentPlayer(player): evaluates update for member currentPlayer and sets isCurrentPlayerRemote from member localPlayer - new method putDoubleToPreferences to avoid duplicated code * 12637 (relationship of territory owner in taskbar) use archeType BottomBar.java - getTerritoryLabelTextPattern: determine from relationshipTypeAttachment (archeType) - change createTerritoryNameLabel: use new patterns DicePanel.java - colorizeHitString: extract HTML color text logic into class LookAndFeel LookAndFeel.java - new method getLookAndFeelColorRed - change setupLookAndFeel to avoid throwable in catch statement - new method convertColorToHex - new method getRelationshipTypeColor - new method getRelationshipTypeAttachmentColor PoliticalStateOverview.java -extract method getRelationshipTypeColor into class LookAndFeel UnitStatsTable.java - getUnitStatsTable: rename color variables to proper color names - getPlayerUnitsWithImages: extract new method fillPlayerUnitTypesFromProductionAbility - method getUnitStatsTable: extract method addUnitStatsTableLineColored * 12637 (relationship of territory owner in taskbar) fix UiContext.isCurrentPlayerRemote UiContext.java - setCurrentPlayer: invert localPlayers.playing for member isCurrentPlayerRemote