User talk:Erorr404/Editor/design: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 2: Line 2:
* Don't see a good way of doing this. I'll have to write a function that you call when you use the GUI that prevents them from interfering. --[[User:Erorr404|Erorr404]] 02:56, 10 June 2007 (CDT)
* Don't see a good way of doing this. I'll have to write a function that you call when you use the GUI that prevents them from interfering. --[[User:Erorr404|Erorr404]] 02:56, 10 June 2007 (CDT)
** But "onClientClick ( string button, string state, cursorX, cursorY, worldX, worldY, worldZ, element clickedWorld, element clickedGUI )".  Why not just add the last parameter, then use if (not clickedGUI) then?
** But "onClientClick ( string button, string state, cursorX, cursorY, worldX, worldY, worldZ, element clickedWorld, element clickedGUI )".  Why not just add the last parameter, then use if (not clickedGUI) then?
*** Ok done. --[[User:Erorr404|Erorr404]] 20:27, 10 June 2007 (CDT)

Latest revision as of 01:27, 11 June 2007

Hey erorr, now that onClientClick passes a GUI element, can you add a check to prevent clicking on GUI causing picking up an element

  • Don't see a good way of doing this. I'll have to write a function that you call when you use the GUI that prevents them from interfering. --Erorr404 02:56, 10 June 2007 (CDT)
    • But "onClientClick ( string button, string state, cursorX, cursorY, worldX, worldY, worldZ, element clickedWorld, element clickedGUI )". Why not just add the last parameter, then use if (not clickedGUI) then?
      • Ok done. --Erorr404 20:27, 10 June 2007 (CDT)