Commit Graph

100393 Commits

Author SHA1 Message Date
aryanrawlani28
ef7ec444d3 GUI: U32: Enable u32 for tts (Windows)
They always take in U32 strings now.

- Revert tts descriptions to string, they don't use translations, so better to keep it as strings.
- Make read() take in const U32 references.
2020-08-30 14:43:41 +02:00
aryanrawlani28
d4d5b8906e GUI: U32: Begin making TTS take in U32Strings for saying
Only for strings without an explicit action. The first level takes in a u32 string, encodes it, and passes it along further with the default action

- For gui widgets, the strings are passed in as native u32 strings.
- For everything else, they are being converted to u32 by Common::convertToU32... and then being passed along
2020-08-30 14:43:41 +02:00
aryanrawlani28
bed05ea134 GUI: U32: Fix compilation errors across entire project
After the initial changes just to scummvm/gui for u32, this commit includes the whole project

- Widget creations now always have u32 descriptions, labels, or tooltips
- Message dialogs make use of default arguments instead of providing the same argument explicitly
- encode String::format properly before passing on as argument where necessary
- Modify hugo utils (yesNoBox and notify box) to use u32
- Also provide fake constructors for the above which redirect to the u32 constructor
- Convert all keymap descriptions to u32 across all engines
- showConfirmationDialog in mohawk now uses u32
- showScummVMDialog also uses u32
- Scumm engine has dialogs now which use u32
- General fixes and wrapping convertToU32String for setLabels and related functions
- Add a fake constructor to MesssageDialog which redirects to the u32 constructor
2020-08-30 14:43:41 +02:00
aryanrawlani28
fd763b61e5 GUI: U32: Add U32String conversion helpers to str.cpp
This commit adds a constructor and a "=" operator to allow conversion from u32strings->strings
2020-08-30 14:43:41 +02:00
aryanrawlani28
49c36c2b45 GUI: U32: Begin converting texts in clipboards to u32strings
With this commit the base class variables and the parts where getClipboard and setClipboard are used is changed accordingly.
2020-08-30 14:43:41 +02:00
aryanrawlani28
cbc83065c0 GUI: U32: Fix warnings with printf statements
Command line printfs used some functions which returned u32 strings. Correctly encode them and then turn into c_str
2020-08-30 14:43:41 +02:00
aryanrawlani28
c0458adec2 GUI: U32: Use u32 for about dialog 2020-08-30 14:43:41 +02:00
aryanrawlani28
3641e24daa JANITORIAL: Add missing space 2020-08-30 14:43:41 +02:00
aryanrawlani28
b9a449480b GUI: U32: Remove u32::format references
- Removed because implicit conversion can simply handle this usecase
2020-08-30 14:43:41 +02:00
aryanrawlani28
160a1320cc GUI: U32: Rename more temp code and fix issues
- Remove convertFromU32.. where necessary
- Replace convertFromU32 to .encode() for better readability
- Fix spacing issues in tabs
- Fix spacing issues in popups
- Fix weird font rendering in certain menus.
- Fix dialog changing sizes by huge amount when changing languages
- Some minor changes from String::format to U32String::Format
2020-08-30 14:43:41 +02:00
aryanrawlani28
96912f4adb GUI: U32: Rename some references of strings to use U32() & not helper method 2020-08-30 14:43:41 +02:00
aryanrawlani28
f800ca4ada GUI: U32: Convert majority of code to use U32
This commit also includes some additional major changes.

- Return U32String from TransMan getTranslation()
- Change tooltips to be U32Strings
- Remove temporary code of convertToU32String
- U32 Support various dialogs (Browser, FileBrowser, Messages, Chooser, etc)
- U32 for music plugins
- U32 for OSD messages
- Add some helper functions to ustr.cpp
- Change default tooltips from nullptr & 0 -> ""
- Some runtime exceptions may occur when changing languages due to incorrect String::Format
2020-08-30 14:43:41 +02:00
aryanrawlani28
aa33fc2354 GRAPHICS: Use template for handleEllipsis 2020-08-30 14:43:41 +02:00
aryanrawlani28
ad78777bc6 GUI: Handle ellipsis shortening of text when drawing u32 strings 2020-08-30 14:43:41 +02:00
aryanrawlani28
5f2af6b93e GUI: U32: Add u32 support to Editables and Dialogs
- Editable widgets
- Lists
- SaveLoad Dialogs
- Browser Dialogs
2020-08-30 14:43:41 +02:00
aryanrawlani28
4ea2b46ce8 GUI: U32: Add asuint64 helper to ustr 2020-08-30 14:43:41 +02:00
aryanrawlani28
a1a4e0c2d7 GUI: U32: Overload getStringWidth to accept U32 strings as params 2020-08-30 14:43:41 +02:00
aryanrawlani28
aafade4507 GUI: U32: Shift most widgets to draw with u32
- ButtonWidgets (Button, Radio, Checkbox, dropdown)
- StaticTextWidgets
- PopUpWidgets
- Tabs
- Add a temporary overloaded drawDDText function to make other widgets draw normally
2020-08-30 14:43:41 +02:00
aryanrawlani28
2745d51fe7 GUI: U32: make convertBidiString take in and return u32strings 2020-08-30 14:43:41 +02:00
aryanrawlani28
20e21ba79d GUI: U32: Temporarily overload drawString
- To accept u32 string as a parameter
- To draw everything else normally until fully converted to drawing u32
2020-08-30 14:43:41 +02:00
Filippos Karapetis
ef97ff28f3 NEWS: Mention PQ:SWAT 2020-08-30 15:29:49 +03:00
Filippos Karapetis
9360d1837e NEWS: Sort newly supported games by name 2020-08-30 15:28:51 +03:00
Filippos Karapetis
f8a36ec93a SCI: Promote PQ:SWAT to testing 2020-08-30 15:27:15 +03:00
Filippos Karapetis
2f6d499349 ZVISION: Use the liberation fonts by default
These do not exhibit some of the glitches seen with the GNU FreeType
fonts in zvision games
2020-08-30 15:27:15 +03:00
Filippos Karapetis
95603045f6 GUI: Add missing fonts to fonts.dat, and include the Liberation fonts
- Add the missing FreeMono, FreeSerif and FreeSerifBold fonts
- Add the following Liberation fonts, to be used in zvision games (regular
  and bold font faces):  LiberationMono, LiberationSans, LiberationSerif
