3621 Commits

Author SHA1 Message Date
aryanrawlani28
1616d7d515 ENGINES: ME & MEC: Move achievements-related code to MetaEngineConnect
- Adjust accordingly for dialogs.
2020-10-03 14:56:36 +02:00
aryanrawlani28
0cc8719417 BASE: ENGINES: Adapt to keymaps moving to engine plugins
- Also improvise usage of MetaEngineConnect in main.cpp a bit.
2020-10-03 14:56:36 +02:00
aryanrawlani28
73cc973ad7 BASE: ENGINES: Change saveload code to adapt to the new MEC class.
- MEC: MetaEngineConnect.
- How do games handle save/load if MetaEngine (detection) is seperate from MetaEngineConnect (engine factory)?

- Most of the changes are quite similiar. ConfMan finds us the relevant MetaEngine, then simply use the new helpers from PluginMan.
- The new helpers will help convert a relevant MetaEngine into the other format or vice versa.
- Once the matching is complete, simply invoke functions by:
plugin->get<MetaEngineConnect>().engineMethod();
- Refer to previous commits to see the new class changes & notes.
2020-10-03 14:56:36 +02:00
aryanrawlani28
4e3c43ce16 GUI: RTL: Fix gltichiness when switch to rtl-gui when theme doesn't support. 2020-10-01 11:41:16 +02:00
Eugene Sandulenko
34af205e81 I18N: Regenerate translations.dat 2020-10-01 11:39:41 +02:00
Eugene Sandulenko
76ec66bfa6 Revert "GUI: Properly load fonts when translations are disabled"
This reverts commit 62c4d6cc0a7c004565d0cc093b81e4813588ad60.

