hahahafuccoff
Member
- Joined
- Jun 6, 2018
- Messages
- 16
- Reaction score
- 0
Hi, i am trying to make a little dialog but i am pretty bad at cleo because i am newbie and that's my second one
I don't get what am i making wrong, i need a little help
Well, first of all, afetr i type cheat "xaxa" the dialog shows but i can't see my mouse
Second, if i type xaxa more times, the menu show more times...
3. i don't know how to send a command if i am clicking on buttons, like when i click on button 1 chatmsg "shit1", when i click on button 2 chatmsg "shit2", i will modify it to not "chatmsg", but first of all i need a starting point because i tried a lot but i didn't found shit...
4. i don't know how to close dialog when i click exit......
It's my first dialog and i followed this tutorial: http://translate.google.com/translate?depth=2&rurl=translate.google.com&sl=ru&tl=en&u=http://blast.hk/wiki/tutorials:dxut_dialogs but it's in russian as you can see, i get how to create buttons, but i don't how to use....
I'll be thankful, sorry for my bad english
{$CLEO .cs}
//-------------MAIN---------------
thread 'DIALOG'
IALOG_1
wait 0
if
0ADC: test_cheat "xaxa"
else_jump @DIALOG_1
///////MENU\\\\\\\\
0B80: dialog 1@ = create "{00BCFF}text shit"
0B84: dialog 1@ set_pos_XY 570 400 size 250 180
///////SHIT 1\\\\\\\\
0B91: dialog 1@ add_static id 1 text "{FF9900}shit 1" pos_XY 10 4 size 100 20
0B82: dialog 1@ add_button id 1 text "{FFFFFF}Use" pos_XY 165 4 size 80 20
///////SHIT 2\\\\\\\
0B91: dialog 1@ add_static id 2 text "{FF9900}shit 2" pos_XY 10 29 size 100 20
0B82: dialog 1@ add_button id 2 text "{FFFFFF}Use" pos_XY 165 29 size 80 20
///////SHIT 3\\\\\\\
0B91: dialog 1@ add_static id 3 text "{FF9900}shit 3" pos_XY 10 54 size 100 20
0B82: dialog 1@ add_button id 3 text "{FFFFFF}Use" pos_XY 165 54 size 80 20
///////SHIT 4\\\\\\\
0B91: dialog 1@ add_static id 4 text "{FF9900}shit 4" pos_XY 10 79 size 100 20
0B82: dialog 1@ add_button id 4 text "{FFFFFF}Use" pos_XY 165 79 size 80 20
///////EXIT\\\\\\\
0B82: dialog 1@ add_button id 5 text "{FF0000}Exit" pos_XY 80 125 size 90 30
goto @DIALOG_1
I don't get what am i making wrong, i need a little help
Well, first of all, afetr i type cheat "xaxa" the dialog shows but i can't see my mouse
Second, if i type xaxa more times, the menu show more times...
3. i don't know how to send a command if i am clicking on buttons, like when i click on button 1 chatmsg "shit1", when i click on button 2 chatmsg "shit2", i will modify it to not "chatmsg", but first of all i need a starting point because i tried a lot but i didn't found shit...
4. i don't know how to close dialog when i click exit......
It's my first dialog and i followed this tutorial: http://translate.google.com/translate?depth=2&rurl=translate.google.com&sl=ru&tl=en&u=http://blast.hk/wiki/tutorials:dxut_dialogs but it's in russian as you can see, i get how to create buttons, but i don't how to use....
I'll be thankful, sorry for my bad english
{$CLEO .cs}
//-------------MAIN---------------
thread 'DIALOG'
wait 0
if
0ADC: test_cheat "xaxa"
else_jump @DIALOG_1
///////MENU\\\\\\\\
0B80: dialog 1@ = create "{00BCFF}text shit"
0B84: dialog 1@ set_pos_XY 570 400 size 250 180
///////SHIT 1\\\\\\\\
0B91: dialog 1@ add_static id 1 text "{FF9900}shit 1" pos_XY 10 4 size 100 20
0B82: dialog 1@ add_button id 1 text "{FFFFFF}Use" pos_XY 165 4 size 80 20
///////SHIT 2\\\\\\\
0B91: dialog 1@ add_static id 2 text "{FF9900}shit 2" pos_XY 10 29 size 100 20
0B82: dialog 1@ add_button id 2 text "{FFFFFF}Use" pos_XY 165 29 size 80 20
///////SHIT 3\\\\\\\
0B91: dialog 1@ add_static id 3 text "{FF9900}shit 3" pos_XY 10 54 size 100 20
0B82: dialog 1@ add_button id 3 text "{FFFFFF}Use" pos_XY 165 54 size 80 20
///////SHIT 4\\\\\\\
0B91: dialog 1@ add_static id 4 text "{FF9900}shit 4" pos_XY 10 79 size 100 20
0B82: dialog 1@ add_button id 4 text "{FFFFFF}Use" pos_XY 165 79 size 80 20
///////EXIT\\\\\\\
0B82: dialog 1@ add_button id 5 text "{FF0000}Exit" pos_XY 80 125 size 90 30
goto @DIALOG_1