2020-08-30 15:27:14 +03:00
Eugene Sandulenko
830e5c4afe NEWS: Added 2.3.0 entry 2020-08-30 14:24:19 +02:00
Eugene Sandulenko
2c8f8988f0 NEWS: Fix formatting 2020-08-30 14:23:23 +02:00
Eugene Sandulenko
98e0b14852 RELEASE: This is 2.3.0git 2020-08-30 13:42:19 +02:00
Eugene Sandulenko
2454faf767 DEVTOOLS: Remove obsolete file from update-version.pl 2020-08-30 13:41:53 +02:00
Eugene Sandulenko
e652f4b631 NEWS: Set (approximate) 2.2.0 release date 2020-08-30 13:36:21 +02:00
Eugene Sandulenko
8527400b9b NEWS: Mention Lab fix 2020-08-30 13:34:27 +02:00
Filippos Karapetis
d6713578d7 NEWS: Mention the fix for the safe puzzle in Zork Nemesis 2020-08-30 14:08:49 +03:00
Filippos Karapetis
ee83635824 NEWS: Mention the fix for the digital sound effects checkbox in SCI 2020-08-30 13:43:30 +03:00
Filippos Karapetis
2e65886f65 STARTREK: Fix infinite loop while reading some RDF files 2020-08-30 13:37:20 +03:00
Filippos Karapetis
ef6f8c008f SCI: Ignore digital channel data in midiMixChannels(), and remove some GOTOs
These are found at the end of SCI01/SCI1 SND files with sound effects
2020-08-30 13:37:19 +03:00
Filippos Karapetis
648d669c2d SCI: Properly handle alternative MIDI sound effects for SCI01/CI1 games
SCI01/SCI1 games have sound effects in SND files, which contain both
digital sounds and their alternative MIDI counterparts. Allow the user
to listen to the alternative MIDI counterparts by unchecking the
"Prefer digital sound effects" checkbox, like with other SCI versions.
Fixes bug #11587
2020-08-30 13:37:19 +03:00
Thierry Crozat
4cb45cf1aa GLK: HUGO: Fix compilation 2020-08-30 03:00:14 +01:00
Thierry Crozat
faa0b48548 NEWS: Fix typo 2020-08-30 02:17:40 +01:00
Paul Gilbert
44dd967a7e GLK: HUGO: Fix Tales of the Travelling Swordsman crash
Vanilla hugo limits spaces printed in the GO_TO code block
to the fixed width of a line. But since Glk doesn't have a
predetermined width, when the game specified a width of 7fffh,
it crashed trying to buffer out a string that actual length.
This new fix simply limits spaces to at most 20.
2020-08-29 18:02:15 -07:00
Thierry Crozat
60aef89ff4 NEWS: Update changes for the iOS port 2020-08-30 01:54:31 +01:00
Eugene Sandulenko
b32c37ca58 I18N: Update translation (Ukrainian)
Currently translated at 100.0% (1444 of 1444 strings)
2020-08-30 00:43:35 +00:00
Eugene Sandulenko
17b57a6c1c I18N: Update translation (Russian)
Currently translated at 100.0% (1444 of 1444 strings)
2020-08-30 00:43:35 +00:00
Marcel Souza Lemes
0f979ab6bb I18N: Update translation (Portuguese (Brazil))
Currently translated at 100.0% (1444 of 1444 strings)
2020-08-30 00:43:34 +00:00
George Kormendi
ce67b3de37 I18N: Update translation (Hungarian)
Currently translated at 100.0% (1444 of 1444 strings)
2020-08-30 00:43:33 +00:00
IlDucci
d3d9e22257 I18N: Update translation (Spanish)
Currently translated at 100.0% (1444 of 1444 strings)
2020-08-30 00:43:33 +00:00
Paul Gilbert
b513242292 MADS: Avoid potential crash for reading beyond end of sound data 2020-08-29 15:06:00 -07:00
athrxx
6f8aa0b21b DEVTOOLS: (CREATE_KYRADAT) - whitespace 2020-08-29 23:50:30 +02:00
athrxx
7b66f1191d KYRA: whitespace cleanup 2020-08-29 23:50:29 +02:00
Paul Gilbert
96c860c5bd GLK: HUGO: Fix hang closing ScummVM window 2020-08-29 14:23:57 -07:00
Paul Gilbert
ac7b1e326d GLK: HUGO: Properly fix display images
The resource file format Hugo uses has named entries.
Because of this, the original Glk code added to Hugo
does a whole mess of reading in a picture, then copying
it to a dummy pic file with a dummy number, just so a
call to glk_image_draw could detect it.

Since this isn't the first time I've had to deal with
named resources, it ended up being cleaner to add a new
variation of glk_image_draw and glk_image_draw_scaled
that can take in a string image parameter. That way, I
was able to set up an archive class to represent the
resource file, and pass the resource name directly
without worrying about dummy picture numbers & files
2020-08-29 13:59:52 -07:00