Face customization patch - TESTING requested!
Moderator: OpenTTD Developers
Face customization patch - TESTING requested!
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!
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
- 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 ===
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.
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 itczerty 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.
=== Jez ===
- Born Acorn
- Tycoon
- Posts: 7595
- Joined: 10 Dec 2002 20:36
- Skype: bornacorn
- Location: Wrexham, Wales
- Contact:
- Born Acorn
- Tycoon
- Posts: 7595
- Joined: 10 Dec 2002 20:36
- Skype: bornacorn
- Location: Wrexham, Wales
- Contact:
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.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.
- Born Acorn
- Tycoon
- Posts: 7595
- Joined: 10 Dec 2002 20:36
- Skype: bornacorn
- Location: Wrexham, Wales
- Contact:
No crap.jez wrote:The colour used for text on buttons in the Company window is black.
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 (6.39 KiB) Viewed 12115 times
-
- messagesettings.PNG (8.07 KiB) Viewed 12116 times
-
- terragenesisperlin.png (16.78 KiB) Viewed 12116 times
- Born Acorn
- Tycoon
- Posts: 7595
- Joined: 10 Dec 2002 20:36
- Skype: bornacorn
- Location: Wrexham, Wales
- Contact:
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.
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
- 1.png (44.39 KiB) Viewed 12079 times
-
- After expansion
- 2.png (49.78 KiB) Viewed 12079 times
=== Jez ===
-
- Engineer
- Posts: 9
- Joined: 30 Jun 2004 16:26
- Location: Czech Republic, Trutnov
- Contact:
- Born Acorn
- Tycoon
- Posts: 7595
- Joined: 10 Dec 2002 20:36
- Skype: bornacorn
- Location: Wrexham, Wales
- Contact:
- Born Acorn
- Tycoon
- Posts: 7595
- Joined: 10 Dec 2002 20:36
- Skype: bornacorn
- Location: Wrexham, Wales
- Contact:
- mexicoshanty
- Traffic Manager
- Posts: 158
- Joined: 22 Aug 2006 13:15
- Location: Australia
- Contact:
- Born Acorn
- Tycoon
- Posts: 7595
- Joined: 10 Dec 2002 20:36
- Skype: bornacorn
- Location: Wrexham, Wales
- Contact:
Who is online
Users browsing this forum: No registered users and 29 guests