well I want to have unique Guard picture for my factions -- using the old unused icons
So where can i found that ini?
Originally Posted by: adrianemapmaker
You can make 3 seperate guard textures, 2 RadiusCursorTypes ar not used, NAPALMSTRIKE and FRENZY.
If you make new textures(or use unused ones) 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(Zero Hour), you can use the original guard area texture for USA and make two new buttons with your new textures.
Here is some example 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...
Example:
RadiusCursorType = GUARD_AREA
none of Them are in IngameUi.ini
Instead The Name that i found Similar is = GuardAreaRadiusCursor
is this another hardcoded stuff
Originally Posted by: adrianemapmaker
I will try to explain how the coding works, you create an object(in object oriented programming),
in that object you can specify the characteristics such as 'GuardAreaRadiusCursor', at runtime all the characteristics are set and every time you create a new object it will check for the characteristics, things that can change are rate of fire for example you can use a setter for that.
Here is a Java example
public void setRateOfFire(double rof) {
rateOfFire = rof;
}
There are some parameters you cant change, those parameters are either final or enum.
Here is a Java example of a final parameter
final static int someInt = 2;
I explained the enum in
This thread.
Cheers
Edited by user
8 years ago |
Reason: Not specified