GUI

Re: GUI

Postby StefanP.MUC » 02 Mar 2011, 15:04

Yeah, the theme will probably be the hardest, because you need to be a good painter. ;)

About the console text: I think the "Welcome..." string can be removed (maybe write it directly in the log box in the bottom right or remove it completely).
About the input line: what's it for anyway? hosting already works with a button click. If it's really needed I suggest above the tab control (this is 150 pixel from bottom)
StefanP.MUC
 

Re: GUI

Postby oln » 02 Mar 2011, 16:03

The input line is a console for changing various settings.
Putting it above the tab line could work as well yes. Though we can decide on that later when the concept is done.

Also, if you want write access on the repositories to be able to upload things, we can arrange that.

Will do the name changes in the code once i get time. I will let you know.
User avatar
oln
 
Posts: 1020
Joined: 26 Oct 2010, 22:16
Location: Norway

Re: GUI

Postby StefanP.MUC » 02 Mar 2011, 18:48

Here is a new screenshot (1280x800). I cleaned up the tabs and inserted my basic button.

But no gui files this time, because this currently wouldn't work in game (it simply does nothing), since I rewrote the tab bar from scratch (with good names and everything properly handwritten ;)) and only made the original one invisible. I had to do this because the game refers to the old names and the GUI isn't working if I remove or change them (and only to change the values and regroup them would be much more work than just rewrite it). So, one day we have to adjust the sourcecode and gui files to use he same name scheme.
Attachments
screenshot_1.jpg
StefanP.MUC
 

Re: GUI

Postby svenskmand » 02 Mar 2011, 20:01

Did we have screenshot button? Ok I can see it is print screen, but where are the shots located then?
Jamendo.com - The best music store on the net, uses CC licenses.
User avatar
svenskmand
OD Moderator
 
Posts: 1850
Joined: 09 Dec 2009, 00:07
Location: Denmark

Re: GUI

Postby TheAncientGoat » 02 Mar 2011, 20:05

Oooo, that looks good blablub! Can't wait to see it implemented
User avatar
TheAncientGoat
Community Moderator
 
Posts: 518
Joined: 27 Dec 2009, 19:06

Re: GUI

Postby StefanP.MUC » 02 Mar 2011, 20:11

Wait until you see my latest change. ;) I was brave enough to try out editing the imageset picture. My OpenDungeons currently looks very... let's call it "bloody". ;)

svenskmand, Screenshots are done with the "Print" key. The png files are stored in the same folder from where OD runs (at least on Windows it's this way).
StefanP.MUC
 

Re: GUI

Postby svenskmand » 02 Mar 2011, 20:36

blablub {l Wrote}:svenskmand, Screenshots are done with the "Print" key. The png files are stored in the same folder from where OD runs (at least on Windows it's this way).

Thats what I thought too :S The problem is that the game is installed in C:\Program Files which Windows 7 have some weird nazi control policies for file access on :S So the game cannot write the screenshot to that folder :S It works when I move the game to desktop. I wonder how we fix that :S

Here is the game at 1920x1080, the text is pretty messed up, most of it cannot be read :S
Attachments
screenshot_1.png
Jamendo.com - The best music store on the net, uses CC licenses.
User avatar
svenskmand
OD Moderator
 
Posts: 1850
Joined: 09 Dec 2009, 00:07
Location: Denmark

Re: GUI

Postby StefanP.MUC » 03 Mar 2011, 07:39

Thanks for the picture. :) This behavior is unexpected. I didn't look at the font file until now, but I'll do that first for today. Shouldn't be to hard to get correct font rendering as the font files support a lot of options.

I'll also tweak the size of the controls a bit more.

The Program Files folder from Windows 7 needs admin rights. For storing files created by a program some of the user directories should be used as the default (this should be possible with an OGRE config).

edit: In the gui folder, there is a "bluehighway-12.font" file. Open it with a text editor and set at the end of the file AutoScaled="false" (currently it's true). This should solve the font problem for now. In my next GUI release this will be already the default.
StefanP.MUC
 

Re: GUI

Postby StefanP.MUC » 03 Mar 2011, 10:22

I tested it with svenskmands button idea. Here's a screenshot. His buttons are better, I must admit. ;) It shows also my new experiments with the general window theme.
Attachments
screenshot_1.jpg
StefanP.MUC
 

Re: GUI

Postby oln » 03 Mar 2011, 10:29

svenskmand {l Wrote}:
blablub {l Wrote}:svenskmand, Screenshots are done with the "Print" key. The png files are stored in the same folder from where OD runs (at least on Windows it's this way).

Thats what I thought too :S The problem is that the game is installed in C:\Program Files which Windows 7 have some weird nazi control policies for file access on :S So the game cannot write the screenshot to that folder :S It works when I move the game to desktop. I wonder how we fix that :S

Here is the game at 1920x1080, the text is pretty messed up, most of it cannot be read :S


I was working with the path stuff a while back, but i didn't finish the windows part. On linux the config file that is created is put in ~/.opendungeons. On windows it should be in appdata or something. Screenshots should ideally go the same place. Ill add a ticket for doing this.

Also, that looks really nice blablub :)
User avatar
oln
 
Posts: 1020
Joined: 26 Oct 2010, 22:16
Location: Norway

Re: GUI

Postby StefanP.MUC » 03 Mar 2011, 10:42

Here's the new version. Changelog:
svenskmands test button, fixed the font problem, new experimental frame and background textures, more internal cleanup. I also changed it so that the fonts folder isn't needed anymore. So for the whole gui (including the FreeMono for the console) you now only need the gui folder with only the contents from the 7z archive.

NOTE: The buttons do NOT work! The game sourcecode needs to call the new buttons first (currently it still calls the currently invisible old buttons). But I added the four room buttons and the host button (sadly still looking all the same ;) ). So it's possible for the coders to make the new layout work.
Attachments
gui.7z
(155.35 KiB) Downloaded 362 times
Last edited by StefanP.MUC on 03 Mar 2011, 10:44, edited 1 time in total.
StefanP.MUC
 

Re: GUI

Postby oln » 03 Mar 2011, 10:44

Will test this :)
If you want to, we can give you write access on subversion and git so you can upload stuff as you are working on it.
User avatar
oln
 
