Bronya-Rand / DDLCModTemplate2.0

A new template for producing DDLC mods that adhere to Team Salvato's guidelines based off DDLC itself.
58 stars 18 forks source link

Adding xalign 0.5 to the navigation buttons makes them shift in the settings menu #75

Closed Pedro1207 closed 11 months ago

Pedro1207 commented 11 months ago

If you want your main menu buttons to be centered in relation to eachother, by adding an xalign 0.5 in style navigation_button_text it makes it so when you go into the settings menu the buttons shift to the right. This happens (as far as I can tell) because you're reusing the style for the "DDLC Settings" and "Template Settings" from the navigation buttons, and somehow that interaction shifts the navigation. Giving the "DDLC Settings" and "Template Settings" its own separate style fixes the issue.

To Reproduce Add xalign 0.5 to style navigation_button_text

image

image

Bronya-Rand commented 11 months ago

This is not necessarily a bug with the template nor DDLC itself. As the template is designed to be a skeleton framework to make mods, most code is made in consideration of a traditional DDLC UI layout. What you have is a side effect of your change when transition from the main menu to the game menu when accessing other layout pages.

Pedro1207 commented 11 months ago

I see. I didn't actually discover this myself, but simply helped someone else fix it after they centered the buttons. I thought it would maybe make sense to give those 2 buttons a separate style since that avoids the problem altogether. But I'll leave it up to you if you want to change it or not. Cheers