ImGui problem

Adn.asi

Member
Joined
Apr 9, 2018
Messages
8
Reaction score
1
Hi, i have a problem with Garret ImGui hook. ( http://ugbase.eu/Thread-ASI-ImGui-SAMP-Hook-SAMPCAC-Compatible )
When i close the menu functions are deactivated and when i close a collapsing header some problem, why? :sadpepe:
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
If u use like addcheck box , u must put in loop .
Explane...:

[shcode=cpp]
{$CLEO .cs}
0000: NOP

REPEAT
  WAIT 0
UNTIL 0AFA:

while true  // while true is loop
  wait 0
 
  if Dialog.IsVisible(0@)
  then
      /// this is not loop, work only when dialog active...
  end
 
/// put in while true
if
0B92: dialog 0@ checkbox_with_id 3 is_checked
then
   /// do something  and works good
end
 
end
[/shcode]
 

Adn.asi

Member
Joined
Apr 9, 2018
Messages
8
Reaction score
1
Parazitas said:
If u use like addcheck box , u must put in loop .
Explane...:

[shcode=cpp]
{$CLEO .cs}
0000: NOP

REPEAT
  WAIT 0
UNTIL 0AFA:

while true  // while true is loop
  wait 0
 
  if Dialog.IsVisible(0@)
  then
      /// this is not loop, work only when dialog active...
  end
 
/// put in while true
if
0B92: dialog 0@ checkbox_with_id 3 is_checked
then
   /// do something  and works good
end
 
end
[/shcode]
 not cleo, c++
 

DavidRO99

Active member
Joined
Nov 5, 2017
Messages
60
Reaction score
8
You probably put your funcs in the while true loop that was made for the gui, because that gets deactivated when the menu is closed, search for another while loop
 

Adn.asi

Member
Joined
Apr 9, 2018
Messages
8
Reaction score
1
DavidRO99 said:
You probably put your funcs in the while true loop that was made for the gui, because that gets deactivated when the menu is closed, search for another while loop

Can you help me?
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
DavidRO99 said:
You probably put your funcs in the while true loop that was made for the gui, because that gets deactivated when the menu is closed, search for another while loop

I sad him same..., but show it with cleo code..
 
Top