Commit Graph

25 Commits (9011371e83a81deac255ea1b1e1f404b68b6c92d)

Author SHA1 Message Date
Darkvater 083ceabe16 (svn r7515) -Codechange [newgrf]: Ignore ascii code 0x0A in text. Newline is 0x0D. 18 years ago
peter1138 bd66cc5756 (svn r7348) -Feature: Initial support for saving NewGRF settings with savegames. Back up your savegames... 18 years ago
peter1138 9bfd73889a (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.
18 years ago
peter1138 47801ed883 (svn r7319) -Fix (r7182): (NewGRF) Add space for terminator when translating TTDPatch strings (thanks eddi) 18 years ago
peter1138 1a4f1c8177 (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. 18 years ago
peter1138 745a5b8cc3 (svn r7096) -Fix (r6995 (sort-of)): Don't set bit 6 when convert grf ver 6 language ids to use ver 7 format 18 years ago
peter1138 dc58fb87ab (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. 18 years ago
peter1138 d279b51dff (svn r6888) - Fix (r6884): Missed a couple of strecpy()s in newgrf text handling 18 years ago
Darkvater ee27bb497c (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.
18 years ago
peter1138 7b1053c350 (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. 18 years ago
peter1138 7be5422d83 (svn r6622) - Add support for NewGRF text includes. (Based on mart3p's patch) 18 years ago
belugas 32077448ba (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
18 years ago
belugas c05c81f35c (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
18 years ago
tron 12dc00aa10 (svn r5952) - struct GRFText{Entry,} are private to newgrf_text.c
- use a variable size array instead of another malloc()
18 years ago
truelight 83d56d6d79 (svn r5944) -Merge TGP (r5578, r5579, r5724, r5726): -Feature: filter for textboxes to only
allow certain patterns (like numbers only)
18 years ago
peter1138 136359ecbd (svn r4905) - NewGRF: fix typo that prevented non-english NewGRF text from working. 18 years ago
belugas 09a143d985 (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
18 years ago
peter1138 bdcbe2af5c (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. 18 years ago
peter1138 d7bc0293b1 (svn r4557) - NewGRF: translate from TTDPatch control codes to our own, instead of just simple validation. We still perform
validation on any unhandled character.
18 years ago
peter1138 baebc8d47e (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...) 18 years ago
Darkvater 5a8d992eaa (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 18 years ago
peter1138 a0a2feeda5 (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.
18 years ago
peter1138 3660fab10a (svn r4495) - NewGRF: Implement conversion from old language IDs (bitmask) to new language IDs (value) 18 years ago
peter1138 5f1ae3f4c6 (svn r4494) - NewGRF: Clean up and reset custom texts 18 years ago
belugas aab91d287a (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 :)
18 years ago