Thread: Help Adding Button to Sidebar
-
June 11th, 2019, 20:17 #1
Help Adding Button to Sidebar
All I want to do is add one extra button to the sidebar. I want to keep the overall appearance displayed in the image I'm attaching (apart from adjusting alignment to fit in the extra button).
I've followed every tutorial, video, and forum post I can find on the matter and I'm still not getting anything to show in the library or the sidebar.
I'm guessing there's something I need to define somewhere for the library and sidebar to recognise the new button... but what and where is beyond me at this point.
Please help...
unknown.png
-
June 11th, 2019, 20:36 #2
Welcome to the forums.
What ruleset and what button are you trying to add?
Problems? See; How to Report Issues, Bugs & Problems
On Licensing & Distributing Community Content
Community Contributions: Gemstones, 5E Quick Ref Decal, Adventure Module Creation, Dungeon Trinkets, Balance Disturbed, Dungeon Room Descriptions
Note, I am not a SmiteWorks employee or representative, I'm just a user like you.
-
June 11th, 2019, 20:43 #3
Thanks.
CoreRPG/Cypher System Ruleset
Trying to add a button to the sidebar (the bar with Quests, Story, NPCs, etc) called "Recursions".
-
June 11th, 2019, 21:46 #4
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,678
Try looking in the "scripts/data_library_35E.lua" file in the 3.5E ruleset for an example.
You can copy to data_library_strange.lua in your own ruleset, and then you can strip out everything but the code that calls aRecordOverrides variable. You'll need to customize the onInit function to register your overrides, update the aRecordOverrides variable which your specific record type information, and make sure that the new "data_library_strange.lua" file is referenced in the base.xml as a global script called "LibraryDataStrange".
Regards,
JPG
-
June 11th, 2019, 22:01 #5
Here, this will add a Recursions button to the Library Data set.
You can thank Trenloe. I literally took his Abilities extension and just re-jiggered it for this.Last edited by Talyn; June 12th, 2019 at 00:19. Reason: Fixed the windowclass
-
June 11th, 2019, 22:14 #6
-
June 11th, 2019, 22:29 #7
I'm trying this extensions as well, and I'm seeing a file referenced in extension.xml called add_recursions_list.lua
I don't have that file... which one would you recommend I copy to add it and where should I put it (i'm guessing in "scripts" or "campaign/scripts")?
Or maybe it's a file I already have and the name is just throwing me off...
-
June 11th, 2019, 22:35 #8
The Lua script is in the extension as well.
-
June 11th, 2019, 23:34 #9
Ah, not sure how I missed that. Thanks.
So, while I really appreciate the extension, Moon Wizard's instructions seemed to yield better results. Probably because I broke the set you made the extension for beyond repair and had to rollback to a version that didn't have all the recursion files in it.
One thing I noticed though is that the extension you shared got the name of the button in the Library (but not the pic), whilst the instructions I followed from Mood Wizard did the opposite (probably because I still have more to do in regards to those instructions). Which makes me curious... Which part of the code in your extension controls the name in the Library?Last edited by sujifae; June 14th, 2019 at 18:26. Reason: clarity
-
June 11th, 2019, 23:38 #10
- Join Date
- Apr 2019
- Posts
- 1
searching for a delete button
Last edited by KyoshiUriza; June 11th, 2019 at 23:41. Reason: searching for a delete button
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks