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 if pos then
spawnTable.position = pos spawnTable.position = pos
else else
broadcastToAll( broadcastToAll("Please make space in the area below the tentacle stand in the upper middle of the table and try again.", "Red")
"Please make space in the area below the tentacle stand in the upper middle of the table and try again.", "Red")
return return
end end
end end

View File

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

View File

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

View File

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

View File

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