Darkvater
04628a1979
(svn r7565) -Codechange: Rework DEBUG functionality. Look for appropiate debugging levels to
...
use in debug.h. grfmsg() is now used as a specific debug-function for grf.
2006-12-26 17:36:18 +00:00
Darkvater
38c2574b3c
(svn r7515) -Codechange [newgrf]: Ignore ascii code 0x0A in text. Newline is 0x0D.
2006-12-20 17:03:14 +00:00
peter1138
3b6d2ed064
(svn r7348) -Feature: Initial support for saving NewGRF settings with savegames. Back up your savegames...
2006-12-04 08:30:04 +00:00
peter1138
8e59299e72
(svn r7323) -Fix (r7182): When translating NewGRF strings, look at the first
...
character and move ahead if needed, instead of taking the first
character and moving back.
2006-12-02 09:34:18 +00:00
peter1138
94b616630e
(svn r7319) -Fix (r7182): (NewGRF) Add space for terminator when translating TTDPatch strings (thanks eddi)
2006-12-01 12:57:31 +00:00
peter1138
f660d48e6a
(svn r7182) -Feature: Merge utf8 branch. This brings us support for Unicode/UTF-8 and the option for fonts rendered by FreeType. Language changes to come.
2006-11-16 22:05:33 +00:00
peter1138
c5439f8437
(svn r7096) -Fix (r6995 (sort-of)): Don't set bit 6 when convert grf ver 6 language ids to use ver 7 format
2006-11-07 13:09:44 +00:00
peter1138
e39643ca17
(svn r6995) - Codechange: NewGRF; strip bit 7 of the language ID earlier and handle handle a language ID of 0x7F as the preferred default language.
2006-10-28 18:42:57 +00:00
peter1138
0558d2465e
(svn r6888) - Fix (r6884): Missed a couple of strecpy()s in newgrf text handling
2006-10-21 23:51:02 +00:00
Darkvater
494c56475f
(svn r6884) -Codechange: Add strict bounds checking in string formatting system.
...
The last parameter should point to the end of the buffer (eg lastof(buf))
Courtesy of Tron.
2006-10-21 23:31:34 +00:00
peter1138
34a395e6e8
(svn r6623) - Codechange: When adding a NewGRF string, check to see if it can replace an existing string. Also remove string length check on load which was a quickfix for some grfs.
2006-10-03 14:04:43 +00:00
peter1138
f2a1867e11
(svn r6622) - Add support for NewGRF text includes. (Based on mart3p's patch)
2006-10-03 09:25:42 +00:00
belugas
b24857baba
(svn r6484) -Undo (partly)r6289. If a grf writer wants a string been only a space, why should it be blocked?
...
It is the wrong test at the wrong place
2006-09-20 00:24:38 +00:00
belugas
7a96e3069f
(svn r6289) -Fix(r6108) : case 0x48 (generic text) should not have been set over newstations.
...
It grabbed everyting. Instead, we are now using ids for that purpose, 0xC9, oxD0, 0xDC (FS#304 by Osai)
- Protect newgrf text from entries of 1 char and fewer
- Protect currency name from an overrun of ids
Thanks to glx
2006-09-01 02:56:02 +00:00
tron
a2129f3799
(svn r5952) - struct GRFText{Entry,} are private to newgrf_text.c
...
- use a variable size array instead of another malloc()
2006-08-19 16:30:05 +00:00
truelight
d3f2180438
(svn r5944) -Merge TGP (r5578, r5579, r5724, r5726): -Feature: filter for textboxes to only
...
allow certain patterns (like numbers only)
2006-08-19 09:31:22 +00:00
peter1138
fa39815308
(svn r4905) - NewGRF: fix typo that prevented non-english NewGRF text from working.
2006-05-18 15:34:36 +00:00
belugas
2fd4e554b8
(svn r4888) CodeChange : Newgrf : little cleanup and additions
...
-Add 4 new langIDs (Afrikaans, greek, ukrainian,croatian)
-Only allocate memory when the string will be inserted
-In order to avoid the UTF-8 marker, compare based on length of defined iso_code (thanks peter1138)
-Synch with lang files iso_code cleanup
2006-05-16 15:37:00 +00:00
peter1138
512d49deee
(svn r4832) - NewGRF: add support for original string ID to newgrf text handling. So far, this is used for vehicles when no English or American translation is provided.
2006-05-11 16:27:46 +00:00
peter1138
5bb3009dca
(svn r4557) - NewGRF: translate from TTDPatch control codes to our own, instead of just simple validation. We still perform
...
validation on any unhandled character.
2006-04-23 21:52:54 +00:00
peter1138
87e994c25b
(svn r4550) - NewGRF: update string system to new rules: a grf version of less than 6 uses the old scheme, of 7 or more uses the new scheme. (Moving targets, yay...)
2006-04-23 18:27:53 +00:00
Darkvater
0a0b8f22aa
(svn r4529) - Codechange: Use proper naming for hex numbers in debug prints eg. 0xF3A6. Use fixed lengths where applicable (newgrf). Unfortunately '%#X' is unusable since it gives 0XFF3 and '%#x' gives 0xff3 while we want 0xFF3 :P
2006-04-22 13:56:16 +00:00
peter1138
91aab56161
(svn r4497) - NewGRF minor fixes: (Rubidium)
...
- Remove a define in favour of using the lengthof() an array.
- Fix typos in language names enum.
- Add Brazilian ISO code.
2006-04-21 08:11:50 +00:00
peter1138
720f194217
(svn r4495) - NewGRF: Implement conversion from old language IDs (bitmask) to new language IDs (value)
2006-04-21 07:03:37 +00:00
peter1138
6567292bf1
(svn r4494) - NewGRF: Clean up and reset custom texts
2006-04-21 06:55:47 +00:00
belugas
bbb2c58456
(svn r4493) Newgrf : Action 04. Beginning of implementation.
...
Some TODOs left, but the core is there.
Thanks to Peter1138 for code, advice and patience
And to Patchman for letting us define a lot of langids :)
2006-04-21 03:00:20 +00:00