-
Notifications
You must be signed in to change notification settings - Fork 0
addButtonToWindow
addButtonToWindow($strWindow, $strName, $strBtnColor, $iSizeX, $iSizeY, $iPosX, $iPosY, $isPressed, $strText, $iTextX, $iTextY, $strColor, $doOutline)
Name of the window the switchbutton is added to.
Name of the button. It's important to use an unique name as this name is used for routing click events!
If this parameter equals '"Transparent"' the button will not have any texture or text, otherwise the parameter is passed to the buildButton function.
This is the X-Size of the button.
This is the Y-Size of the button.
This is the X-Position of the button.
This is the Y-Position of the button.
This controls if the new button is drawn as pressed.
This is the text that is written on the button. The parameter is passed to the addText function.
This is the X-Position of the Text. The parameter is passed to the addText function.
This is the Y-Position of the Text. The parameter is passed to the addText function.
This is the color of the Text. The parameter is passed to the addText function.
Should the text have an outline or not. The parameter is passed to the addText function.
addButtonToWindow "WND_QUIT_EDITOR" "BTN_EDITOR_QUIT_YES" "Red" 60 20 12 56 $False "Yes" 8 4 "Gold" $False
