Jump to content
  • 0

How to perform action when gg clicked


Pipes

Question

Posted

What I want to say is that:

1. User clicks GG icon

2. Search '2' in DWORD

3. Clicks icon again

4. Refine number as '3'

5. Clicks icon again

6. Refine number as '1'

7. Clicks icon again

8. Refine number as '2'

 

So, what is the code for this?  I tried

gg.isClickedUiButton

but it isn't working

2 answers to this question

Recommended Posts

Posted
14 hours ago, Pipes said:

What I want to say is that:

1. User clicks GG icon

2. Search '2' in DWORD

3. Clicks icon again

4. Refine number as '3'

5. Clicks icon again

6. Refine number as '1'

7. Clicks icon again

8. Refine number as '2'

 

So, what is the code for this?  I tried


gg.isClickedUiButton

but it isn't working

You search 2 and refine 3 ?

Posted
local a = 0
gg setVisible(false)
while true do
	if gg.isVisible() then
		gg setVisible(false)
		if a < 1 then
			gg.refineNumber(1, 4)
		elseif a < 2 then
			gg.refineNumber(2, 4)
		elseif a < 3 then
			gg.refineNumber(3, 4)
		elseif a < 4 then
			gg.refineNumber(4, 4)
		end
		a = a + 1
	end
end

 

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.