scripting:scriptedosd
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| scripting:scriptedosd [2012/04/05 21:17] – mit | scripting:scriptedosd [2025/05/28 16:34] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| <note tip>One common use for ScriptedOSD is in conjunction with the ' | <note tip>One common use for ScriptedOSD is in conjunction with the ' | ||
| </ | </ | ||
| + | |||
| + | For details of all the OSD commands and parameters available see the [[scripting: | ||
| ===== ScriptedOSD Example ===== | ===== ScriptedOSD Example ===== | ||
| Line 13: | Line 15: | ||
| { | { | ||
| | | ||
| - | | + | |
| - | | + | |
| - | | + | |
| | | ||
| } | } | ||
| Line 21: | Line 23: | ||
| Event( " | Event( " | ||
| { | { | ||
| - | osdcreate(OSDLIST," | + | *notify %PLAYER% |
| - | | + | |
| - | | + | |
| } | } | ||
| - | Event( "OSDSELECT", " | + | Event( "OSDSelect", " |
| { | { | ||
| - | osdcreate(OSDLIST," | + | *notify %PLAYER% |
| - | | + | |
| - | | + | |
| } | } | ||
| </ | </ | ||
| Line 36: | Line 34: | ||
| < | < | ||
| The second parameter of the OSDCreate function ' | The second parameter of the OSDCreate function ' | ||
| - | </ | + | </ |
| - | Each ' | + | Each ' |
| + | |||
| + | If you want to control the layout of your OSD more directly, you use **osdaddat** rather than osdadditem, providing X,Y, width and height for each item. | ||
| + | e.g. | ||
| + | < | ||
| + | | ||
| + | | ||
| + | | ||
| + | </ | ||
| - | The second two blocks handle the response when the player selects one of the buttons. The second parameter of the event is formatted '' | ||
scripting/scriptedosd.1333660665.txt.gz · Last modified: (external edit)
