more bugfixes

This commit is contained in:
Chr1Z93 2024-06-25 19:42:21 +02:00
parent f1c0a8e922
commit 03d5613570
5 changed files with 16 additions and 13 deletions

View File

@ -1335,8 +1335,7 @@ function contentDownloadCallback(request, params)
if pos then
spawnTable.position = pos
else
broadcastToAll(
"Please make space in the area below the tentacle stand in the upper middle of the table and try again.", "Red")
broadcastToAll("Please make space in the area below the tentacle stand in the upper middle of the table and try again.", "Red")
return
end
end

View File

@ -96,6 +96,14 @@ function createHelperXML()
self.UI.setXmlTable(xmlTable)
end
function shutOff()
self.UI.hide("Helper")
end
function initialize()
self.UI.show("Helper")
end
function triggerXMLTokenLabelCreation()
Global.call("activeRedrawEffect", {
VALID_TOKENS = VALID_TOKENS,

View File

@ -29,12 +29,10 @@ end
function actualDisplayUpdate()
if isHelperEnabled then
self.UI.show("Helper")
self.clearContextMenu()
self.addContextMenuItem("Disable Helper", toggleHelper)
if initialize then initialize() end
else
self.UI.hide("Helper")
self.clearContextMenu()
self.addContextMenuItem("Enable Helper", toggleHelper)
if shutOff then shutOff() end

View File

@ -26,8 +26,7 @@ end
-- hide buttons and stop monitoring
function shutOff()
self.UI.setAttribute("inactives", "active", false)
self.UI.setAttribute("actives", "active", false)
self.UI.hide("Helper")
if loopId then Wait.stop(loopId) end
loopId = nil
updateSave()
@ -35,8 +34,7 @@ end
-- show buttons and begin monitoring chaos bag for curse and bless tokens
function initialize()
self.UI.setAttribute("inactives", "active", true)
self.UI.setAttribute("actives", "active", true)
self.UI.show("Helper")
loopId = Wait.time(maybeUpdateButtonState, 1, -1)
updateSave()
end

View File

@ -13,8 +13,7 @@
onClick="resolveToken"
textColor="white"
active="false"/>
<TableLayout active="false"
position="0 -55 -22"
<TableLayout position="0 -55 -22"
rotation="0 0 180"
height="900"
width="1400"
@ -23,8 +22,9 @@
cellBackgroundColor="rgba(1,1,1,0)"/>
</Defaults>
<Panel id="Helper">
<TableLayout id="actives">
<Panel id="Helper"
active="false">
<TableLayout>
<Row>
<Cell>
<Button id="Bless"
@ -42,7 +42,7 @@
</Cell>
</Row>
</TableLayout>
<TableLayout id="inactives">
<TableLayout>
<Row>
<Cell>
<Button id="inactiveBless"