From ad06db34f8a427131e7561d4c8483f276a29828a Mon Sep 17 00:00:00 2001 From: Chr1Z93 Date: Fri, 20 Oct 2023 16:36:13 +0200 Subject: [PATCH] create buttons on load if temp tokens present --- src/accessories/TokenArranger.ttslua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/accessories/TokenArranger.ttslua b/src/accessories/TokenArranger.ttslua index 2be2c7cd..6064fa0e 100644 --- a/src/accessories/TokenArranger.ttslua +++ b/src/accessories/TokenArranger.ttslua @@ -69,7 +69,13 @@ function onLoad(saveState) end createButtonsAndInputs() - + + -- maybe trigger layout() to draw percentage buttons + local objList = getObjectsWithTag("tempToken") + if #objList > 0 then + Wait.time(layout, 0.5) + end + -- context menu items self.addContextMenuItem("Load default values", function() loadDefaultValues()