CLEO Help Dialog Bug

CLEO related

Fr0z3n

Well-known member
Joined
Nov 20, 2019
Messages
294
Reaction score
36
Location
Srbija
Why this menu dont work?

C++:
Dialog.Create(1@, "{F58142}Litew F | Lavp")
Dialog.AddStatic(1@,1, "{ffffff}2.{F58142} opcija", 230, 10, 600, 30)
Dialog.AddStatic(1@,1, "{F58142}Server", 310, 35, 600, 30)
Dialog.AddButton(1@,2,"{F58142}Reconnect", 260, 65, 150, 30 )
Dialog.AddStatic(1@,1, "{ffffff}Fcs{F58142} dse", 270, 95, 600, 30)
Dialog.AddButton(1@,3,"{F58142}ar", 35, 125, 140, 30 )
Dialog.AddButton(1@,4,"{F58142}2", 195, 125, 140, 30 )
Dialog.AddButton(1@,5,"{F58142}3", 355, 125, 140, 30 )
Dialog.AddButton(1@,6,"{F58142}4", 525, 125, 140, 30 )
Dialog.AddStatic(1@,1, "{ffffff}Faa{F58142} sfm", 270, 155, 600, 30)
Dialog.AddButton(1@,7,"{F58142}1", 195, 235, 140, 30 )
Dialog.AddButton(1@,8,"{F58142}2", 355, 235, 140, 30 )
Dialog.AddStatic(1@,1, "{F58142}Faaa{ffffff} ao", 280, 265, 600, 30)
Dialog.AddButton(1@,10,"{F58142}1", 195, 355, 140, 30 )
Dialog.AddButton(1@,11,"{F58142}2", 355, 355, 140, 30 )
Dialog.AddStatic(1@,1, "{F58142}asa{ffffff} srh", 280, 385, 600, 30) //+30
Dialog.AddButton(1@,10,"{F58142}1", 195, 435, 140, 30 )
Dialog.AddButton(1@,11,"{F58142}2", 355, 435, 140, 30 )  //+80
Dialog.AddStatic(1@,1, "{F58142}s{ffffff} fcije", 280, 465, 600, 30) //+30
Dialog.AddButton(1@,10,"{F58142}1", 195, 545, 140, 30 )
Dialog.AddButton(1@,11,"{F58142}2", 355, 545, 140, 30 )  //+80
0B5A: get_screen_resolution 2@ 3@
0AF0: 2@ = get_int_from_ini_file "cleo\23.ini" section "Position" key "X"
0AF0: 3@ = get_int_from_ini_file "cleo\23.ini" section "Position" key "Y"
0B84: samp dialog 1@ set_pos_XY 2@ 3@ size 700 415
Dialog.SetVisible(1@, false)

:MENU
0B12: 4@ = 4@ xor 1
if
4@ == 1
then
Dialog.SetVisible(1@, true)
0B8D: samp set_cursor_mode 2
else
Dialog.SetVisible(1@, false)
0B8D: samp set_cursor_mode 0
end
Samp.CmdRet()
 

ollydbg

Active member
Joined
Jun 3, 2017
Messages
39
Reaction score
22
if you use the same id of the local dialog they will most likely be merged as one
0B91: dialog 1@ add_static id 2@ text 3@ pos_XY 4@ 5@ size 6@ 7@
 
Top