New User Interface Features
_________________________
- Holding down SHIFT+ALT and clicking on a leader in the scoreboard toggles your civ's warplan between WARPLAN_PREPARING_TOTAL and NO_WARPLAN. This feature can be used to signal to your vassals that they should begin preparing for war with a particular player as well, allowing them to be much better prepared when you declare. Any warning you can give your vassals will help, but enough time to build one to two units in a city is best. WARNING: Use of this feature is not multiplayer compatible, WARPLANs are not sent across the network since they're otherwise only used by the AI and so it will lead to OOS errors if you have vassals.
- The scoreboard will show WAR in yellow instead of red when you have declared you are planning a war using the above feature.
- Added line to contact help text explaining that SHIFT+ALT clicking toggles war preparation plans.
if( gDLL->shiftKey() )
{
// Warning: use of this is not multiplayer compatible
if (GET_TEAM(GC.getGameINLINE().getActiveTeam()).canDeclareWar(GET_PLAYER((PlayerTypes)widgetDataStruct.m_iData1).getTeam()))
{
if( GET_TEAM(GC.getGameINLINE().getActiveTeam()).AI_getWarPlan(GET_PLAYER((PlayerTypes)widgetDataStruct.m_iData1).getTeam()) == WARPLAN_PREPARING_TOTAL)
{
GET_TEAM(GC.getGameINLINE().getActiveTeam()).AI_setWarPlan(GET_PLAYER((PlayerTypes)widgetDataStruct.m_iData1).getTeam(), NO_WARPLAN);
}
else
{
GET_TEAM(GC.getGameINLINE().getActiveTeam()).AI_setWarPlan(GET_PLAYER((PlayerTypes)widgetDataStruct.m_iData1).getTeam(), WARPLAN_PREPARING_TOTAL);
}
gDLL->getInterfaceIFace()->setDirty(Score_DIRTY_BIT, true);
}
}
It says that, I couldn't find any indication in the code that this (or any other warplan indication) is actually happening though.- The scoreboard will show WAR in yellow instead of red when you have declared you are planning a war using the above feature.
This sounds like the best implementation. One wouldn't have to worry about altered scoreboards from mods being a problem.To make it visible, I'd need to check for activeplayer's warplans in getAllRelationsString(), I'd need a new TXT_KEY to display it .. but that should be easy enough. "Preparing for War against A, B" for your own line and "You are preparing for War" for every player line you have a warplan against.
@aB: The low level of difficulty of adding War Plan text to hover was just as expected, the time it took me until I got around to it not so much. In case you didn't write this tiny bit yourself by now, and if you are compiling your own dll, r53 and r55 might be of interest to you. Otherwise you'll have to wait a bit longer. I plan to put out another version before I merge in the last 7 revisions of Better AI.
Very likely but why would you want such an old version of BUG?