Thread: Help Adding Button to Sidebar
-
June 11th, 2019, 23:42 #11
Success! buttonsuccess.PNG
Thank you so much!
Now all I need to know is what you mean by/how to "customize the onInit function to register your overrides"
-
June 12th, 2019, 00:25 #12
I just uploaded a fixed extension. The reason it was generating the windowclass error before is because I wasn't paying attention. Now it works as far as creating the Library button and bringing up a masterindex window.
This part:
Code:<string name="library_recordtype_label_recursion">Recursions</string>
-
June 12th, 2019, 00:48 #13
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,540
I was talking about slimming down the onInit function to only perform the loop to add the aRecordOverrides; since the rest of the stuff in that file is not needed for your case.
Regards,
JPG
-
February 6th, 2022, 23:06 #14
- Join Date
- Jul 2020
- Posts
- 5
Would like help with an error message
Hi! I recently found this thread because I too would like to create a new tab in the sidebar. When I downloaded the extension provided I got an error (Posted below this). I'm curious if you happen to know whats going on and how I could fix it.
Code:[Error] Script execution error: [string "campaign/scripts/campaign_button_new.lua"]:28: attempt to index 'w' (a nil value)
-
February 6th, 2022, 23:16 #15
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,540
This thread is two years old; so is not going to be the correct method to add a button to the sidebar any longer. In general, it is best to start a new thread with your questions, if the thread is older than about 6 months.
Perhaps you can provide information on what you are trying to do in a new thread in the Workshop forum, and we can point you in the right direction.
https://www.fantasygrounds.com/forum...2-The-Workshop
Going to lock this thread; to avoid further necro.
Regards,
JPG
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks