swat0284 Posted September 22, 2015 Share Posted September 22, 2015 HelloCan i call function with arguments in CASTORGUI?i want to do stg like thatguiTextureMaterial = new CASTORGUI.GUITexture("guiTextureMaterial","data/shader_change_transp.png",{x: guisystem.getCanvasWidth().width-(196/3) , y: (guisystem.getCanvasWidth().height - (196/3) ), w: 196/3, h: 204/3},guisystem,ShowMaterialDialog("shaderColorRed"));now i cant call ShowMaterialDialog without ("parametrs") Quote Link to comment Share on other sites More sharing options...
Dad72 Posted September 22, 2015 Share Posted September 22, 2015 Yes, try this: function() { ShowMaterialDialog("shaderColorRed");}guiTextureMaterial = new CASTORGUI.GUITexture("guiTextureMaterial","data/shader_change_transp.png",{x: guisystem.getCanvasWidth().width-(196/3) , y: (guisystem.getCanvasWidth().height - (196/3) ), w: 196/3, h: 204/3}, guisystem, function() { ShowMaterialDialog("shaderColorRed");} );This function will be executed after a click on the image. swat0284 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.