User Tools

Site Tools


scripting:reference:scriptedosd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
scripting:reference:scriptedosd [2012/04/06 00:25] mitscripting:reference:scriptedosd [2025/05/28 16:35] (current) – external edit 127.0.0.1
Line 6: Line 6:
  
 ==== OSDCreate ==== ==== OSDCreate ====
-Parameters :  ''OSD_TYPE'', ''Name'', ''Title'' \\ +Parameters ''OSD_TYPE'', ''Name'', ''Title'', ''[Expiry Time]'' 
-Example ''osdcreate(OSDBUILDING,"Main", "" )'' \\ +Example ''osdcreate(OSDBUILDING,"Main", "" )'' | 
-Description This function is used to start a new osd block. The OSD_TYPE can be one of : +Description This function is used to start a new osd block. 
-<codedoc> +
-OSDLIST   OSDBUILDING  +
-</codedoc> +
-If ''OSDLIST'' is used a background window is created 400x300, in the center of the screen. With ''OSDBUILDING'', the OSD is displayed within the region of the building access window.+
  
 +OSD_TYPE determine the location and appearance of the OSD background (See list below).
 The ''Name'' of the OSD is used to identify its components : See [Responding to OSD Button Presses]. The ''Name'' of the OSD is used to identify its components : See [Responding to OSD Button Presses].
 +''Expiry Time'' is optional - if used, it specifies the number of seconds the OSD will appear for before automatically closing.
  
-==== OSDAddItem ==== +OSD_TYPE can be one of :\\ 
-Parameters  ''OSD_ITEMTYPE'', ''Name'', ''Title'' \\ +- OSDWINDOW \\ 
-Example : ''OsdAddItem(OSDIMAGE,"", "http://myweb.com/image.jpg" )'' \\ +- OSDBUILDING\\ 
-Description :+- OSDPOPUP\\ 
 +- OSDBLANK \\ 
 +- OSDLOWER\\ 
 +- OSDTUTORIAL\\ 
 +- OSDNOTIFICATION\\ 
 +- OSDSPEC\\ 
 +- OSDSPECLOWER \\ 
 +- OSDBLANKCENTER \\ 
 +- OSDSCRIPTEDBUILDING \\
  
 +''OSDWINDOW'' is used a background window is created 400x300, in the center of the screen. With ''OSDBUILDING'', the OSD is displayed within the region of the building access window.
 +
 +
 +==== OSDAddItem ====
 +^ Parameters | ''OSD_ITEMTYPE'', ''Name'', ''Text''
 +^ Example | ''OsdAddItem( IMAGE, "", "http://myweb.com/image.jpg" )'' |
 +^ Description | This is a basic function to add an OSD item to the screen. Each item appears below any previously added items. If you want more control of the layout of your OSD then you would use the OSDAddAt command.. | 
 ==== OSDAddAt ==== ==== OSDAddAt ====
 Parameters :  ''OSD_ITEMTYPE'', X, Y, W, H, ''Name'', ''Title'' \\ Parameters :  ''OSD_ITEMTYPE'', X, Y, W, H, ''Name'', ''Title'' \\
Line 27: Line 40:
    
 ==== OSDSet ==== ==== OSDSet ====
-Parameters :   +Parameters | ''Flag to set'' 
-Example  +Example | ''osdset( "BlockEscape" )'' | 
-Description : +Description | This function is used to set a specific OSD behaviour flag. |  
- + 
 +Currently, "BlockEscape" is the only valid flag and is used to remove the user control to press escape to close an osd screen. 
 +//Example// 
 +<code> 
 +osdcreate( OSDLOWER, "Help", "Help Guide" ) 
 +osdset( "BlockEscape"
 +osdaddat( TEXT, 100,0, 400, 100, "", "Welcome to my world, press the button to start" ) 
 +osdaddat( BUTTON, 200, 70, 200, 35, "", "Start Game" ) 
 +osdactivate() 
 +</code> 
 ==== OSDActivate ==== ==== OSDActivate ====
 Parameters : None Parameters : None
Line 39: Line 62:
 ===== ScriptedOSD Item Types ===== ===== ScriptedOSD Item Types =====
  
-==== OSDBUTTON ==== +==== Text Types ==== 
-==== OSDTEXT ==== +Text can be added to your OSD using various text types, that specify the size, alignment and colour of the text to be displayed. 
-==== OSDIMAGE ==== +Valid text types are as follows :\\ 
-==== OSDBULLET ==== +  * TEXT 
-==== OSDEXITBUTTON ==== +  * BIGTEXT 
-==== OSDLISTBUTTON ==== +  * FADEDTEXT 
-==== OSDBIGTEXT ====+  * 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.1333671933.txt.gz · Last modified: (external edit)