New interface
New interface
What do you think about remake the warzone2100 interface?
This one seems to be very simple, and using a single texture for many things.
[Question: The menus are .pies? So where are those .pies?]
Suggestion: Silver and blue interface, with a few Post-apocalyptics scenes in the main menu...
The basic game-interface may be the same...
The problem is: Wz2100 menus only accept 256x256 textures ><)
This one seems to be very simple, and using a single texture for many things.
[Question: The menus are .pies? So where are those .pies?]
Suggestion: Silver and blue interface, with a few Post-apocalyptics scenes in the main menu...
The basic game-interface may be the same...
The problem is: Wz2100 menus only accept 256x256 textures ><)
Re: New interface
I quote Watermelon to answer this:
Think positiveWatermelon2: to add a button in wz,you have to:
1.modify the button table in source
2.create a non-duplicated uid for that new button
3.create a image if needed
4.add string resource for that button
5.add image resource to wrf if needed
6. 100 lines+ of changes in various source files to give this button a functionality
We all have the same heaven, but not the same horizon.
Re: New interface
[Answer:] (you won't like this answer): there are no .pie files for the menus, no the menus are hardcoded and spread across at least 6 source files (frontend.c being the most important one of those).Kyor wrote: [Question: The menus are .pies? So where are those .pies?]
"First make sure it works good, only then make it look good." -- Giel
Want to tip/donate? bitcoin:1EaqP4ZPMvUffazTxm7stoduhprzeabeFh
Want to tip/donate? bitcoin:1EaqP4ZPMvUffazTxm7stoduhprzeabeFh
Re: New interface
Holy god... That sounds hard =(
- lav_coyote25
- Professional
- Posts: 3434
- Joined: 08 Aug 2006, 23:18
Re: New interface
would it not be better to have it in one file as opposed to 6... not having coding experience but it seems the easier you make it - the better it should be...right? ???
"to prepare for disaster is to invite it, to not prepare for disaster is a fools choice" -me (kim-lav_coyote25-metcalfe) - it used to be attributed to unknown - but adding the last bit , it now makes sense.
Re: New interface
Entirely correct.lav_coyote25 wrote: would it not be better to have it in one file as opposed to 6... not having coding experience but it seems the easier you make it - the better it should be...right? ???
[sarcasm-mode]
Now if you would have told that to the Pumkin coders several years ago (preferably before they wrote that code) then we wouldn't have been sitting on this big pile of code which can probably win the obfuscated C contest at least 5 years in a row.
[/sarcasm-mode]
Well, a bit more serious now, the GUI code is a very, very though piece of code to work with. Every single change can result in a hundred of bugs emerging, without ever being able to find the cause. So currently a complete rewrite of the GUI code seems like the best&cleanest solution (maybe even the fastest), which however would probably still cost several months.
"First make sure it works good, only then make it look good." -- Giel
Want to tip/donate? bitcoin:1EaqP4ZPMvUffazTxm7stoduhprzeabeFh
Want to tip/donate? bitcoin:1EaqP4ZPMvUffazTxm7stoduhprzeabeFh
Re: New interface
I totally agree with you, giel.Giel wrote: Entirely correct.
[sarcasm-mode]
Now if you would have told that to the Pumkin coders several years ago (preferably before they wrote that code) then we wouldn't have been sitting on this big pile of code which can probably win the obfuscated C contest at least 5 years in a row.
[/sarcasm-mode]
Well, a bit more serious now, the GUI code is a very, very though piece of code to work with. Every single change can result in a hundred of bugs emerging, without ever being able to find the cause. So currently a complete rewrite of the GUI code seems like the best&cleanest solution (maybe even the fastest), which however would probably still cost several months.
I don't have coder experience, but i'm good at texturing and designing
Re: New interface
Indeed. Or we'll be quoting watermelon to everyone who comes here for the rest of eternity... ::)So currently a complete rewrite of the GUI code seems like the best&cleanest solution (maybe even the fastest), which however would probably still cost several months.
- Watermelon
- Code contributor
- Posts: 551
- Joined: 08 Oct 2006, 09:37
Re: New interface
I just speak from experience. ;DSolitaire wrote: Indeed. Or we'll be quoting watermelon to everyone who comes here for the rest of eternity... ::)
The gui code is a bit broken indeed,but there is still hope to fix it,either by adding interface functions or make the widget creation/uid assignment script-accessible,given the gui element its own resource loader will help too.
In my opinion rewriting is not a feasible approach,since there are many great gpl-compliant mature gui libs out there,even if none of methods mentioned above works out.
tasks postponed until the trunk is relatively stable again.