new tabbed config

NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Forum rules
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Locked
Aerick
Posts: 22
Joined: Thu May 14, 2020 1:34 pm

new tabbed config

Post by Aerick »

I've created a new tab configuration menu system. Here's a screenshot:
Image

Let me know what you think!
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

Re: new tabbed config

Post by Dominus »

Not bad, only thing to think through is what happens when you hit OK. Does the whole settings gump close? It might need an apply button, so you can apply the settings and then go to the next tab or something like that.
--
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
Aerick
Posts: 22
Joined: Thu May 14, 2020 1:34 pm

Re: new tabbed config

Post by Aerick »

Currently no settings are applied until you hit "Ok" then they're all applied at once. I plan on adding an "Apply" and possibly a "Reset" button which will allow you to reset the current tab settings.

In the screenshot you can see two of the new widgets I added: Text_label and Gump_checkbox. Text_label makes it much easier to add labels since you don't have to mess around with rendering them in the gump's paint() method, you can just add them to the vector like any other widget. The checkbox is self-explanatory, it's not super beautiful since I'm not much of a gfx artist but it works.

I'll post another screenshot after I'm done tweaking stuff. The nice thing is that this cleans up the source a bit since it removes most of the shapes used by the config menus as well as the various config menu classes. It should also be much easier to add new configuration options. :)
Locked