Jump to content
  • 0

How to continue process after a dialog


Guest ATP-RAY2OP

Question

Guest ATP-RAY2OP

For example consider this code

gg.alert("Hack 1 is being activated" ) 
hack1() 

 If user does not click the OK button on gg.alert then hack1() will not be executed and it will remain on gg.alert() dialog

Is there a way to execute downstream codes while an alert dialog is shown

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

1 hour ago, ATP-RAY2OP said:

For example consider this code


gg.alert("Hack 1 is being activated" ) 
hack1() 

 If user does not click the OK button on gg.alert then hack1() will not be executed and it will remain on gg.alert() dialog

Is there a way to execute downstream codes while an alert dialog is shown

alert1 = gg.alert("Texted", "Choice1", "Choice2", "Choice3")
if alert1 ~= 0 then
    if alert1 == 1 then
        
    elseif alert1== 2 then
        
    elseif alert1== 3 then
        
    end
else
    --make anything the user not select Choice1 or 2 and not 3.
end

Link to comment
Share on other sites

  • Administrators
1 hour ago, ATP-RAY2OP said:

Is there a way to execute downstream codes while an alert dialog is shown

No. Alert is always modal. You need Toast if you do not want modal notification.

Link to comment
Share on other sites

Guest ATP-RAY2OP
3 hours ago, HEROGAMEOfficial said:

alert1 = gg.alert("Texted", "Choice1", "Choice2", "Choice3")
if alert1 ~= 0 then
    if alert1 == 1 then
        
    elseif alert1== 2 then
        
    elseif alert1== 3 then
        
    end
else
    --make anything the user not select Choice1 or 2 and not 3.
end

well it was not what i asked, but thanks anyways Enyby answered it 🙂

[added 1 minute later]
2 hours ago, Enyby said:

No. Alert is always modal. You need Toast if you do not want modal notification.

Yeh i will prefer toast, but toast too short 🥴, it might be a good idea to add a code something like gg.processResume() for this thing.So gameguardian will check if this statement(gg.processResume()) is after the alert statement or not, and it will proceed accordingly

Link to comment
Share on other sites

1 hour ago, ATP-RAY2OP said:

well it was not what i asked, but thanks anyways Enyby answered it 🙂

[added 1 minute later]

Yeh i will prefer toast, but toast too short 🥴, it might be a good idea to add a code something like gg.processResume() for this thing.So gameguardian will check if this statement(gg.processResume()) is after the alert statement or not, and it will proceed accordingly

Lol 

🔻

5 hours ago, ATP-RAY2OP said:

not click the OK button on gg.alert then hack1() will not be executed

I think you want if not click Choice1 or 2 and 3 he back alert (not do it anything), if yes just use "function" then use return function.

Link to comment
Share on other sites

Guest ATP-RAY2OP
4 hours ago, ItsSC said:

gg.toast("Longer toast",true)

gg.toast("Shorter toast")

Wait!! hold on, isn't it other way round?

long toast : fast:false

short :fast:true

That's wht Api says, havnt checked though

 

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.