EVENT DISPLAYPOINTER: Difference between revisions
Jump to navigation
Jump to search
Doom64hunter (talk | contribs) mNo edit summary |
Doom64hunter (talk | contribs) m this has 3 return values |
||
Line 1: | Line 1: | ||
{{EventTable|1=EVENT_DISPLAYPOINTER|2=[[screenpeek]]|3=[[i|player->i]]|4= | {{EventTable|1=EVENT_DISPLAYPOINTER|2=[[screenpeek]]|3=[[i|player->i]]|4=3 values}} | ||
'''EVENT_DISPLAYPOINTER''' is a [[EDuke32 event list|Game Event]]. | '''EVENT_DISPLAYPOINTER''' is a [[EDuke32 event list|Game Event]]. | ||
Line 5: | Line 5: | ||
This [[event]] is called when the [[EDuke32 Wii|Wii]] port cursor for aiming is being displayed. | This [[event]] is called when the [[EDuke32 Wii|Wii]] port cursor for aiming is being displayed. | ||
Gamevar [[RETURN]] is set to the | Gamevar [[RETURN]] is set to the pointer's [[picnum]]. Modifying this value will change the tile that is displayed. | ||
Setting RETURN to -1 disables hardcoded drawing of the cursor completely. | Setting RETURN to -1 disables hardcoded drawing of the cursor completely. | ||
See also [[EVENT_DISPLAYCROSSHAIR]]. | See also [[EVENT_DISPLAYCROSSHAIR]]. | ||
== Return Values == | |||
It is possible to change the tile, as well as the position of the pointer. | |||
:; userdef.return 0 ([[RETURN]]) | |||
:: Set to the crosshair picnum, default is 2523. Change this to alter the pointer sprite displayed onscreen. | |||
:; userdef.return 1 | |||
:: Contains the x-position of the pointer. | |||
:; userdef.return 2 | |||
:: Contains the y-position of the pointer. | |||
[[Category:Events]] | [[Category:Events]] |
Latest revision as of 05:15, 4 February 2022
Event ID | player# | THISACTOR | RETURN | |
---|---|---|---|---|
EVENT_DISPLAYPOINTER | screenpeek | player->i | 3 values |
EVENT_DISPLAYPOINTER is a Game Event.
This event is called when the Wii port cursor for aiming is being displayed.
Gamevar RETURN is set to the pointer's picnum. Modifying this value will change the tile that is displayed.
Setting RETURN to -1 disables hardcoded drawing of the cursor completely.
See also EVENT_DISPLAYCROSSHAIR.
Return Values
It is possible to change the tile, as well as the position of the pointer.
- userdef.return 0 (RETURN)
- Set to the crosshair picnum, default is 2523. Change this to alter the pointer sprite displayed onscreen.
- userdef.return 1
- Contains the x-position of the pointer.
- userdef.return 2
- Contains the y-position of the pointer.