RCatta Posted September 14, 2013 Share Posted September 14, 2013 So I'm trying to create a new crafting tab , which is easily done. However ,I cannot for the life of me get it to show a proper description & icon. Pics: How I want it: How it is: For some reason the cursor doesn't show in snapshot , but in the first pic it's on the "Dress" tab , and in the second pic it's on the bottom tab I'm trying to create. Code: Original code for Wickerbottom's book tab: local booktab = {str = STRINGS.TABS.BOOKS, sort=999, icon = "tab_book.tex"}inst.components.builder:AddRecipeTab(booktab)My code: local newtab= {str =STRINGS.TABS.NEWTAB, sort=999, icon="images/tab_new.tex"}inst.components.builder:AddRecipeTab(newtab) As you can see in the pic , the name nor the icon show. For the name I also triedstr = "blabla" to no end. PS: I get no errors or such. Link to comment Share on other sites More sharing options...
CJB Posted September 16, 2013 Share Posted September 16, 2013 You might wanna do it like this: STRINGS.TABS.NEWTAB= "New Tab"GLOBAL.RECIPETABS['HERO'] = {str = STRINGS.TABS.NEWTAB, sort=0, icon = "NEWTAB.tex", icon_atlas = "images/inventoryimages/NEWTAB.xml"} Link to comment Share on other sites More sharing options...
TheDanaAddams Posted September 16, 2013 Share Posted September 16, 2013 Judging by the 'HERO' you accidentally left in there, I'm guessing you copied that from my Link mod. Unfortunately, the new update seems to have broken part of it, and I no longer get the label on mouseover. It's something I've been trying to fix before releasing the next update.But the icon works, at least! ^^; Link to comment Share on other sites More sharing options...
CJB Posted September 16, 2013 Share Posted September 16, 2013 Judging by the 'HERO' you accidentally left in there, I'm guessing you copied that from my Link mod. Unfortunately, the new update seems to have broken part of it, and I no longer get the label on mouseover. It's something I've been trying to fix before releasing the next update.But the icon works, at least! ^^; Haha yes I got it from your character, which is absolutely awesome! I'll take a better look at the tabs then. Shouldn't be that hard to fix Link to comment Share on other sites More sharing options...
CJB Posted September 16, 2013 Share Posted September 16, 2013 Judging by the 'HERO' you accidentally left in there, I'm guessing you copied that from my Link mod. Unfortunately, the new update seems to have broken part of it, and I no longer get the label on mouseover. It's something I've been trying to fix before releasing the next update.But the icon works, at least! ^^; I found the fix for you, for the tooltip.STRINGS.TABS.HERO = "Heroic"GLOBAL.RECIPETABS['HERO'] = {str = "HERO", sort=0, icon = "herotab.tex", icon_atlas = "images/inventoryimages/herotab.xml"}str should be the same as STRINGS.TABS.HERO Because later in the code its calling STRINGS.TABS[str] Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.