Face customization patch - TESTING requested!

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

User avatar
jez
Traffic Manager
Traffic Manager
Posts: 158
Joined: 23 Aug 2003 21:24

Face customization patch - TESTING requested!

Post by jez »

Hi all,

This thread is to keep track of the progress of my face customization patch. The latest version and an associated screenshot will be maintained in this first post. I'm always welcoming any testing with bug reports and/or suggestions for improvement.

As you can see in the screenshot it allows extensive face customization, saving/loading of the current face to a config file variable, and a manual view/input of the current 'face code' (a 32 bit unsigned integer controlling the look of the face). It also includes significant rewriting of the face-drawing code (located in players.c) to make the structure of the player face variable more meaningful.

Kudos to BoominGranny who supplied the face customization code that got me started, in the below thread! :)
http://www.tt-forums.net/viewtopic.php? ... sc&start=0

The one very minor bug I know about is:
Click Load or Save, then close the face dialog, leaving the red message dialog open. Open the face dialog again, then click load or save. The button doesn't appear to press in first time, as if SetWindowDirty() hadn't been called.

I have no idea why this is, maybe someone would like to help me with it if they can figure it out!
Attachments
Jez's face customization patch v11
Jez's face customization patch v11
facecust-v11.png (35.93 KiB) Viewed 11953 times
_facecust-v11-r7120.patch
Jez's face customization patch v11 (works with OpenTTD SVN trunk rev. 7120)
(48.48 KiB) Downloaded 657 times
Last edited by jez on 09 Nov 2006 14:11, edited 23 times in total.
=== Jez ===
czerty
Engineer
Engineer
Posts: 50
Joined: 22 Sep 2006 16:28

Post by czerty »

Hmm, how about adding lock buton to dondt allow change - I mean - I wand caucasian male with blue eyes, but dont want manualy to create him, if lock is added to caucasian and blue eyes, then if I click on randomize, then only random generator generates me only caucasian males with blue eyes.

And yes, this in trunk will be very nice. You have my vote.
User avatar
jez
Traffic Manager
Traffic Manager
Posts: 158
Joined: 23 Aug 2003 21:24

Post by jez »

czerty wrote:Hmm, how about adding lock buton to dondt allow change - I mean - I wand caucasian male with blue eyes, but dont want manualy to create him, if lock is added to caucasian and blue eyes, then if I click on randomize, then only random generator generates me only caucasian males with blue eyes.

And yes, this in trunk will be very nice. You have my vote.
Hmm, difficult to see how you'd implement that in the GUI. I'd suggest you randomly generate a face and then change the eyes/eye colour back to what you want them to be. If you really like that face you only have to do it once and then you can save it :-)
=== Jez ===
User avatar
Born Acorn
Tycoon
Tycoon
Posts: 7595
Joined: 10 Dec 2002 20:36
Skype: bornacorn
Location: Wrexham, Wales
Contact:

Post by Born Acorn »

It needs better spacing and more colours than just endless lines of black. Currently it looks crowded and complex.

You should make the window larger as a whole. It's not 1994 anymore, and people don't have 640x800 as a default resolution.
Image
User avatar
glx
OpenTTD Developer
OpenTTD Developer
Posts: 622
Joined: 02 Dec 2005 15:43
Location: Drancy(93) - France
Contact:

Post by glx »

Born Acorn wrote:You should make the window larger as a whole. It's not 1994 anymore, and people don't have 640x800 as a default resolution.
I agree, some languages will need more space.
User avatar
jez
Traffic Manager
Traffic Manager
Posts: 158
Joined: 23 Aug 2003 21:24

Post by jez »

I agree that the buttons could be a little wider, but more spacing and different colours??? That wouldn't fit in well with the look of TTD at all. It looks quite similar to the style of the 'Message settings' window, which is was basically modeled on.
=== Jez ===
User avatar
Born Acorn
Tycoon
Tycoon
Posts: 7595
Joined: 10 Dec 2002 20:36
Skype: bornacorn
Location: Wrexham, Wales
Contact:

Post by Born Acorn »

jez wrote:I agree that the buttons could be a little wider, but more spacing and different colours??? That wouldn't fit in well with the look of TTD at all. It looks quite similar to the style of the 'Message settings' window, which is was basically modeled on.
I'm on about the colours and style used in the Company Window. After all, it is a subwindow of the company window, so it makes sense to use the same style.
Image
User avatar
jez
Traffic Manager
Traffic Manager
Posts: 158
Joined: 23 Aug 2003 21:24

Post by jez »

The colour used for text on buttons in the Company window is black.
=== Jez ===
Bot_40
Engineer
Engineer
Posts: 105
Joined: 27 Jan 2005 18:56
Contact:

