Modification to custom mouse pointers logic.

Registered by Renegade on 2011-12-04

One thing that would be handy would be to allow modders to respecify the frames of existing actions using the new mouse pointers logic.
Taking the old RP logic as an example:
[MouseCursors]
ChronoSphere=357,12,2,516,-1,12345,12345

This could be used to re-enable the animated Chrono Sphere cursor. It could also be used to specify cursor frames for unused actions like Tote and Heal, which are currently both set to the same frame, therefore causing graphical issues whenever you have a Carry-all or Medic unit.

Blueprint information

Status:
Not started
Approver:
AlexB
Priority:
Low
Drafter:
AlexB
Direction:
Approved
Assignee:
AlexB
Definition:
Approved
Series goal:
Accepted for 0.d
Implementation:
Unknown
Milestone target:
milestone icon 0.d

Related branches

Sprints

Whiteboard

Implemented as:
[MouseCursors]
Name=frame,count,interval,mini_frame,mini_count,hotspotx,hotspoty

This can be used to customize existing cursors. The names will be documented.

All tags for defining cursors have been changed to *only* accept names defined under the [MouseCursors] section.

There are some new default named cursors to represent special actions:
Tote: Carryall pickup cursor
TakeVehicle: used for VehicleThief and CanDrive capture actions
Sabotage: cursor for Saboteur infantry for blowing up a building
TogglePower: toggle power, obviously
NoTogglePower: when toggling power isn't possible
EngineerDamage: engineers can't capture yet if MultiEngineer is on
InfantryHeal: medic cursor
UnitRepair: mechanic cursor

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.