-
July 18th, 2015, 15:07 #1
- Join Date
- Mar 2015
- Posts
- 2
Execute Function in charsheet onLoad?
Hey Community,
is there a way to update a list in the charsheet (like inventory, spells, ...) "onLoadComplete"? onInit is loading only one time, but i need a function updating everytime the user opens the charsheet.
In fact i need a action handler that looks like
Code:function onLoad() --stuff loaded everytime the user opens the charsheet end
-
July 19th, 2015, 13:07 #2
what are you trying to update? can you trigger the update on the field data changing values?
-
July 19th, 2015, 15:58 #3
- Join Date
- Apr 2015
- Posts
- 82
Add an onInit function to the first thing in your main window class's sheetdata. Everytime the window opens, that will get fired. From there, you can figure out what it is you want to do/call. In other words,
Code:<windowclass name="MyCharacterWindow"> <banner_campaign> <script> function onInit() MyPackage.onLoad(); end </script> ... </windowclass>
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks