Ingo Chou Posted October 20, 2015 Share Posted October 20, 2015 Hi, How can I set new position for button, textfield, panel, dialog,window in CASTORGUI dynamically? mywin.windowPosition.x / y , myBtn.buttonPosition.x / y seems can not change control position. Thanks for your help! Quote Link to comment Share on other sites More sharing options...
Dad72 Posted October 20, 2015 Share Posted October 20, 2015 Each element has an id, which allows you to add in a GUIManager custom CSS to format your elements.The values for moving an element can be found in the doc: Window: https://github.com/dad72/CastorGUI/blob/master/doc/GUIWindow.mdButton: https://github.com/dad72/CastorGUI/blob/master/doc/GUIButton.md Instead, you must do something like this:mywin.x / y , myBtn.x / yOr, you can use jQuery to format your elements with effect webGLmmk 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.