Commit Graph
153 Commits
Author SHA1 Message Date
aryanrawlani28 1612b6845a ENGINES: GUI: U32: Improve translation message usage 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 e22b32abfe GUI: U32: Use Common::U32String::format where necessary and GUIError to u32
- Where necessary as in, where translated messages are used.
- GUIErrorMessage now takes in U32String
- error messages across some engines use U32Strings. they are changed because they show a message dialog.
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
Thanasis Antoniou 573c10f0c8 TOON: Prevent segmentation fault if PAK file is missing
Could be related to ticket #11319

https://bugs.scummvm.org/ticket/11319
2020-02-28 10:57:53 +02:00
Paul Gilbert ed71bef83b TOON: Refactor to use Engine debugger 2020-02-16 13:07:19 +02:00
BLooperZ 32b9b7226c TOON: plaintext format for subtitles 2019-11-18 02:02:14 +01:00
BLooperZ e87e18052c TOON: fix types + remove unused import 2019-11-18 02:02:14 +01:00
BLooperZ a2a4278c0f TOON: support SUBTITLES.PAK 2019-11-18 02:02:14 +01:00
BLooperZ ff039617bb TOON: formatting 2019-11-18 02:02:14 +01:00
BLooperZ 83285746b0 TOON: add support for cutscene subtitles 2019-11-18 02:02:14 +01:00
D G Turner 29aef74f66 TOON: Fix Missing Default Switch Cases
These are flagged by GCC if -Wswitch-default is enabled.
2019-11-09 03:24:47 +00:00
David Fioramonti e2e0f9f528 TOON: Add playtime to saved game
Supports saved games made in the current version or the the last saved game version.
2018-08-18 14:21:28 +02:00
Adrian Frühwirth 4bf0eac94d TOON: Enforce code formatting guidelines 2018-05-07 20:06:29 +02:00
Colin Snover 432fd522d2 ENGINES: Remove default1x scaler flag
This flag is removed for a few reasons:

* Engines universally set this flag to true for widths > 320,
  which made it redundant everywhere;
* This flag functioned primarily as a "force 1x scaler" flag,
  since its behaviour was almost completely undocumented and users
  would need to figure out that they'd need an explicit non-default
  scaler set to get a scaler to operate at widths > 320;
* (Most importantly) engines should not be in the business of
  deciding how the backend may choose to render its virtual screen.
  The choice of rendering behaviour belongs to the user, and the
  backend, in that order.

