Search results

Jump to navigation Jump to search
  • ...o '''nil''' after destroying. Any methods working on destroyed object, but it will sends error in debug, because objects is doesn't exists. local Event = Window:addEvent("onClientGUIClick", function()
    1 KB (129 words) - 15:43, 5 September 2018
  • This function sets for Custom Label hoverable - when mouse enter label, it changes color to default color of established scheme. LabelHoverable:addEvent("onClientGUIClick", function()
    1 KB (175 words) - 11:15, 27 July 2018
  • *'''RecommendWidth''' - Recommend width of Dialog Window. By default it calculates by text, and gets maximum value of this and calculated. ButtonWindow:addEvent("onClientGUIClick", function()
    2 KB (194 words) - 04:10, 22 July 2018
  • *'''button:''' the name of the button which will be clicked, it can be ''left'', ''right'', ''middle''. ...ouse button, will be ''down'' if the mouse button was pushed, or ''up'' if it was released. '''Please note currently only the ''up'' state is supported.'
    2 KB (337 words) - 16:40, 19 October 2022
  • 当玩家点击GUI上任何一部分,"[[onClientGUIClick]]" 事件会因为你点击了GUI组建而被触发。这允许我们更简 -- 附加 onClientGUIClick 到 btnLogin 上然后设置触发函数为 'clientSubmitLogin'
    16 KB (646 words) - 13:09, 7 February 2021
  • This example creating window with some widgets, and set it's color scheme to default light purple, and using ''proceedColor'': Button:addEvent("onClientGUIClick", function()
    1 KB (138 words) - 16:20, 28 July 2018
  • Returns an [[element]] of the created [[Element/GUI/Button|button]] if it was successfully created, false otherwise. ...es an edit box alongside an "Output!" button. When the button is clicked, it will output the message in the edit box into the Chat Box.
    3 KB (398 words) - 08:09, 30 October 2023
  • ...l text = table.concat({...}, " ") -- if the text has spaces this will turn it into a string ...local success = setClipboard( text ) -- set the clipboard and find out if it worked
    2 KB (209 words) - 10:34, 2 July 2021
  • Returns ''true'' if the checkbox is selected, ''false'' if it is not. addEventHandler("onClientGUIClick", root, checkboxBleepWhenClicked, false)
    1 KB (126 words) - 20:34, 7 November 2018
  • ...n text length, alongside an "Output!" button. When the button is clicked, it will output the message in the edit box into the chatbox. -- create an edit box and define it as "editBox".
    1 KB (194 words) - 21:53, 12 December 2020
  • ...mentParent(source) ) -- delete the tab. No need to check if it was actually a tab that was clicked, as this function doesn't work on other addEventHandler ( "onClientGUIClick", getRootElement(), deleteTabOnClick ) -- add an event handler for clic
    1 KB (158 words) - 11:51, 7 August 2019
  • ...need to be function, what returns with [[CustomWidget:addEvent]], because it needs to be modified, if you need to remove event handler. Button:addEvent("onClientGUIClick", function()
    1 KB (145 words) - 15:37, 5 September 2018
  • This creates a player list and then clears it when a button is clicked: addEventHandler("onClientGUIClick", clearButton, function()
    1 KB (149 words) - 17:47, 22 December 2022
  • This example creates a player list on the right of the screen and fills it with players online and sets the grid list item color according to their na When the player clicks on a grid list item, it'll output the color of it.
    2 KB (275 words) - 21:13, 7 November 2018
  • This code creates a grid list and fills it with the names of the connected players. When the user selects an item, its if ( column ) then -- If the column has been created, fill it with players
    2 KB (275 words) - 16:50, 11 June 2020
  • ...creates an edit box and an OK button. The user types in his password, and it checks if the password was correct -- create an edit box and define it as "editBox"
    2 KB (280 words) - 14:20, 27 April 2020
  • Under /client/ directory, create a text file and name it "gui.lua". ...clude the new gui.lua file in the meta.xml of the main resource, and label it as a client script:
    12 KB (1,771 words) - 22:21, 5 November 2018
  • ...n. Returns false if the button is not visible or the mouse is not over it. It also returns false if the ''guiElement'' is not a gui-window. This example makes the button to close the GUI window. (Which it was made for)
    3 KB (303 words) - 05:42, 3 March 2023
  • *'''button:''' the name of the button which will be clicked , it can be ''left'', ''right'', ''middle'' ...ly both ''up'' and ''down'' state are supported, which is different from ''onClientGUIClick''.''' For only ''up'' or ''down'', see [[onDgsMouseClickUp]]/[[onDgsMouseCl
    3 KB (392 words) - 14:16, 16 February 2021
  • ...er), '#%x%x%x%x%x%x', '' ) or getPlayerName(player)), false, false) -- Set it's text to the player's name excluding colorcodes ...guiGridListSetItemData ( grid, row, column, getPlayerName(player)) -- Set it's data to the player's name with colorcodes
    3 KB (394 words) - 21:18, 7 November 2018
View (previous 20 | ) (20 | 50 | 100 | 250 | 500)