scripting:reference:scriptedosd
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
scripting:reference:scriptedosd [2012/04/05 20:39] – mit | scripting:reference:scriptedosd [2025/05/28 16:35] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== ScriptedOSD Reference ===== | ===== ScriptedOSD Reference ===== | ||
- | Scripts run on the server can create an OSD layout that is transmitted to then executed by the client. | + | Scripts run on the server can create an OSD layout that is transmitted to then executed by the client. See the [[scripting: |
===== ScriptedOSD Commands ===== | ===== ScriptedOSD Commands ===== | ||
- | **'' | + | ==== OSDCreate |
- | Parameters | + | ^ Parameters |
- | Example | + | ^ Example |
- | Description | + | ^ Description |
- | < | + | |
- | OSDLIST | + | |
- | </ | + | |
- | If '' | + | |
+ | OSD_TYPE determine the location and appearance of the OSD background (See list below). | ||
The '' | The '' | ||
+ | '' | ||
- | **'' | + | OSD_TYPE |
- | Parameters : '' | + | - OSDWINDOW \\ |
- | Example : '' | + | - OSDBUILDING\\ |
- | Description : | + | - OSDPOPUP\\ |
+ | - OSDBLANK \\ | ||
+ | - OSDLOWER\\ | ||
+ | - OSDTUTORIAL\\ | ||
+ | - OSDNOTIFICATION\\ | ||
+ | - OSDSPEC\\ | ||
+ | - OSDSPECLOWER \\ | ||
+ | - OSDBLANKCENTER \\ | ||
+ | - OSDSCRIPTEDBUILDING \\ | ||
- | **'' | + | '' |
- | Parameters : '' | + | |
- | Example : '' | + | |
- | Description : | + | |
- | **'' | + | |
- | Parameters | + | ==== OSDAddItem ==== |
- | Example | + | ^ Parameters |
- | Description | + | ^ Example |
- | + | ^ Description | |
- | **'' | + | ==== OSDAddAt ==== |
- | Parameters : '' | + | Parameters : '' |
- | Example : '' | + | Example : '' |
Description : | Description : | ||
+ | |||
+ | ==== OSDSet ==== | ||
+ | ^ Parameters | '' | ||
+ | ^ Example | '' | ||
+ | ^ Description | This function is used to set a specific OSD behaviour flag. | | ||
+ | |||
+ | Currently, " | ||
+ | //Example// | ||
+ | < | ||
+ | osdcreate( OSDLOWER, " | ||
+ | osdset( " | ||
+ | osdaddat( TEXT, 100,0, 400, 100, "", | ||
+ | osdaddat( BUTTON, 200, 70, 200, 35, "", | ||
+ | osdactivate() | ||
+ | </ | ||
+ | |||
+ | ==== OSDActivate ==== | ||
+ | Parameters : None | ||
+ | Example : '' | ||
+ | Description : Triggers the actual transmission of the OSD layout to the client. | ||
===== ScriptedOSD Item Types ===== | ===== ScriptedOSD Item Types ===== | ||
+ | ==== Text Types ==== | ||
+ | Text can be added to your OSD using various text types, that specify the size, alignment and colour of the text to be displayed. | ||
+ | Valid text types are as follows :\\ | ||
+ | * TEXT | ||
+ | * BIGTEXT | ||
+ | * FADEDTEXT | ||
+ | * SMALLTEXT | ||
+ | * TEXTRIGHT | ||
+ | * SMALLTEXTRIGHT | ||
+ | * BIGTEXTRIGHT | ||
+ | * BOLDTEXT | ||
+ | * SMALLFADEDTEXT (or FADEDSMALLTEXT) | ||
+ | * BIGFADEDTEXT | ||
+ | * WARNINGTEXT | ||
+ | * BIGWARNINGTEXT | ||
+ | * TEXT2 | ||
+ | * FADEDTEXT2 | ||
+ | * TEXT2RIGHT | ||
+ | * GIANTTEXT | ||
+ | * GIANTTEXTRIGHT | ||
+ | * GIANTFADEDTEXT | ||
+ | * BLINKINGWARNINGTEXT | ||
+ | * BULLET | ||
+ | |||
+ | ==== Button Types ==== | ||
+ | |||
+ | * BUTTON | ||
+ | * EXITBUTTON | ||
+ | * FADEDBUTTON | ||
+ | * APPLYBUTTON | ||
+ | * APPLYEXITBUTTON | ||
+ | |||
+ | ==== Image Types ==== | ||
+ | |||
+ | * IMAGE | ||
+ | * FADEDIMAGE | ||
+ | * EXITIMAGE | ||
+ | |||
+ | ==== Graphic Types ==== | ||
+ | |||
+ | * RECT | ||
+ | * LINE | ||
+ | * BOX | ||
+ | |||
+ | ==== User Input Types ==== | ||
+ | |||
+ | * TEXTENTRY | ||
+ | * VALUE | ||
+ | * CASHVALUE | ||
+ | |||
+ | ==== Display Control Types ==== | ||
+ | |||
+ | * HTTPSET | ||
+ | * BUTTONMINWIDTH | ||
+ | * MINHEIGHT | ||
+ | |||
+ | ==== Other OSD Types ==== | ||
+ | * LISTBUTTON | ||
+ | * DATE | ||
scripting/reference/scriptedosd.1333658370.txt.gz · Last modified: (external edit)