I dont think you can assign more than one texture to an enum.
If you check the 'Command Guard' button you will find 'RadiusCursorType = GUARD_AREA', if im not mistaking 'GUARD_AREA' is an enum and hardcoded.
I think the InGameUI 'GuardAreaRadiusCursor' is tied to the enum.
But maybe you can make 2 new guard buttons, 2 RadiusCursorTypes ar not used, NAPALMSTRIKE and FRENZY.
If you make new textures for those two enums you are able to give each faction a guardarea texture and when i say Faction i mean USA, China and GLA, not each general, you can use the original guard area texture for USA and make two new buttons with your newly created guard textures.
Here is some example code...
Code:
;CommandButton.ini
CommandButton Command_Guard
Command = GUARD
Options = OK_FOR_MULTI_SELECT NEED_TARGET_POS
TextLabel = CONTROLBAR:Guard
ButtonImage = SSGuard
ButtonBorderType = SYSTEM
DescriptLabel = CONTROLBAR:ToolTipGuard
RadiusCursorType = GUARD_AREA
InvalidCursorName = GenericInvalid
End
CommandButton Command_Guard_China
Command = GUARD
Options = OK_FOR_MULTI_SELECT NEED_TARGET_POS
TextLabel = CONTROLBAR:Guard
ButtonImage = SSGuard
ButtonBorderType = SYSTEM
DescriptLabel = CONTROLBAR:ToolTipGuard
RadiusCursorType = NAPALMSTRIKE
InvalidCursorName = GenericInvalid
End
CommandButton Command_Guard_GLA
Command = GUARD
Options = OK_FOR_MULTI_SELECT NEED_TARGET_POS
TextLabel = CONTROLBAR:Guard
ButtonImage = SSGuard
ButtonBorderType = SYSTEM
DescriptLabel = CONTROLBAR:ToolTipGuard
RadiusCursorType = FRENZY
InvalidCursorName = GenericInvalid
End
----------------------------------------------------------
;InGameUI.ini
NapalmStrikeRadiusCursor
Texture = YourNewChinaGuardTexture ;SCCNapalmStrike_China
Style = SHADOW_ALPHA_DECAL
OpacityMin = 50%
OpacityMax = 100%
OpacityThrobTime = 1000
Color = R:255 G:156 B:0 A:255
OnlyVisibleToOwningPlayer = Yes
End
FrenzyRadiusCursor
Texture = YourNewGLAGuardTexture ;SCCFrenzy
Style = SHADOW_ALPHA_DECAL
OpacityMin = 50%
OpacityMax = 100%
OpacityThrobTime = 1000
Color = R:255 G:0 B:0 A:255
OnlyVisibleToOwningPlayer = Yes
End
You cant use the napalmstrike and frenzy anymore if you use this method or maybe you can if you like a guard texture for a napalmstrike..:P.
Dont know if it works, didnt test it
Greetz
Edited by user Monday, September 7, 2015 5:32:32 AM(UTC)
| Reason: Secret reasons