Commit Graph

16964 Commits

Author SHA1 Message Date
Christoph Oelckers 68c33a6e43 - fixed string prioritization when a mod replaces the default language for a given string.
In this case it must override all localized content from previously loaded WADs because that is no longer matching the original text.
2019-04-22 00:21:01 +02:00
Christoph Oelckers 5b6bae409e - automated the SmallFont selection based on a filter string in the language table. 2019-04-21 12:38:43 +02:00
Christoph Oelckers 13841655aa - add color remapping for NewSmallFont as well. 2019-04-21 10:49:27 +02:00
Christoph Oelckers 86897560ac - only use the Doom SmallFont extensions with the commercial IWADs.
If this was in game-doom it'd also apply to FreeDoom, Hacx, Harmony and many other custom mods where neither the style nor the color matches.
2019-04-21 10:02:33 +02:00
Christoph Oelckers 2adfea4043 - fixed outline color of most extended characters in the Doom SmallFont.
Apparently this was copied from the old Umlaut characters which had it wrong. Changed for all affected graphics to use the same color as the IWAD to avoid visible discrepancies with translations that can make this visible.
2019-04-21 09:59:35 +02:00
Christoph Oelckers 2e1254d3ba - synthesize a font remapping so that the IWAD SmallFont can be printed in the same color as a mod's.
This is for cases where the font needs to serve as stand-in for an incomplete mod font so that it better blends in.
2019-04-21 09:51:53 +02:00
Christoph Oelckers c1b0122558 - always construct the original IWAD SmallFont.
This is for printing localized messages without having to fall back on the VGA font.
2019-04-21 08:42:27 +02:00
Christoph Oelckers fcbde757c9 - do not mix game-specified fonts with the extensions for the stock version.
This generally doesn't look good when different colors are mixed or the mismatch in color ranges causes bad translations to be generated.
2019-04-21 08:09:31 +02:00
Christoph Oelckers 44360b00dd - fixed parameter passing for SetMarineWeapon and SetMarineSprite. 2019-04-21 08:00:22 +02:00
Christoph Oelckers cbc3bc500f - fixed inverted logic for displaying the generic log in Strife. 2019-04-20 09:04:31 +02:00
Nemrtvi ef422e44b9 Dedicated Russian SMALLFONT for Chex 2019-04-19 21:49:17 +02:00
Christoph Oelckers f221a2bdb4 - fixed allocation mismatch in WildMidi. 2019-04-19 17:46:25 +02:00
Christoph Oelckers 94e222afef - text fixes. 2019-04-19 12:07:56 +02:00
Christoph Oelckers d3f17ec159 Merge branch 'master' of https://github.com/Nemrtvi/gzdoom 2019-04-19 12:03:06 +02:00
Christoph Oelckers ec8e57c61e - text update. 2019-04-19 10:57:58 +02:00
Christoph Oelckers 5e8aa0a963 - removed InitPalette call from OpenGLFrameBuffer's constructor.
This was destroying some already set up data like the special colormaps.
2019-04-19 10:36:34 +02:00
Nemrtvi 4c54591b2a Improved Doom SMALLFONT
Redoes all the fonts uploaded in commit 5260352 (not including the Chex recolor).
2019-04-19 10:06:45 +02:00
Christoph Oelckers 4e23d543ef - re-added the menu option for wipetype which got lost in a recent menu reorganization. 2019-04-19 09:35:03 +02:00
Christoph Oelckers cd929e0c76 - reinstated the old clean scaling factor calculation just for the status bar.
Some mods took the lack of validation in this code for granted.
2019-04-19 09:33:04 +02:00
Christoph Oelckers 23412a4f28 - fixed a few developer warnings. 2019-04-19 09:08:31 +02:00
Christoph Oelckers 0105bb7564 - fixed uninitialized variable in scoreboard code. 2019-04-19 08:30:06 +02:00
Christoph Oelckers 0837178518 - do proper checks for chat string length.
The counter variable was not only used incorrectly, it was completely redundant.
This still has a byte limit due to how the network code works so for non-Latin languages may result in shorter strings.
2019-04-19 08:27:31 +02:00
Christoph Oelckers ac9133eda0 - fixed radius use in dynamic light traversal for models. 2019-04-19 08:23:08 +02:00
Christoph Oelckers a5d743cc3b - fixed: The color sliders in the player setup menu may not be selected when inactive. 2019-04-19 07:50:52 +02:00
Christoph Oelckers 327a83a54b - fixed: GetDisplayDeviceName must always pick a valid monitor.
There is no default here, so if vid_adapter is invalid for whatever reason the engine would crash without a defined setting.
2019-04-19 07:33:51 +02:00
Christoph Oelckers 68597da75d - removed debug output. 2019-04-19 07:24:23 +02:00
Nemrtvi a044200006 Portugese characters for Strife + minor BIGFONT fixes 2019-04-18 12:55:04 +02:00
Christoph Oelckers 35186e9fd7 - adjustments to the player menu so that the display isn't cut off on the smallest screen sizes. 2019-04-18 00:16:09 +02:00
Christoph Oelckers 2a329950f6 - fixed menu caption for languages which use the VGA font. 2019-04-17 23:40:05 +02:00
Nemrtvi b8ba606b08 Polish BIGFONT for Doom 2019-04-17 18:45:28 +02:00
Magnus Norddahl 5171f90e35 - add r_ticstability for a smoother experience playing mods with high think times 2019-04-17 16:07:32 +02:00
Christoph Oelckers 89a11d1a9d - added Korean and Portuguese to the language menu
Also add an English name in parentheses to Russian and Korean so that people not fluent in these scripts know what they selected.
2019-04-16 10:27:47 +02:00
Nemrtvi b9c43f32c2 Czech BIGFONT for Doom 2019-04-15 17:44:13 +02:00
Matthew The Glutton c1a3d248f6 Move player crouch sprites. 2019-04-15 17:43:43 +02:00
Christoph Oelckers a8c47408fa - implemented 'deletelumps' feature and add Chex Quest 3 texts.
The episode titles required a workaround because the CQ3 episodes do not contain names in text form: If this is the case, the patch name will be used as a string table identifier to get a matching text for localization.
2019-04-14 22:46:03 +02:00
Christoph Oelckers 5260352f26 - added all Latin letters to the Doom and Chex SmallFont for the Latin 1 Supplement plus everything needed from Latin Extended A for the WIP languages and a few more that were more or less waste products. 2019-04-14 16:18:00 +02:00
Nemrtvi 69722accbb Russian Chex font
Made by @JNechaevsky! Also includes a new hyphen symbol used for Russian.
2019-04-14 14:53:16 +02:00
Christoph Oelckers dd61222c6a - reset RF_NOINTERPOLATEVIEW when unpredicting a player. 2019-04-14 14:11:34 +02:00
Christoph Oelckers c45c7cdb4b - reimplemented as an OptionsMenu.
This is both for consistency and better localizability. The old code is retained to ensure that mods inheriting from the old menu continue to work.
2019-04-14 14:03:24 +02:00
Player701 ad23726cb6 - Fixed conditions tested for when checking whether "Force respawn" or "Respawn protection" dmflags are enabled 2019-04-14 05:40:23 -04:00
Player701 8ab6747d77 - Added "const" qualifiers to the new UTF-8-aware string methods 2019-04-13 22:13:52 +02:00
Player701 747906730c Added support for monospacing alignment modes to HUDFont / BaseStatusBar.DrawString (#810)
* - Added support for monospacing alignment modes to HUDFont / BaseStatusBar.DrawString

* - added underlying type declaration for EMonospacing

* - replaced "#include v_video.h" with a declaration of EMonospacing
2019-04-13 18:10:58 +02:00
Christoph Oelckers 4668fa95e3 - when altering the default string table, make sure that all existing text for the given label is removed that comes from an older resource file.
If this isn't done there can be a mix of content from different sources, depending on the language. It's better to have correct English text than unfitting localized versions.
2019-04-13 14:43:49 +02:00
Christoph Oelckers 5f2d41884c - make sure that the global and default language tables are always separate, if some other tables is being attempted to be filled in along with them, these tables should be ignored. 2019-04-13 13:58:37 +02:00
Christoph Oelckers d73f8faafa - added monospacing support to Screen.DrawText and its native counterparts. 2019-04-13 12:17:38 +02:00
Christoph Oelckers 3938119192 - added CharUpper and CharLower functions to ZScript.
These, like MakeUpper and MakeLower, use the internal Unicode case conversion tables.
2019-04-13 10:26:55 +02:00
Christoph Oelckers f7561f25d6 - added Unicode aware MakeUpper/MakeLower functions to FString and ZScript's String and deprecated ToUpper/ToLower because their semantics did not allow fixing them. 2019-04-13 10:12:33 +02:00
Nemrtvi 325b744f4a European BIGFONT for Chex Quest
This covers French, German, Italian, Portugese, Spanish, and Swedish. Also adjusts the offsets of the inverted exclamation and question mark for Doom (so that they are in line with the colon sign).

Chex also has its own colon sign, so I’m adding that too.
2019-04-13 10:11:39 +02:00
Christoph Oelckers bcf7bc8d34 - added some UTF-8 utilities to FString.
This deprecated CharAt and CharCodeAt for being unsuitable for text processing and in the case of CharCodeAt also for being buggy.
A new replacement, ByteAt has been added that reads a string byte by byte, as well as CodePointCount, which counts the amount of Unicode code points in a string and GetNextCodePoint which reads the string code point by code point.
Note that while this woll work as intended with the currently supported languages as a means to read single characters, there is no guarantee that this will remain so if Unicode support gets extended to things which break the "one code point == one character" assumption.
2019-04-13 09:31:36 +02:00
Christoph Oelckers edd71bafda - added the missing Ò for Doom's and Chex Quest's Smallfonts. 2019-04-12 18:49:49 +02:00