Post by Bot_40 »

Well here's a quick ms paint mockup I did in 2 seconds
Matches the style of the other window better and would be clearer too
Attachments
_9983.PNG
_9983.PNG (941 Bytes) Viewed 12117 times
User avatar
Born Acorn
Tycoon
Tycoon
Posts: 7595
Joined: 10 Dec 2002 20:36
Skype: bornacorn
Location: Wrexham, Wales
Contact:

Post by Born Acorn »

jez wrote:The colour used for text on buttons in the Company window is black.
No crap.

Currently, your GUI looks extremely cramped and complex. Use the other features to make it look less so.

All the recent GUI windows, such as the TGP generation screen, have space. You GUI has no space.

Look at these three "new" GUI screens. Each has space and different colours than just the normal grey.

The layout is spread out, and it looks very neat.

Bot_40 has the right idea.
Attachments
dualcompanycolours.png
dualcompanycolours.png (6.39 KiB) Viewed 12115 times
messagesettings.PNG
messagesettings.PNG (8.07 KiB) Viewed 12116 times
terragenesisperlin.png
terragenesisperlin.png (16.78 KiB) Viewed 12116 times
Image
User avatar
jez
Traffic Manager
Traffic Manager
Posts: 158
Joined: 23 Aug 2003 21:24

Post by jez »

And as you'll notice with the 'New colour scheme' dialog, it is grey because that fits in with the theme. The player company window is grey, and so should the face selector be.
=== Jez ===
User avatar
Born Acorn
Tycoon
Tycoon
Posts: 7595
Joined: 10 Dec 2002 20:36
Skype: bornacorn
Location: Wrexham, Wales
Contact:

Post by Born Acorn »

Yes, but it isn't cramped, like your face selector GUI.
Image
User avatar
jez
Traffic Manager
Traffic Manager
Posts: 158
Joined: 23 Aug 2003 21:24

Post by jez »

OK. Well, attached are shots of how it looks before, and after, vertical expansion.

Personally I think it's nicer and more in keeping with the rest of the interface before the expansion. 'Too cramped' is a subjective term; I don't think it looks too cramped - just neat and tidy. I do agree that this style looks a bit better than just the buttons, though.
Attachments
Before expansion
Before expansion
1.png (44.39 KiB) Viewed 12079 times
After expansion
After expansion
2.png (49.78 KiB) Viewed 12079 times
=== Jez ===
Peca-on-line
Engineer
Engineer
Posts: 9
Joined: 30 Jun 2004 16:26
Location: Czech Republic, Trutnov
Contact:

Post by Peca-on-line »

Nr 1 is better.
User avatar
Born Acorn
Tycoon
Tycoon
Posts: 7595
Joined: 10 Dec 2002 20:36
Skype: bornacorn
Location: Wrexham, Wales
Contact:

Post by Born Acorn »

Number One for sure, and boy, that is a mega cool improvement. Now this looks like a really good candidate for Trunk.
Image
User avatar
jez
Traffic Manager
Traffic Manager
Posts: 158
Joined: 23 Aug 2003 21:24

Post by jez »

... and here's what it looks like with the attribute numbers in some... different colours. :D
Attachments
5.png
5.png (43.77 KiB) Viewed 12058 times
4.png
4.png (46.47 KiB) Viewed 12059 times
3.png
3.png (49.66 KiB) Viewed 12059 times
=== Jez ===
User avatar
Born Acorn
Tycoon
Tycoon
Posts: 7595
Joined: 10 Dec 2002 20:36
Skype: bornacorn
Location: Wrexham, Wales
Contact:

Post by Born Acorn »

Number 3 has appeal to it, with the white numbers. Definately! :wink:
Image
User avatar
jez
Traffic Manager
Traffic Manager
Posts: 158
Joined: 23 Aug 2003 21:24

Post by jez »

Whaddya think of silver for the attribute numbers?
Attachments
6-fixed.png
6-fixed.png (51.78 KiB) Viewed 12049 times
=== Jez ===
User avatar
mexicoshanty
Traffic Manager
Traffic Manager
Posts: 158
Joined: 22 Aug 2006 13:15
Location: Australia
Contact:

Post by mexicoshanty »

jez wrote:Whaddya think of silver for the attribute numbers?
I reckon white so it fits in. There is no sliver text anywhere.

But good job on the face customizer in general, once it's pollished i think it should make it into a final release.
User avatar
Born Acorn
Tycoon
Tycoon
Posts: 7595
Joined: 10 Dec 2002 20:36
Skype: bornacorn
Location: Wrexham, Wales
Contact:

Post by Born Acorn »

Yes, White would do it for sure.
Image
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 29 guests