So today i made a usefull thing for the base creator addon.. i made it that the players can show/hide cursor while placing the object so they can look at the object from different angles, it worked but i need to fix the gui part where the alpha is changed, when the player presses M again i need the guiAlpha to be back to its former value.
addCommandHandler( "togglecursor", function( ) showCursor( not isCursorShowing( ) ) guiSetAlpha(baseCPanel.window[1],0.20) end ) bindKey( "m", "down", "togglecursor" )
Thanks :D
So today i made a usefull thing for the base creator addon.. i made it that the players can show/hide cursor while placing the object so they can look at the object from different angles, it worked but i need to fix the gui part where the alpha is changed, when the player presses M again i need the guiAlpha to be back to its former value.
addCommandHandler( "togglecursor", function( ) showCursor( not isCursorShowing( ) ) guiSetAlpha(baseCPanel.window[1],0.20) end ) bindKey( "m", "down", "togglecursor" )Thanks :D