Ivan Savenko
22f517686d
Better handling of encoding detection for maps and campaigns
...
Now VCMI will use either preferred language or install language to load
maps and campaigns that are part of "core" mod, or, in other words -
placed in Maps directory of H3 data (like most of manually downloaded
maps and campaigns are)
If game data is in English, then game can safely use encoding of player-
selected language (such as Chinese) to load maps. After all, both GBK
and all Win-125X encoding are superset of ASCII, so English map will
always load up correctly.
Maps that are part of a mod still use mod language as before - it is up
to mod maker to correctly set up mod language.
2024-10-30 11:54:35 +00:00
Ivan Savenko
a8e84c55f6
Fix some of the new warnings from sonarcloud
2024-10-11 10:45:29 +00:00
Ivan Savenko
e442e71ed9
Fix handling of autoselected interface scaling by client
2024-10-09 17:37:54 +00:00
Ivan Savenko
68e5cff276
Implement user-defined cursor scaling
2024-10-09 17:37:54 +00:00
Ivan Savenko
58d13fdce5
Implemented scaling of hardware cursor
2024-10-09 17:37:54 +00:00
Ivan Savenko
42adc9d394
Enable auto-detection of UI scaling
2024-10-09 17:37:54 +00:00
Ivan Savenko
0c03e0b7c7
Enable autodetection of upscaling filter
2024-10-09 17:37:54 +00:00
Ivan Savenko
4ed478b6e5
Improve font mode auto-selection for languages like Chinese
2024-09-28 19:31:16 +00:00
Ivan Savenko
51848ced3b
Add font loading tracking to log
2024-09-28 19:30:26 +00:00
Ivan Savenko
b624069f86
Fix CI
2024-09-24 13:40:15 +00:00
Ivan Savenko
ca3c6227c4
Add selector for font type in Launcher, add autoselection
2024-09-24 13:25:36 +00:00
Ivan Savenko
87274128e7
Proper support for usage of multiple fonts in a chain
2024-09-24 10:59:35 +00:00
Ivan Savenko
557b72f2b3
Launcher now controls ttf fonts usage directly instead of toggling mod
...
from extras
2024-09-23 18:31:44 +00:00
Ivan Savenko
97e24ff126
Integrated Noto fonts into vcmi
2024-09-23 18:15:30 +00:00
Ivan Savenko
5502dcaea4
Remove no longer used support for original version of Chinese fonts
2024-09-23 15:46:12 +00:00
Ivan Savenko
248cff49a4
Moved fonts handling from Graphics to RenderHandler class
2024-09-23 15:43:11 +00:00
Laserlicht
73d3903e43
fix xbrz font fallback
2024-09-20 21:25:09 +02:00
Ivan Savenko
b5bacb5c09
Fix creatures with non-cyan background in battle when xbrz is not in use
2024-09-17 14:48:28 +00:00
Ivan Savenko
626c34a105
Fix colorization of Fortress and Inferno adventure map image from hota
2024-09-13 12:45:51 +00:00
Ivan Savenko
4abd96dba4
Add debug code to save every loaded image to a file
2024-09-13 12:26:31 +00:00
Ivan Savenko
915533ed2e
Implemented generation of player-colored version of DiBoxBck
2024-09-12 21:22:41 +00:00
Ivan Savenko
dfd3f0c1a6
Fixed generation of upscaled spellbook
2024-09-12 21:22:41 +00:00
Ivan Savenko
8367729235
Added option to define true type fonts size for each xbrz mode
2024-09-03 10:36:50 +00:00
Ivan Savenko
e035ae8b48
Fixed crash on attempt to upscale nonexisting image
2024-09-03 09:22:40 +00:00
Ivan Savenko
0acc22214b
Read scaling filter for fonts from config
2024-09-02 22:08:19 +00:00
Ivan Savenko
35467039a7
Bitmap fonts now use nearest neighbour scaling instead of xbrz
2024-09-02 21:31:01 +00:00
Ivan Savenko
a2bac260e7
Fix images with custom scaling in xBRZ mode
2024-08-27 19:49:41 +00:00
Ivan Savenko
0bbc2bce33
Fix handling of transparency in xbrz and in images with non-cyan
...
transparent color in unscaled mode
2024-08-27 19:44:11 +00:00
Ivan Savenko
b3158c52ba
Fixes for Sonar issues
2024-08-17 20:54:29 +00:00
Ivan Savenko
40ece7142b
Set no filtering by default for now
2024-08-17 19:11:30 +00:00
Ivan Savenko
fb3147fbda
Do not initialize shadow on images that don't have shadow palette
2024-08-17 19:11:10 +00:00
Ivan Savenko
d6059b044d
Implement selection of upscaling filter in launcher
2024-08-17 15:25:26 +00:00
Ivan Savenko
f29a687234
Clean up scaling code, implemented image size optimization
2024-08-17 15:25:26 +00:00
Ivan Savenko
f0448acaa3
TBB is now a dependency of lib. Implemented multithreaded xBRZ scale
2024-08-17 15:25:26 +00:00
Ivan Savenko
6a17c08b7e
Implemeted wider lines for upscaled mode
2024-08-17 15:25:26 +00:00
Ivan Savenko
095f5b5e60
Fix cursor scaling
2024-08-17 15:25:26 +00:00
Ivan Savenko
ffba847f40
xBRZ-upscaled images now support common palette-transform effects:
...
- Player coloring
- Flag color for map
- Glue selection for combat
2024-08-17 15:25:26 +00:00
Ivan Savenko
2d12cecded
Added draw method to ISharedImage interface
2024-08-17 15:25:26 +00:00
Ivan Savenko
502f47c6b5
Rename IConstImage to more clear ISharedImage
2024-08-17 15:25:26 +00:00
Ivan Savenko
216ef2a943
H3 fonts now use atlas for font data. Implemented xBRZ scaling for fonts
2024-08-17 15:25:26 +00:00
Ivan Savenko
020a825ecd
TTF fonts will now be rendered correctly in upscaling mode
...
Note that TTF rendering bypasses xBRZ - TTF fonts are rendered at larger
point size
2024-08-17 15:25:26 +00:00
Ivan Savenko
fa65b0019c
First working version of xBRZ upscaler
2024-08-17 15:25:26 +00:00
Ivan Savenko
4171026035
First iteration of upscaled rendering
2024-08-17 15:25:25 +00:00
Ivan Savenko
7f5cd8a7aa
newSurface method now accepts Point instead of two integers
2024-08-17 15:25:25 +00:00
Ivan Savenko
1aa391fdf8
Split CGeneralTextHandler file into 1 file per class form
...
All text processing code is now located in lib/texts.
No changes other than code being moved around and adjustment of includes
Moved without changes:
Languages.h -> texts/Languages.h
MetaString.* -> texts/MetaString.*
TextOperations.* -> texts/TextOperations.*
Split into parts:
CGeneralTextHandler.* -> texts/CGeneralTextHandler.*
-> texts/CLegacyConfigParser.*
-> texts/TextLocalizationContainer.*
-> texts/TextIdentifier.h
2024-07-20 12:55:17 +00:00
Ivan Savenko
e862b9c868
Fix crash on opening creature window with bonuses that don't have icon
2024-07-19 19:37:22 +00:00
Ivan Savenko
0d44bf1506
Fix build
2024-07-19 12:30:10 +00:00
Ivan Savenko
b256919dab
Implemented per-surface alpha for images that have palettes with alpha
2024-07-19 12:03:29 +00:00
Ivan Savenko
c40eea6e10
Fix fade-in animation - per-surface alpha was not set correctly
2024-07-19 10:46:20 +00:00
Ivan Savenko
9f3663b7d4
Remove unused method
2024-07-19 10:08:50 +00:00