Centre the menu & angle it

Centered… :slight_smile: Scroll below for examples views

In folder:
C:\Program Files (x86)\Steam\steamapps\common\Boundless\assets\gui\layouts\common\

The 2 files:
layouts.json:
around line 650ish you will find the section with the name “menu”
{
“name”: “menu”,
“parent”: “wobbleCenterItems”,
“scope”: {
“isGUIMenu”: true,
“gunitTransX”: “-{{gunitMenuWidth}}*0.5”,
“gunitTransY”: “-{{guintMaxHeight}}*0.5”,
“gunitWidth”: “{{gunitMenuWidth}}”,
“translateY”: 0,
“color”: [0, 1, 0, 0.2],
“texture”: “gui/sprites/white_square.png”
},
“expressions”: [“gunitLayout”]
}

change the above to:
{
“name”: “menu”,
“parent”: “wobbleCenterItems”,
“scope”: {
“relWidth”: 1.0,
“isGUIMenu”: true,
“relCenterTransX”: -0.45,
“gunitTransY”: “-{{guintMaxHeight}}*0.5”,
“gunitWidth”: “{{gunitMenuWidth}}”,
“translateY”: 0,
“color”: [0, 1, 0, 0.2],
“texture”: “gui/sprites/white_square.png”
},
“expressions”: [
“relativeToScreen”,
“gunitLayout”
]
}

Then to make the menu stop angling:
in constants.json
line 6ish:
“stdMenuAngle”: 24, ← Change to 0 (default 24)

Result is an almost perfectly centered menu …



etc set “relCenterTransX”: -0.25 instead for just moving it “closer” without overlapping:


10 Likes

Thank you for this! It works great however Journal stays angled due to menuAngle in objectives.json not pulling the stdMenuAngle from constants.json but is instead set to 24.

So to have it applied to Journal as well, in objectives.json change:
"menuAngle": 24,
to
"menuAngle": "[[stdMenuAngle]]",

2 Likes

Very sorry for the necro, but I feel like this very much adds to the conversation for anyone looking back on it. A warning for anyone wanting to use this. Do NOT directly copy any of the code written here and if you do, replace the quotes with your own manually. I was struggling for the past hour with confusing errors and not having any clue what was wrong with it. Found out the quotes used in the first post are smart quotes, not regular quotes, which will make the json break with very confusing errors with no visible cause.

1 Like