recentered buttons and fixed onLoad
This commit is contained in:
parent
ef13768c45
commit
c12235b9e1
@ -8,15 +8,13 @@ function onSave()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function onLoad(savedData)
|
function onLoad(savedData)
|
||||||
|
self.addContextMenuItem("Enable Helper", createButtons)
|
||||||
if savedData ~= "" then
|
if savedData ~= "" then
|
||||||
local loadedData = JSON.decode(savedData)
|
local loadedData = JSON.decode(savedData)
|
||||||
|
log(loadedData)
|
||||||
if loadedData.loopId then
|
if loadedData.loopId then
|
||||||
currentState = "Empty"
|
createButtons()
|
||||||
loopId = Wait.time(countBlessCurse, 1, -1)
|
|
||||||
self.addContextMenuItem("Clear Helper", deleteButtons)
|
|
||||||
end
|
end
|
||||||
else
|
|
||||||
self.addContextMenuItem("Enable Helper", createButtons)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -30,7 +28,7 @@ function deleteButtons()
|
|||||||
loopId = nil
|
loopId = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Create buttons based on the button parameters
|
-- Create buttons and begin monitoring chaos bag for curse and bless tokens
|
||||||
function createButtons()
|
function createButtons()
|
||||||
self.clearContextMenu()
|
self.clearContextMenu()
|
||||||
self.addContextMenuItem("Clear Helper", deleteButtons)
|
self.addContextMenuItem("Clear Helper", deleteButtons)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<Panel
|
<Panel
|
||||||
position="0 -50 -22"
|
position="0 -55 -22"
|
||||||
rotation="0 0 180"
|
rotation="0 0 180"
|
||||||
height="900" width="1400"
|
height="900" width="1400"
|
||||||
scale="0.1 0.1 1">
|
scale="0.1 0.1 1">
|
||||||
@ -20,7 +20,7 @@
|
|||||||
</Panel>
|
</Panel>
|
||||||
|
|
||||||
<Panel
|
<Panel
|
||||||
position="0 -50 -22"
|
position="0 -55 -22"
|
||||||
rotation="0 0 180"
|
rotation="0 0 180"
|
||||||
height="900" width="1400"
|
height="900" width="1400"
|
||||||
scale="0.1 0.1 1">
|
scale="0.1 0.1 1">
|
||||||
|
Loading…
Reference in New Issue
Block a user