-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implements system to customize mouse cursor type properties and mouse cursors used by actions. #1000
Implements system to customize mouse cursor type properties and mouse cursors used by actions. #1000
Conversation
This comment is automatically generated by Nightly.link and allows non-registered users to get download the artifacts for this pull request. These links are also updated when the pull request is pushed to. |
47dd248
to
e6af600
Compare
e6af600
to
4f85393
Compare
Tested with Freeware TS and TS Client. Did not test every cursor on the list, but the ones I checked did work correctly. I did have two issues however. If you move the HotSpotX or Y locations for the Normal cursor, the game will crash on starting up. Also, the locations seem to be inverted, as I moved the Deploy cursor to left bottom and it showed up in top right |
1ec6234
to
1d967c2
Compare
65abfa3
to
5be9542
Compare
a307ea7
to
735e008
Compare
f40cd5a
to
ce12b49
Compare
1d967c2
to
e0780ba
Compare
e0780ba
to
b08a5ba
Compare
Updated comment: This PR was updated to also include new ActionTypes. Here is the default Action.ini ;============================================================================
; ACTION.INI
;
; This control file is used to control the mouse pointers used for various actions.
;
; $Author: $
; $Archive: $
; $Modtime: $
; $Revision: $
;============================================================================
; ******* Action List *******
; Lists the action types in this control file. Each action is given a
; unique (internal only) identifier name, these can not be renamed or removed!
;
; FORMAT;
; <Mouse>,<ShadowMouse>
;
; Mouse and ShadowMouse must be names of mouse types, listed in MOUSE.INI.
; ShadowMouse is shown when the mouse pointer is over shroud, Mouse is shown otherwise.
[ActionTypes]
None=Normal,Normal
Move=CanMove,CanMove
NoMove=NoMove,NoMove
Enter=Enter,Normal
Self=Deploy,Normal
Attack=CanAttack,CanMove
Harvest=CanAttack,Normal
Select=CanSelect,Normal
ToggleSelect=CanSelect,Normal
Capture=Enter,Normal
Repair=Repair,NoRepair
Sell=Sell,NoSell
SellUnit=SellUnit,NoSell
NoSell=NoSell,NoSell
NoRepair=NoRepair,NoRepair
Sabotage=Demolitions,Normal
Tote=Tote,NoTote
DontUse2=Normal,Normal
DontUse3=Normal,Normal
Nuke=NuclearBomb,NuclearBomb
DontUse4=Normal,Normal
DontUse5=Normal,Normal
DontUse6=Normal,Normal
DontUse7=Normal,Normal
DontUse8=Normal,Normal
GuardArea=AreaGuard,AreaGuard
Heal=Heal,Heal
Damage=Enter,Normal
GRepair=GRepair,Normal
NoDeploy=NoDeploy,NoDeploy
NoEnter=NoEnter,NoEnter
NoGRepair=NoRepair,NoRepair
TogglePower=TogglePower,NoTogglePower
NoTogglePower=NoTogglePower,NoTogglePower
EnterTunnel=Enter,Normal
NoEnterTunnel=Normal,NoEnter
EMPulse=EMPulse,EMPulse
IonCannon=AirStrike,AirStrike
EMPulseRange=EMPulseRange,EMPulseRange
ChemBomb=ChemBomb,ChemBomb
PlaceWaypoint=PlaceWaypoint,PlaceWaypoint
NoPlaceWaypoint=NoPlaceWaypoint,NoPlaceWaypoint
EnterWaypointMode=EnterWaypointMode,EnterWaypointMode
FollowWaypoint=FollowWaypoint,FollowWaypoint
SelectWaypoint=SelectWaypoint,SelectWaypoint
LoopWaypointPath=LoopWaypointPath,LoopWaypointPath
DragWaypoint=Normal,Normal
AttackWaypoint=AttackWaypoint,AttackWaypoint
EnterWaypoint=EnterWaypoint,EnterWaypoint
PatrolWaypoint=PatrolWaypoint,PatrolWaypoint
DropPod=AirStrike,AirStrike
RallyToPoint=Normal,Normal
AttackSupport=Normal,Normal
Additionally, it is no longer required to list vanilla mouse and action types. If unlisted, their defaults values will be used.
In [SOMEWEAPON] ; WeaponType
CursorAttack=Attack ; ActionType, the action whose cursor properties will be used for this weapon's attack cursor when the unit is not in range of the target.
CursorStayAttack=Attack ; ActionType, the action whose cursor properties will be used for this weapon's attack cursor when the unit is in range of the target.
In [SOMESUPERWEAPON] ; SuperWeaponType
ActionOutOfRange=EMPulseRange ; ActionType, the action used by this super weapon when it's out of range. |
72aaff7
to
9086d18
Compare
Co-authored-by: CCHyper <[email protected]>
f39ee6e
to
7cde748
Compare
Closes #999, closes #800, partially #283
This pull request implements a new system to customize the mouse cursor type properties. Loading of a new INI has been where these properties can be adjusted, if the INI is not present, the game will default to the normal hardcoded mouse type properties.
The following is the
MOUSE.INI
that should be used;NOTE: All entries must be present in the INI, otherwise loading of the INI will fail!