Posts: 1020
Joined: 26 Oct 2010, 22:16
Location: Norway

Re: GUI

Postby StefanP.MUC » 03 Mar 2011, 10:45

Where do I have to register for this? Only on sourceforge?
Maybe I then can also do some of the cleanups and also change the hardcoded GUI strings in the sourcecode to the new ones.
StefanP.MUC
 

Re: GUI

Postby oln » 03 Mar 2011, 10:51

Yep, you have to register on sourceforge.
User avatar
oln
 
Posts: 1020
Joined: 26 Oct 2010, 22:16
Location: Norway

Re: GUI

Postby StefanP.MUC » 03 Mar 2011, 10:56

OK, I did so. my username is "blablubod".
StefanP.MUC
 

Re: GUI

Postby oln » 03 Mar 2011, 11:02

Added you to the project.
User avatar
oln
 
Posts: 1020
Joined: 26 Oct 2010, 22:16
Location: Norway

Re: GUI

Postby StefanP.MUC » 03 Mar 2011, 11:05

Thanks. Can I only upload the gui files if I install SVN on my own computer? Or is there a web based interface on SF? Never did this sort of thing...
StefanP.MUC
 

Re: GUI

Postby oln » 03 Mar 2011, 11:10

You need to install svn yes. TortoiseSVN is a pretty nice client on windows. If you have any issues I can talk you through it on skype, gtalk or similar.
User avatar
oln
 
Posts: 1020
Joined: 26 Oct 2010, 22:16
Location: Norway

Re: GUI

Postby StefanP.MUC » 03 Mar 2011, 11:11

Thanks, I'll install and try it.
StefanP.MUC
 

Re: GUI

Postby StefanP.MUC » 03 Mar 2011, 11:34

OK, I have checked it out and already uploaded my new GUI files. I also wanted to remove the fonts folder and the unneeded gui file, but that didn't work.

edit: Ah, I have to tell Turtoise it in the context menu. :D
StefanP.MUC
 

Re: GUI

Postby StefanP.MUC » 03 Mar 2011, 11:47

OK, got the latest GUI pushed to the repo. Deleted all unused files and the fonts folder. Hope I didn't mess stuff up.
StefanP.MUC
 

Re: GUI

Postby StefanP.MUC » 03 Mar 2011, 11:56

If the code now gets changed to the new button and scheme names I can finally remove the rest of the example layout files. And then the new gui should work, also.
StefanP.MUC
 

Re: GUI

Postby oln » 03 Mar 2011, 11:57

That would be nice.
Also, make sure you use "/" in path names and not "\". "\" only works on windows (don't know why windows doesn't use the standard), "/" works on all systems. Going to fix it in the files that are up now and test.
User avatar
oln
 
Posts: 1020
Joined: 26 Oct 2010, 22:16
Location: Norway

Re: GUI

Postby StefanP.MUC » 03 Mar 2011, 11:59

Ah, OK. Thanks for the hint.
StefanP.MUC
 

Re: GUI

Postby oln » 03 Mar 2011, 12:15

For some odd reason, DeVIL(CEGUI) didn't want to load png files, so i had to change the images to the tga format for now. After doing that it worked :).
Not sure why it shouldn't be able to load png images. I will try to investigate this.
EDID: Didn't even know it used DeVIl, maybe it's just my version of cegui that has this issue.

Committed the changes to svn.
User avatar
oln
 
Posts: 1020
Joined: 26 Oct 2010, 22:16
Location: Norway

Who is online

Users browsing this forum: No registered users and 1 guest