This broke non-Latin fonts loading.
2020-10-01 02:08:39 +02:00
Eugene Sandulenko
3795069ab9 I18N: Regenerate translations.dat 2020-10-01 01:55:14 +02:00
Vladimir Menshakov
8f2ecc34ee GUI: Add GUI::Debugger::clearVars, rename private registerVar to registerVarImpl allowing access change. 2020-09-26 18:45:06 +01:00
Alexander Reim
b26add3356 CREDITS: Add myself 2020-09-24 12:42:21 +02:00
Cameron Cawley
81f989be63 GUI: Use RGB cursors on supported platforms 2020-09-17 22:21:23 +02:00
Eugene Sandulenko
62c4d6cc0a GUI: Properly load fonts when translations are disabled 2020-09-17 16:14:01 +02:00
Eugene Sandulenko
c26d440311 GUI: Fixed Japanese language abbreviation in font specification 2020-09-17 14:16:55 +02:00
Eugene Sandulenko
dd0c97cb1a GUI: Added Hindi fonts 2020-09-17 13:55:08 +02:00
Eugene Sandulenko
fc075e29da GUI: Added sanity check to <font> key parser 2020-09-17 02:30:20 +02:00
Eugene Sandulenko
93791189fa GUI: Relaxed property requirement in <font> key.
<language> now inherits values from <font>, thus, any could be missing
2020-09-17 02:27:15 +02:00
Eugene Sandulenko
65e38680dd GUI: Added XML theme setting for overriding the fonts depending on the selected language.
- Added Japanese, Korean and Traditional Chinese fonts to fonts.dat
- Bumped fonts.dat file version to 1.4
- Bumped theme version to 0.8.39
- Regenerated built-in theme
2020-09-17 02:00:33 +02:00
Thierry Crozat
0efbe765da I18N: Regenerate translations data file 2020-09-13 22:27:10 +01:00
Thierry Crozat
32bbf489e9 GUI: Add exitLoop() method to GuiManager
The idea is to allow backends to start a game even after the
LauncherDialog has been created, and for that they need a way
to close the existing GUI dialogs.
2020-09-13 00:21:34 +01:00
Thierry Crozat
e0802ec341 GUI: Fix SaveLoadChooserGrid not disabling write protected slots
This was broken in commit f24a89e that disabled the slots when they
are locked due to cloud sync.
2020-09-12 21:41:57 +01:00
Thierry Crozat
982ecb4f93 GUI: Fix use of uninitialized variable in ListWidget constructor
The _scrollBarWidth variable was used (to create the ScrollBarWidget)
before it was initialized.
2020-09-10 00:34:45 +01:00
Thierry Crozat
c5ede297ea JANITORIAL: Simplify some code that use U32String::format 2020-09-08 21:24:27 +01:00
Thierry Crozat
37eb6291fe CREDITS: Add credits for supernova Italian translation 2020-09-07 02:09:07 +01:00
Cameron Cawley
2bb04ea58d GUI: Fix changing the current text to speech voice 2020-09-06 16:23:57 +01:00
Eugene Sandulenko
ed4e42f0f1 I18N: Regerenate translations.dat 2020-09-02 12:39:13 +02:00
Thierry Crozat
9c6b7c429b GUI: Fix compilation when fancy themes are disabled 2020-08-30 19:09:05 +01:00
Thierry Crozat
78b36f248b CREDITS: Update list of translators 2020-08-30 15:43:20 +01:00
Eugene Sandulenko
79ba124bce CREDITS: Added BeWorld as the MorphOS porter 2020-08-30 16:36:48 +02:00
Thierry Crozat
37e940ec2b I18N: Regenerate translation data file 2020-08-30 14:07:00 +01:00
Eugene Sandulenko
0fba34f8a9 GUI: Update EventRecorder to U32 2020-08-30 14:49:35 +02:00
aryanrawlani28
03f3f01740 GUI: Simplify code for UnknownGameDialogs when generating bug tracker URL. 2020-08-30 14:43:41 +02:00
aryanrawlani28
e5445fb901 GUI: U32: Small improvements/fixes
- Remove = operator in String, which compared to a U32String.
- Let implicit cast take care of results from getResultString, so in-future easy to spot new changes.
- Use uint32 for each char when encodingUrlStrings, to avoid unsafe comparision.
2020-08-30 14:43:41 +02:00
aryanrawlani28
f72a98c799 GUI: Return Strings from createDefaultSaveDesc 2020-08-30 14:43:41 +02:00
aryanrawlani28
2eeb0cb859 GUI: Use U32Strings for MessageDialogWithURL. 2020-08-30 14:43:41 +02:00
aryanrawlani28
67daa0fa96 GUI: Add missing parameter in MessageDialog 2020-08-30 14:43:41 +02:00
aryanrawlani28
e00e453489 GUI: CREDITS: Regenerate credits.h file 2020-08-30 14:43:41 +02:00
aryanrawlani28
5ab12afd2a JANITORIAL: Spacing issues in gui/about. 2020-08-30 14:43:41 +02:00
aryanrawlani28
c855f6259a GUI: U32: Fix incorrect code for redirecting constructors.
- The changes previously were creating a temporary object whose lifetime was limited to that line.
- Additionally, use Strings instead of const char* in MessageDialogs.
2020-08-30 14:43:41 +02:00
aryanrawlani28
44230b6c8a GUI: U32: Return a string from FileBrowserDialog::getResult 2020-08-30 14:43:41 +02:00
aryanrawlani28
e29e5f1156 GUI: TTS: Fix compilation
- While building options, TTS used some translations-dependant variables.
2020-08-30 14:43:41 +02:00
aryanrawlani28
8c5611c3ca GUI: U32: Fix unused u32format where translations are used.
- Misc: Remove incorrect space.
2020-08-30 14:43:41 +02:00
Thierry Crozat
a54b5826ea UPDATES: Fix compilation with U32 strings 2020-08-30 14:43:41 +02:00
aryanrawlani28
01176e43f7 GUI: U32: Use unicode based generateGameReport correctly in all places
- UnknownGameDialog: Use u32 for gameReport dependant functions
2020-08-30 14:43:41 +02:00
aryanrawlani28
9bf3f73d8a GUI: U32: Use U32Strings for native dialogs
- Make DialogManager showFileBrowser take in u32
- Show filebrowser with u32 in MacOS and GTK
2020-08-30 14:43:41 +02:00
aryanrawlani28
2ca907b4a2 GUI: U32: Use game-list filters with u32
- Add a contains utility function to ustr
- setFilter uses U32String and U32Tokenizers
- Make consequent changes in launcher to allow sending u32strings
2020-08-30 14:43:41 +02:00
aryanrawlani28
68d01321d6 GUI: U32: Downscale changes of U32, fix review issues
This commit addresses a range of changes, within scummvm subproject.

