Exit Confirmation

Exit Confirmation

206 Downloads

UI enhancement request - custom offset or alignment types

xFirefalconx opened this issue ยท 11 comments

commented

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

When I open up the exit confirmation window in my modpack, it's... not so conveniently aligned and even a bit hard to read. See screenshot. (My inner monk is screaming at the alignments in Pause Screen)

Describe the solution you'd like
A clear and concise description of what you want to happen.

I'd love either of those:
a.1) a percentage of screen offset for the top of the window and the possibility to add a (transparency supproted) background image to the exit confirmation.
a.2) the option to align it to the screen center, and also to add a custom (transparency supported) background image to the exit confirmation.
b) Maybe even go that far to optionally set one for every screen, but make it overridden by a current value by default.

(I prefer a.1) + b) )

Describe alternatives you've considered (optional, but recommended)
A clear and concise description of any alternative solutions or features you've considered.

Beat my inner monk to be silent :'D No, I have no idea tbh. FancyMenu also shows when I hover over its buttons while having the exit confirmation open which is a bit cringe. I think a PNG alone might make a difference. With the current setup as a fallback if there's none or it's invalid (would also appreciate a log message if it can't be found).

Additional context
Add any other context or screenshots about the feature request here.

grafik
grafik
grafik

Oh no, the buttons below are hoverable (using FancyMenu) :/ (I tested and could click multiple ones which once also led the game to crash, report incoming)
grafik

commented

If I would do a.1) and b) I think i need to add a library for cross-game and cross-version support. (Yes this mod supports other games that are in Java and moddable)
Mostly because of the different config apis and such...

commented

I see, so it'd be a bigger task to add. I assume technically you cannot just take the current screen resolution and move the fields down by a certain percentage, correct?

Ah, configs. The fun stuff everybody loves x) I understand. Would you give it a try or rather no?

commented

Yeah I don't mind, I use Configured for in-game changes but I can also just open up the config in Editor or VSCode so I don't mind (though in-game crashes because I clicked the config button are always a bit... meh xD)
I just hope I can edit and reload the configs somehow without having to restart the pack each time, that eats lots of time (my pack needs 4-7 min to load each time)

commented

Well, I don't mind adding that extra library to do it. But it wouldn't be .toml files then. Probably one of .json, .json5, .properties or .ubo.

commented

Probably would need to make it 3.x.x since the breaking change in config.
(Major versions are breaking changes, minor versions are features, and patch versions are bugfixes)

commented

Also, .ubo is off the list since it's a binary file, and that would require in-game config. Woops ๐Ÿ˜ณ

commented

Bruh there isn't really any official type defined configuration type. I guess I'm gonna make my own lmao.

commented

Alright then :'D keep me updated, please!

commented

LMAO accidentally tried to create a programming language instead ๐Ÿคฃ

commented

Alright then :'D keep me updated, please! (Didn't just post the same reply, nono)