![]() |
dialog - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: dialog (/Thread-dialog) |
dialog - Pidrila - 04-10-2013 06:28 PM hey friends.. i am here becouse i need a basic dialog function which checks if dialog box is checked if yes then goes forward if no then close dialog.. example: Code: -------------------------------------- if Yes then forward, if no then close dialog.. i read about checkbox, but didn't find any solution how to use them.. RE: dialog - Shidhun - 04-10-2013 08:12 PM Just a very simple dialog, out of my mind (i hope the Gump-ID for the Resizegump is correct since we only use custom-gumps with different IDs) [DIALOG d_whatever] 0, 0 PAGE 0 //nomove //noclose //nodispose resizepic 0 0 3000 300 220 dhtmlgump 0 50 0 Do you want to buy that item? radio 20 90 2510 2511 0 1 radio 20 120 2510 2511 1 2 dtext 50 90 0 Yes dtext 50 120 0 No button 100 183 2117 2118 1 0 100 dtext 120 180 0 Confirm [DIALOG d_whatever BUTTON] On=0 sdialog d_whatever return 1 on=100 <yourfunction> something like : if <argchk[1]> put your function here (the user wants to by it) elif return 1 // close dialog endif return 1 RE: dialog - Pidrila - 04-14-2013 03:36 AM thanks but i already did it by other way RE: dialog - Rattlehead - 04-18-2013 05:23 PM other way? RE: dialog - amonvangrell - 04-19-2013 06:23 AM he probably made his own dlg. |