Jump to content

Question

Posted

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 :

35oe.png

 

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

  • 1
Posted

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
Posted

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
Posted

Already tried with Inventory Container, only the transparent box changes, not the background.

Spoiler

zlil.png

 

It looks like with these XContainers, i cant add a background because <MenuContainer> don"t even have balises to modify something graphic so...

  • 0
Posted
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 ! :7_sweat_smile:

Solved.

×
×
  • Create New...