Custom Label for Part of a Turn?
-
How can I edit the label given to actions on the right-hand side of the window? I have created a second combat move step to allow for a particular kind of naval penetration, but the engine is displaying it just as "combat move" and ignoring the label I assign it. The label shows up fine if I switch to the "View History" mode in the left-hand tab, but not in the right-hand tab that is typically available to the players in the "View Current Game" mode. I don't want players to get confused and think that they just forgot to click "Done" when the same label appears for two phases in a row.
<step name="germansNavalCombatMove" delegate="navpenmove" player="Germans" display="Naval Penetration Move"/>
-
See below, you need to add a custom text display="Combat...
<delegate name="move" javaClass="games.strategy.triplea.delegate.MoveDelegate" display="Combat Move"/> <delegate name="battle" javaClass="games.strategy.triplea.delegate.BattleDelegate" display="Combat"/> <delegate name="purchase" javaClass="games.strategy.triplea.delegate.PurchaseDelegate" display="Purchase Units"/> <delegate name="placeNoAirCheck" javaClass="games.strategy.triplea.delegate.NoAirCheckPlaceDelegate" display="Place Units"/> <delegate name="place" javaClass="games.strategy.triplea.delegate.PlaceDelegate" display="Place Units"/> <delegate name="endTurn" javaClass="games.strategy.triplea.delegate.EndTurnDelegate" display="Resources"/> <delegate name="endTurnNoPU" javaClass="games.strategy.triplea.delegate.NoPUEndTurnDelegate" display="Turn Complete"/> <delegate name="endRound" javaClass="games.strategy.triplea.delegate.EndRoundDelegate" display="Round Complete"/>
.
or against each nation like below
In the example below endTurn is called/displayed Resources<step name="GermanyNonCombatMove" delegate="move" player="Germany" display="Non Combat Move"/> <step name="GermanyPurchase" delegate="purchase" player="Germany"/> <step name="GermanyPlace" delegate="place" player="Germany"/> <step name="Germany1EndTurn" delegate="endTurnNoPU" player="Germany"/> <step name="GermanyPolitics" delegate="politics" player="Germany"/>
-
@thedog Thanks, but I have that exact feature already in my code and it's not working for me.
-
Try this, notice the 0EndTurn and 1EndTurn
You need to apply that to your 2nd Combat move step.
I think they are important to make the step name unique.
I got this from Cernels 270BC Wars, and now use it in 1941 Command Decision<step name="Germany0EndTurn" delegate="endTurn" player="Germany"/> <step name="GermanyCombatMove" delegate="move" player="Germany"/> <step name="GermanyBattle" delegate="battle" player="Germany"/> <step name="GermanyNonCombatMove" delegate="move" player="Germany" display="Non Combat Move"/> <step name="GermanyPurchase" delegate="purchase" player="Germany"/> <step name="GermanyPlace" delegate="place" player="Germany"/> <step name="Germany1EndTurn" delegate="endTurnNoPU" player="Germany"/> <step name="GermanyPolitics" delegate="politics" player="Germany"/>
-
@thedog That's interesting with the serial numbers. I tried changing my code to use serial numbers, but I'm still having the same problem. Any other ideas? @wc_sumpton
<delegate name="initDelegate" javaClass="games.strategy.triplea.delegate.InitializationDelegate" display="Initializing Delegates"/> <delegate name="tech" javaClass="games.strategy.triplea.delegate.TechnologyDelegate" display="Research Technology"/> <delegate name="tech_activation" javaClass="games.strategy.triplea.delegate.TechActivationDelegate" display="Activate Technology"/> <delegate name="battle" javaClass="games.strategy.triplea.delegate.BattleDelegate" display="Combat"/> <delegate name="move" javaClass="games.strategy.triplea.delegate.MoveDelegate" display="Combat Move"/> <delegate name="place" javaClass="games.strategy.triplea.delegate.PlaceDelegate" display="Place Units"/> <delegate name="purchase" javaClass="games.strategy.triplea.delegate.PurchaseDelegate" display="Purchase Units"/> <delegate name="endTurn" javaClass="games.strategy.triplea.delegate.EndTurnDelegate" display="Turn Complete"/> <delegate name="endRound" javaClass="games.strategy.triplea.delegate.EndRoundDelegate" display="Round Complete"/> <delegate name="placeBid" javaClass="games.strategy.triplea.delegate.BidPlaceDelegate" display="Bid Placement"/> <delegate name="bid" javaClass="games.strategy.triplea.delegate.BidPurchaseDelegate" display="Bid Purchase"/> <delegate name="politics" javaClass="games.strategy.triplea.delegate.PoliticsDelegate" display="Politics"/>
<step name="germansPolitics" delegate="politics" player="Germans"/> <step name="germansTech" delegate="tech" player="Germans"/> <step name="germansPurchase" delegate="purchase" player="Germans"/> <step name="germans0CombatMove" delegate="move" player="Germans"> <stepProperty name="resetUnitStateAtStart" value="true"/> </step> <step name="germans1CombatMove" delegate="move" player="Germans" display="Naval Penetration Move"/> <step name="germansBattle" delegate="battle" player="Germans"/> <step name="germansNonCombatMove" delegate="move" player="Germans" display="Non Combat Move"/> <step name="germansPlace" delegate="place" player="Germans"/> <step name="germansTechActivation" delegate="tech_activation" player="Germans"/> <step name="germansEndTurn" delegate="endTurn" player="Germans"/>