- Audio files, like mididrv, remove U32String based name and identifier, because ASCII only.
- mididrv.cpp had some wrong format for warning messages, fix those
- Message dialogs were modified to use default arguments more often, but reverting back to the orignal to minimize changes.
- SetTooltip has a fake constructor that takes in a string, and use it.
- U32Format had some break statements missing, add those.
- RemapWidget: Use fake constructor for setLabel and setTooltip, to make minimal changes
- SDL: setting text in clipboard no longer uses SDL_iconv_string
- TTS: Override base class "say" with strings, so tts->say can be used with normal strings too.
- About dialog: fix incorrect code for u32string variables
- Fix some extra brackets
- Some buttons were incorrectly removed from using translated labels, revert those
- Message Dialog: Pass default and alt buttons as const references
- Saveload Dialog: Use translations in missing places, use const-references. Also, use translations in a correct manner.
- Use const references for tooltip in GraphicsWidget, EditTextWidget, error.cpp
- DomainEditTextWidget: Use U32String for text
2020-08-30 14:43:41 +02:00
aryanrawlani28
cbff58200f GUI: U32: Use u32 for EditRecordDialog and RecorderDialog
- Mark _authors as U32String
- Adjust accordingly in EditRecordDialog
- Some janitorial whitespaces fixes
2020-08-30 14:43:41 +02:00
aryanrawlani28
4b6976c558 GUI: U32: Reduce number of files changed and fixes
Up until last commit, everything was working fine but the amount of files changed was too large. This commit tries to reduce the changes.

- Add a fake constructor to Keymap, text-to-speech, setDescription (save-state)
- Redirecting functions for PopUpWidget::appendEntry, ButtonWidget::setLabel, GUIErrorMessage
- Use the above functions and constructors to reduce changes in Engines
- Fix warnings being in unicode. Only output english text in - Warnings, Errors, etc.
- Mark some strings as "translation" strings. (Not yet added to POTFILES)
- Remove some CP related things from po/modules.mk
- Previously used some Common::convertToU32 where it was not necessary, replace this with u32constructor
2020-08-30 14:43:41 +02:00
aryanrawlani28
d3e64b2df4 GUI: U32: Use const-references for tooltips 2020-08-30 14:43:41 +02:00
aryanrawlani28
d12c6c4338 GUI: U32: Code cleanup
- Remove extra parantheses leftover from temp code
- SaveLoadDialog - do not encode when setting labels
- Remove mapping variable from ThemeEngine::loadScalableFont (and use default 0)
- Remove incorrect u32 constructor wrapper from confman.set in eventrecorder.cpp
2020-08-30 14:43:41 +02:00
aryanrawlani28
185fb72783 GUI: U32: Improve U32 code
- Revert accidentally put translations in mt32.cpp
- Use U32::format in some places earlier missed
- Add %u and %i for u32::format
- Add support for GUIErrorMsgFormat to use u32::format internally
- Use the above whereever needed
- Improve linux tts by removing redundant code
- Some places I had changed nullptr -> "". Revert this
2020-08-30 14:43:41 +02:00