Future plans for GUI

For code related discussions and questions
Per
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 3780
Joined: 03 Aug 2006, 19:39

Re: Future plans for GUI

Post by Per »

Interesting discovery.
Tzeentch wrote:

Code: Select all

# src/warzone2100 --game TUTORIAL3
Unrecognized option: TUTORIAL3
some reason isn't working.
You need to write --game=TUTORIAL3 now. The '=' is mandatory.
User avatar
Tzeentch
Trained
Trained
Posts: 300
Joined: 14 Oct 2012, 14:24

Re: Future plans for GUI

Post by Tzeentch »

Are we able to deploy wuz21m's cached call change?

Assisted in performance from my initial test, perhaps to the freebsd port tree so I can update that port and use and double check on FreeBSD. As I cannot get the github warzone master to work on freeBSD.

Unless we have to do a collection of changes then push out to the next release
Per
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 3780
Joined: 03 Aug 2006, 19:39

Re: Future plans for GUI

Post by Per »

Tzeentch wrote:Are we able to deploy wuz21m's cached call change?
Already pushed to git master. Thanks, guys.
Frogmorton
Trained
Trained
Posts: 48
Joined: 11 Jan 2011, 01:27

Re: Future plans for GUI

Post by Frogmorton »

Are there any plans for optional use of more than one display? Could we have all the pop-ups permanently displayed on a different screen?
User avatar
vexed
Inactive
Inactive
Posts: 2538
Joined: 27 Jul 2010, 02:07

Re: Future plans for GUI

Post by vexed »

Basic code is there... we can open WZ on different displays now.
As for anything else, dunno yet.
/facepalm ...Grinch stole Warzone🙈🙉🙊 contra principia negantem non est disputandum
Super busy, don't expect a timely reply back.
Vincent
Trained
Trained
Posts: 103
Joined: 06 Aug 2016, 17:24

Re: Future plans for GUI

Post by Vincent »

I'm currently cleaning up hci.cpp. Hopefully code can be simplified up to the point it's easy enough to update.
Is current UI layout important to keep ? There are several lib available that enables to easily design interface, like CEGUI or librocket or IMGUI.
In my opinion the best solution is CEGUI since librocket looks moreless unmaintained and IMGUI is easy but doesn't look great.
Otherwise it should be possible to modify existing code to use a vector lib and a font lib for basic shape and text. It'll likely require more work however it may give the best visual results.
Vincent
Trained
Trained
Posts: 103
Joined: 06 Aug 2016, 17:24

Re: Future plans for GUI

Post by Vincent »

What is the "OPTIONS" screen mentionned in hci.h/cpp ?
It's neither the ingame options (which is named "INGAMEOP") nor the main menu screen.
It looks like an hidden debug menu or something.
Per
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 3780
Joined: 03 Aug 2006, 19:39

Re: Future plans for GUI

Post by Per »

Yes, there is a debug window. Try ctrl+o after enabling cheat mode first.
Vincent
Trained
Trained
Posts: 103
Joined: 06 Aug 2016, 17:24

Re: Future plans for GUI

Post by Vincent »

Is it ok to add boost dependency ? I'd like to use boost::variant (which is part of c++17).
Vincent
Trained
Trained
Posts: 103
Joined: 06 Aug 2016, 17:24

Re: Future plans for GUI

Post by Vincent »

See ticket 4484
Per
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 3780
Joined: 03 Aug 2006, 19:39

Re: Future plans for GUI

Post by Per »

Vincent wrote:Is it ok to add boost dependency ?
No, do not add dependencies unless absolutely necessary. Cross-compilation is already very hard, so we want to keep the number of dependencies down.
Vincent
Trained
Trained
Posts: 103
Joined: 06 Aug 2016, 17:24

Re: Future plans for GUI

Post by Vincent »

Is it OK to move the event handlesr (ie function rigger ed when left or right mouse button is pressed on some part of the ui) to Javascript? Hopefully it'll lead to smaller patches...
Per
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 3780
Joined: 03 Aug 2006, 19:39

Re: Future plans for GUI

Post by Per »

Yes, moving UI control to javascript is part of the long-term plan. Already reticule is controlled from javascript in 3.2.
Vincent
Trained
Trained
Posts: 103
Joined: 06 Aug 2016, 17:24

Re: Future plans for GUI

Post by Vincent »

Submitted this patch http://developer.wz2100.net/attachment/ticket/4488/ It changes a smaller amount of code (and doesn't rely on the previous one)
Post Reply