small changes

This commit is contained in:
dscarpac 2024-07-02 17:52:46 -05:00
parent cfa95bbc14
commit 8b0dec5fac
3 changed files with 4 additions and 6 deletions

View File

@ -5,6 +5,7 @@ local guidReferenceApi = require("core/GUIDReferenceApi")
local playermatApi = require("playermat/PlayermatApi")
local isHelperEnabled = false
local updated
function updateSave()
self.script_state = JSON.encode({ isHelperEnabled = isHelperEnabled })

View File

@ -4,6 +4,8 @@ local guidReferenceApi = require("core/GUIDReferenceApi")
local playermatApi = require("playermat/PlayermatApi")
local searchLib = require("util/SearchLib")
local tokenManager = require("core/token/TokenManager")
local isHelperEnabled = false
local updated
function updateSave()
@ -17,7 +19,6 @@ function onLoad(savedData)
isHelperEnabled = loadedData.isHelperEnabled
end
checkOptionPanel()
updateDisplay()
end
-- hide buttons and stop monitoring

View File

@ -2,7 +2,7 @@
<Button padding="50 50 50 50"
font="font_teutonic-arkham"
fontSize="200"
iconWidth="400"
iconWidth="300"
iconAlignment="Right"/>
<Button class="inactive"
onClick="errorMessage"
@ -28,7 +28,6 @@
<Cell>
<Button id="Bless"
icon="token-bless"
text="+ 1"
color="#9D702CE6"
class="active"/>
</Cell>
@ -37,7 +36,6 @@
<Cell>
<Button id="Curse"
icon="token-curse"
text="+ 1"
color="#633A84E6"
class="active"/>
</Cell>
@ -66,7 +64,6 @@
<Cell>
<Button id="inactiveBless"
icon="token-bless"
text="+ 1"
class="inactive"/>
</Cell>
</Row>
@ -74,7 +71,6 @@
<Cell>
<Button id="inactiveCurse"
icon="token-curse"
text="+ 1"
class="inactive"/>
</Cell>
</Row>