A nearby future commit restores the default1x scaler behaviour in
the SDL backend code for the moment, but in the future it is my
hope that there will be a better configuration UI to allow users
to specify how they want scaling to work for high resolutions.
2017-10-07 12:30:29 -05:00
Ben Castricum ebaab44cd1 ALL: Leave out instructions for engine data issues 2016-12-08 13:38:56 +01:00
Ben Castricum 55512414dd ALL: Change instructions for engine data file issues
The engine data files should be included in the package, so downloading
may not be the best suggestion. Instead refer to the README.
2016-12-06 14:16:37 +01:00
Ben Castricum 1cf3f50b74 ALL: Unify 'wrong version of engine data' message 2016-12-06 09:38:25 +01:00
Ben Castricum eb7ffb1e2c ALL: Unify 'corrupted engine data' message 2016-12-06 09:38:19 +01:00
Ben Castricum e1ec91b69a ALL: Unify 'missing engine data' message 2016-12-05 21:04:50 +01:00
Ben Castricum 38eb27212d ALL: savegame => saved game 2016-11-29 20:15:13 +01:00
rootfather 74d2992177 TOON: Enable translation for some strings 2016-11-26 14:54:08 +01:00
Strangerke 010e676184 TOON: Fix uninitialized variable 2016-06-13 07:13:46 +02:00
Eugene Sandulenko b53d8104b7 TOON: Plug memory leak 2016-05-31 17:12:18 +02:00
Eugene Sandulenko 29d6e9a754 JANITORIAL: Whitespace fixes 2016-05-31 17:12:18 +02:00
Ori Avtalion 253e18c440 JANITORIAL: Reduce GUI header dependencies 2016-04-14 13:30:14 +03:00
Thierry Crozat 41ff2a9f02 TOON: Translate buttons in load and save dialogs. 2016-02-20 21:08:34 +00:00
Torbjörn Andersson 404839bda6 TOON: Check for quitting in runEventScript()
This keeps the game from hanging when trying to quit during Jim's
gym demonstration. Hopefully any other effect of it is also good.
2015-05-15 11:13:13 +02:00
sylvaintv 15a4371b2d TOON: Fix bad enum syntax 2015-03-19 22:40:29 +01:00
sylvaintv e73faeee68 TOON: Add options menu
- Add options menu when pressing F1
- Add in-game font change
2015-03-19 21:42:08 +01:00
Strangerke 37b77168ec TOON: Remove some dead code 2014-08-06 20:57:30 +02:00
Strangerke c456b0e0e3 TOON: Reduce the scope of some more variables. 2014-02-28 23:39:35 +01:00
Strangerke a8e17552ce TOON: Remove double identical check. 2014-02-28 23:33:19 +01:00
Johannes Schickel 1d65a915ba TOON: Make GPL headers consistent in themselves. 2014-02-18 02:39:39 +01:00
Johannes Schickel 4e290bf475 TOON: Use keycodes for hotkey handling. 2014-02-14 18:21:57 +01:00
Johannes Schickel b91e96e26a TOON: Ignore hotkeys when *any* modifier is used.
This makes, for example, META+d also be ignored and not only CTRL+d etc.
2014-02-14 18:21:57 +01:00
Johannes Schickel f5a77e1380 TOON: Do not use KeyState::hasFlags when only presence of any flag should be checked.
hasFlags has the semantics to check whether *all* of the supplied flags are
active. Toon looks like it rather wants to know whether any modifier is
active and thus not use hasFlags.
2014-02-14 18:21:57 +01:00
Strangerke 1c0367d5a6 TOON: Fix unintialized variables. Fix CID 1002424 2013-11-09 18:20:29 +01:00
Strangerke 809aaead09 TOON: Fix CID 1002424 2013-10-29 08:18:54 +01:00
Johannes Schickel 7455cd4e35 TOON: Take advantage of Surface::getPixels. 2013-08-03 04:02:53 +02:00
Johannes Schickel cbef0de3a4 TOON: Prefer getBasePtr over direct Surface::pixels access. 2013-08-03 02:52:34 +02:00
Strangerke 34ded75f40 TOON: Fix Uninitialized scalar variable CID 1003172, 1003173, 1003175, 1003176 2013-04-27 11:19:05 +02:00
Matthew Hoops a652f6669e VIDEO: Rewrite SmackerDecoder to use the new API 2012-07-23 21:04:51 -04:00
D G Turner cfe7bf614b TOON: Remove unecessary getSystem() function.
This was needed due to the unecessary protected shadow variable
hiding the Engine superclass _system member variable.
2012-07-07 14:37:15 +01:00
D G Turner 78b8ca5c7f TOON: Replace remaining int32 x,y,w and h coordinates with int16. 2012-06-28 07:07:08 +01:00
D G Turner 57d34d2576 Merge branch 'toon-RAM-reduction' 2012-06-14 17:45:30 +01:00
D G Turner 5458127d97 TOON: Migrate Pathfinding API x,y coordinates to int16.
This harmonises the usage with Common::Point.
2012-06-10 16:00:26 +01:00
Johannes Schickel 7c5cf1b400 GUI: Add helper to SaveLoadChooser, which uses the currently active target.
This reduces the code duplication in all client code, which formerly duplicated
the querying of the plugin, game id etc. and now simply calls the newly added
method runModalWithCurrentTarget() on a SaveLoadChooser object.
2012-06-10 04:53:17 +02:00
Johannes Schickel 15046a7529 GUI: Get rid of SaveLoadChooser::setSaveMode.
We already pass the title and process button name to the constructor of
SaveLoadChooser and then do not offer any way of changing it, thus changing
the edit mode of the chooser is kind of pointless and was never actually used.
Instead we pass the mode on SaveLoadChooser construction now.
2012-06-10 04:19:45 +02:00
D G Turner 70f09e4ee3 TOON: Reduce unecessary linkages in Pathfinding class. 2012-06-07 13:50:24 +01:00