faller-magie Posted February 6, 2018 Posted February 6, 2018 Hai hai,  How can i make a menu bar ?  I mean, default menu is separated by multiple squares based on a 42x42 format and i don't want that. I would like to add a background bar under game icons for the aesthetic of my menu.  My menubar :  Tried to search a specific option on InGame.xml but i only touched Hotbar and InventoryContainer just to see what it does... Do you have any options for me ?Â
3 pLeet Posted February 7, 2018 Posted February 7, 2018 Simply add a <Texture> tag within the <MenuContainer>. I tested it out, and worked like a charm. Again, you'll have to play with the <Bounds> to fit your needs ! faller-magie and Beefy Kasplant 1 1
1 pLeet Posted February 7, 2018 Posted February 7, 2018 Hello faller-magie ! What you call "menu bar" is actualy called a hotbar.  In order to change it you'll have to modify 2 things : hotbar.png : change this image with your own "menubar" image. InGame.xml : you will have to change some values in there to match your new image size. First, find <HotbarWindow> tag and change the <Bounds> attributes. Then do the same for every <HotbarContainerX> within the <Children> tag. A little reminder : <Bounds>posX, posY, sizeX, sizeY</Bounds>  You also might want to remove every HotbarContainer's border to match your graphics. To do so, simply change hotbaritem.png (fully transparent).
1 pLeet Posted February 7, 2018 Posted February 7, 2018 Well you can change whatever UI component the exact same way you did with the hotbar : replace the current graphic, and modify the appropriated XML document (there is two XML documents, one for the InGame UI, and a second one for the MainMenu).
0 faller-magie Posted February 7, 2018 Author Posted February 7, 2018 But it only changes " spell menu " :/ Is that possible to do the same on inventory, quests, etc. buttons ? Â
0 faller-magie Posted February 7, 2018 Author Posted February 7, 2018 Already tried with Inventory Container, only the transparent box changes, not the background. Spoiler  It looks like with these XContainers, i cant add a background because <MenuContainer> don"t even have balises to modify something graphic so...
0 faller-magie Posted February 7, 2018 Author Posted February 7, 2018 2 hours ago, pLeet said: Simply add a <Texture> tag within the <MenuContainer>. I tested it out, and worked like a charm. Again, you'll have to play with the <Bounds> to fit your needs ! Oh, it works ! Didn't think about it... Thanks ! Solved.
Question
faller-magie
Hai hai,Â
Â
How can i make a menu bar ?
Â
I mean, default menu is separated by multiple squares based on a 42x42 format and i don't want that.Â
I would like to add a background bar under game icons for the aesthetic of my menu.
Â
My menubar :
Â
Tried to search a specific option on InGame.xml but i only touched Hotbar and InventoryContainer just to see what it does...
Do you have any options for me ?Â
6 answers to this question
Recommended Posts