Bnae 1427 Posted March 18, 2016 Hello again. I'm having an issue with creating dialogs with hidden buttons. Dialog is called with createDialog example class my_dialog { movingEnable = false; idd = -1; class controls { class my_button_0 : RscButton { idc = 1200; text = "something"; x = 0.45; y = 0.25; w = 0.2; h = 0.1; action = ""; }; class my_button_1 : RscButton { idc = 1201; text = "something"; x = 0.45; y = 0.45; w = 0.2; h = 0.1; action = ""; }; class my_button_2 : RscButton { idc = 1202; text = "something"; x = 0.45; y = 0.65; w = 0.2; h = 0.1; action = ""; }; }; }; So let's say i wan't to hide the 1201 and 1202 and with pressing the 1200 they will show up. I tried with https://community.bistudio.com/wiki/ctrlShow So i tried to hide with ctrlShow false onLoad and with 1200 action to make them true. And i tried a lot of different ways and now i have to ask for help with this case. Not sure if it's possible to use this command without creating the dialog with ctrlCreate. Any ideas? Share this post Link to post Share on other sites
NeoArmageddon 926 Posted March 18, 2016 Can you post the code that you tried for hiding and showing the buttons? ctrlShow works as expected for me. Share this post Link to post Share on other sites
dreadedentity 107 Posted March 18, 2016 I can confirm ctrlShow is working also. The ACS editor uses it many many times. Gotta be a syntax problem, post the code you're using Share this post Link to post Share on other sites
Bnae 1427 Posted March 19, 2016 Can you post the code that you tried for hiding and showing the buttons? ctrlShow works as expected for me. Hello, Let's just say that i want that the 1st button to show the second button. So there is no other action than just revealing the second button. The second button will reveal the thirst button, and the third button is going to execute a switch case. 3rd button action action = "[] execVM ""core\market\fn_sweapon.sqf"""; Share this post Link to post Share on other sites
Bnae 1427 Posted March 19, 2016 And just to make clear how i do it right now. class my_dialog { movingEnable = false; idd = -1; class controls { class my_button_0 : RscButton { idc = 1200; text = "something"; x = 0.45; y = 0.25; w = 0.2; h = 0.1; action = "createDialog ""my_dialog_1"""; }; }; }; class my_dialog_1 { movingEnable = false; idd = -1; class controls { class my_button_1 : RscButton { idc = 1201; text = "something"; x = 0.45; y = 0.25; w = 0.2; h = 0.1; action = "closeDialog 0"; }; class my_button_2 : RscButton { idc = 1202; text = "something"; x = 0.45; y = 0.45; w = 0.2; h = 0.1; action = "createDialog ""my_dialog_2"""; }; }; }; class my_dialog_2 { movingEnable = false; idd = -1; class controls { class my_button_3 : RscButton { idc = 1203; text = "something"; x = 0.45; y = 0.25; w = 0.2; h = 0.1; action = "closeDialog 0"; }; class my_button_4 : RscButton { idc = 1204; text = "something"; x = 0.45; y = 0.45; w = 0.2; h = 0.1; action = "closeDialog 0"; }; class my_button_5 : RscButton { idc = 1205; text = "something"; x = 0.45; y = 0.65; w = 0.2; h = 0.1; action = "EXECUTE"; }; }; }; As you see this takes way too much space compared to hiding the buttons. Share this post Link to post Share on other sites