i made a simple patch so backform, text and button placement can be edited (haven't check in-game HUD thought). i was planning to add more variable to clean up some position hacks later. you can test in case there are bugs and tell me what could be improved
put menu.ini inside /user documents/Warzone 2100 Master, beside config file
file based menu
-
Ezio
- Trained

- Posts: 306
- Joined: 24 Apr 2010, 16:42
file based menu
You do not have the required permissions to view the files attached to this post.
-
Per
- Warzone 2100 Team Member

- Posts: 3780
- Joined: 03 Aug 2006, 19:39
Re: file based menu
I'm confused. What kind of useful things can you do with this? All the interesting things are still hard-coded, as far as I can tell.
-
Ezio
- Trained

- Posts: 306
- Joined: 24 Apr 2010, 16:42
Re: file based menu
un-hard-code all of them is kind of annoying since i need to make a name or each variable to be exported, so i do it little by little.Per wrote:I'm confused. What kind of useful things can you do with this? All the interesting things are still hard-coded, as far as I can tell.
-
Per
- Warzone 2100 Team Member

- Posts: 3780
- Joined: 03 Aug 2006, 19:39
Re: file based menu
Sorry, I just do not see this as moving in the right direction, but rather making it harder to un-hard-code it properly later.
-
bendib
- Regular

- Posts: 1016
- Joined: 29 Aug 2010, 05:22
- Location: Imeuta
Re: file based menu
This is a nice idea. It makes a lot of sense. Good work Ezio. I may implement this in Legacy. Of course, it will be more difficult, since Legacy has switched to a 2.3 codebase.
Also known as Subsentient.
-
Ezio
- Trained

- Posts: 306
- Joined: 24 Apr 2010, 16:42
Re: file based menu
i was thinking for using script to make those gui, this incomplete export is used for readability so i could tell which defines draw what. so i just need to do something like backform(x,y,w,h) or so.