Face customization patch - TESTING requested!
Moderator: OpenTTD Developers
I think these 2 face variable structure files may be useful to code reviewers too. One's my interpretation of what the old (32 bit uint) structure was, and the other's how my new code interprets it.
- Attachments
-
- facevar_structure_new.txt
- (722 Bytes) Downloaded 314 times
-
- facevar_structure_old.txt
- (945 Bytes) Downloaded 312 times
=== Jez ===
I wonder if we will see a version 3 of this patch with the coding changes applied to it. After giving feedback on the code, I haven't heard anything
Will this patch be finished or is it one of those that will only make it half way. It can't be added to the trunk in it's current form because the code is really messy. For one, who knows what goes on where, it should not be hard to fix though.

Will this patch be finished or is it one of those that will only make it half way. It can't be added to the trunk in it's current form because the code is really messy. For one, who knows what goes on where, it should not be hard to fix though.
Have edited the original post, which now contains v3 of the face customization patch.
It utilises the new widgets code and doesn't have to fake widgets any more, as well as having a plethora of code changes that make it more consistent with the OpenTTD coding style. The screenshot is unchanged from v2 as the GUI is virtually identical.
It utilises the new widgets code and doesn't have to fake widgets any more, as well as having a plethora of code changes that make it more consistent with the OpenTTD coding style. The screenshot is unchanged from v2 as the GUI is virtually identical.
=== Jez ===
Well, only you can control whether or not you test it.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
/* Eyes */ switch is not needed
does the same
/* Suit / Collar */ switch is not needed
is enough
Code: Select all
if (FC_GETEYES > face_limits[FC_GENDER_ETH_COUNT][FC_EYES])
FC_SETEYES(face_limits[FC_GENDER_ETH_COUNT][FC_EYES]);
/* Suit / Collar */ switch is not needed
Code: Select all
/* eg. (x % 4 - 2) limits x to the 3rd value in any block of 4. */
if (thisval % 4 > 2) {thisval -= (thisval % 4 - 2);}
break;
Nice patch. 
Attatched the german translation for the patch.
But STR_FACE_GENDERETH fits in german not in the widget.
Maybe anyone has a better translation?

Attatched the german translation for the patch.
But STR_FACE_GENDERETH fits in german not in the widget.

Maybe anyone has a better translation?
- Attachments
-
- german.patch
- (3.63 KiB) Downloaded 293 times
What does that mean - the circumstances? I determine what circumstances prevail. -- Napoleon Bonaparte
---
If we cannot end now our differences, at least we can help make the world safe for diversity. -- John F. Kennedy
---
Our problems are man-made, therefore they may be solved by man. No problem of human destiny is beyond human beings. -- John F. Kennedy
---
If we cannot end now our differences, at least we can help make the world safe for diversity. -- John F. Kennedy
---
Our problems are man-made, therefore they may be solved by man. No problem of human destiny is beyond human beings. -- John F. Kennedy
glx: no idea what you meant by that, but I've incorporated the German translation into v7 of my patch anyway. 
v7 also widens the face window so that nasty long German language can fit in there
, and slightly modifies DrawFaceStringLabel() so that the labels' draw location is completely based on their associated widget.

v7 also widens the face window so that nasty long German language can fit in there

=== Jez ===
skidd13: As an aside, I had to muck around a with with that .patch file before I could get it to work. What's up with it? It seems to be slightly corrupted; this is the second time I've had trouble getting someone's patch on here to work. What tool are you using to create it? TortoiseSVN certainly didn't like it. I initially got the error, "The chunk size did not match the number of added/removed lines!".
=== Jez ===
sorry, I removed a dubbled line with an editor. Just my fault!jez wrote:skidd13: As an aside, I had to muck around a with with that .patch file before I could get it to work. What's up with it? It seems to be slightly corrupted; this is the second time I've had trouble getting someone's patch on here to work. What tool are you using to create it? TortoiseSVN certainly didn't like it. I initially got the error, "The chunk size did not match the number of added/removed lines!".

What does that mean - the circumstances? I determine what circumstances prevail. -- Napoleon Bonaparte
---
If we cannot end now our differences, at least we can help make the world safe for diversity. -- John F. Kennedy
---
Our problems are man-made, therefore they may be solved by man. No problem of human destiny is beyond human beings. -- John F. Kennedy
---
If we cannot end now our differences, at least we can help make the world safe for diversity. -- John F. Kennedy
---
Our problems are man-made, therefore they may be solved by man. No problem of human destiny is beyond human beings. -- John F. Kennedy
Who is online
Users browsing this forum: No registered users and 15 guests