315 Commits

Author SHA1 Message Date
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
Matthew Duggan
9ee9fc19ae TITANIC: Update readLine function signature 2020-05-13 21:12:59 +09:00
Bastien Bouclet
4d70872545 TITANIC: Add override keywords 2020-02-09 12:43:16 +01:00
Bastien Bouclet
0d5d04ca3a IMAGE: Allow setting the output pixel format to the JPEG decoder 2019-04-28 07:59:14 +02:00
Cameron Cawley
f6015086e1 ENGINES: Add GUIErrorMessageFormat to replace duplicated functions (#1455) 2018-12-19 08:31:26 +02:00
Paul Gilbert
5d77ade10b TITANIC: Fix infinite Barbot animation loop after loading savegame 2018-09-07 21:04:04 -07:00
Adrian Frühwirth
cee4d6b853 JANITORIAL: Fix trailing whitespace 2018-05-24 15:30:55 +02:00
Adrian Frühwirth
8885b37abb TITANIC: Enforce code formatting guidelines 2018-05-07 20:06:29 +02:00
Colin Snover
6c40ceded1 TITANIC: Fix compilation failure in C++11 mode 2017-11-17 22:47:59 -06:00
Paul Gilbert
ba7e50edec TITANIC: Hopefully fix AmigaOS compilation 2017-10-27 17:37:44 -04:00
Paul Gilbert
11a72a5e0e TITANIC: Add missing strings for Floor & Room # to titanic.dat 2017-10-15 21:20:09 -04:00
Paul Gilbert
17606700c4 TITANIC: Fix use after free and remove IFDEF code from mouse cursors 2017-10-15 19:03:09 -05:00
Paul Gilbert
db5676fec2 TITANIC: Simplify cursors to build up as RGBA during loading 2017-10-15 19:03:09 -05:00
Paul Gilbert
8e0833e6de TITANIC: Remove accidentally committed cutscene slowdown 2017-10-14 22:17:12 -04:00
Paul Gilbert
55947e8ae8 TITANIC: Fix rotating on Top of Well balcony 2017-10-13 21:23:24 -04: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
Paul Gilbert
6723bed162 TITANIC: DE: Fixes to vocabs, strings, and font in titanic.dat 2017-10-06 21:07:00 -04:00
Paul Gilbert
93e18ba7c3 TITANIC: DE: Translation for .avi files directly referred to 2017-10-02 21:40:46 -04:00
Paul Gilbert
ba45fb2d60 TITANIC: Remove redundant surface ccreation from DirectDrawManager 2017-09-19 19:27:23 -04:00
Paul Gilbert
1f1a4427f5 TITANIC: Change AVISurface _framePixels from ManagedSurface to bool 2017-09-18 21:19:06 -04:00
Paul Gilbert
5af8ed228d TITANIC: Add VocabMode enum, fix German vocab loading 2017-09-18 18:16:03 -04:00
Paul Gilbert
09931ae0aa TITANIC: Fixed FixedQueue compaction when queue has been emptied 2017-09-16 14:09:28 -04:00
Paul Gilbert
3ed7ef57ae TITANIC: Moved queue logic within CAUdioBuffer to new FixedQueue class
This is a cleaner implementation, since all the pointer logic and
queue management is now better encapsulated in it's own class.
I felt a new FixedQueue class was necessary because the standard
Queue class uses a Common::List internally, which would be unsuitable
for containing 100,000 elements, since each int value would need it's
own list node. This way uses an array internally, like FixedStack
2017-09-14 22:34:04 -04:00
Paul Gilbert
d5df72998c TITANIC: Fix blocky squares during transitions on SGT level 2017-09-12 20:39:54 -04:00
Paul Gilbert
c8c83145a8 TITANIC: The hasAudioTiming code was just an isActive flag 2017-09-11 19:35:21 -04:00
Paul Gilbert
25ae67b870 TITANIC: Created custom stream reader to fix bad y222.avi header 2017-09-10 19:32:26 -04:00
Paul Gilbert
a2b05b5c63 TITANIC: Fix Doorbot doubletake in the prologue 2017-09-03 20:09:23 -04:00
Paul Gilbert
6291eb75d0 TITANIC: Fix German strings in create_titanic, regenerate titanic.dat 2017-08-26 12:39:34 -04:00
Paul Gilbert
a929c5aabc TITANIC: Add further strings to create_titanic tool 2017-08-26 11:13:34 -04:00
David Fioramonti
c96b01b82e TITANIC: Reduce header includes for titanic.h
I reduced the header includes a lot in Titanic.h and forward
declared when I could. Titanic.h was including a lot and
a lot of functions that were including it were not using its
API. This will help make it more clear which implementation
files are using which class since they will just need to include
which ones they need.

I also moved the debug related items in Titanic.h into the debugger
header.

I also reordered several of the the header includes to be local to
global.
2017-08-24 04:06:54 -07:00
Paul Gilbert
a62d1632b5 TITANIC: Start end credits at bottom of screen, not the top 2017-08-19 21:58:43 -04:00
Torbjörn Andersson
8aeeacf204 TITANIC: Add missing va_end() on early return (CppCheck warning) 2017-08-13 16:15:18 +02:00
Paul Gilbert
f132cbcf85 TITANIC: Add support for compressed bitmaps in titanic.dat 2017-08-12 20:09:18 -04:00
Paul Gilbert
660f7bf114 TITANIC: Further improvements to arrow key movement
The movement code, when deciding on an item or link that matches the
desired direction, will check five points on the object/links area..
center, left edge, right edge, top edge, and bottom edge. For each
of these, it makes sure that at that point, clicking will actually
get passed to it. Otherwise, it moves onto one of the other edges.
This helps avoid issues where links weren't working because standard
scene objects were partially obscuring them.
2017-08-08 22:24:22 -04:00
Paul Gilbert
e29b2fc731 TITANIC: Fix original savegames from the bar not loading 2017-08-05 19:06:35 -04:00
Paul Gilbert
f9c370d942 TITANIC: Fixes for names in the CursorId enum 2017-08-04 21:08:35 -04:00
Paul Gilbert
62ab066457 TITANIC: Fix not being able to close ScummVM during prologue credits 2017-07-31 22:39:28 -04:00
Paul Gilbert
bc29ee474a TITANIC: Handle brief freeze if prologue credits are skipped 2017-07-31 22:20:50 -04:00
Paul Gilbert
9c6dd7113f TITANIC: Fix speed of palette transitions in end credits 2017-07-30 17:12:55 -04:00
Paul Gilbert
6a7688ad10 TITANIC: Properly fix disappearing cconversation log text 2017-07-29 20:30:06 -04:00
Bastien Bouclet
ec49730711 VIDEO: Allow setting the mixer sound type used to play audio tracks 2017-07-27 06:40:07 +02:00
Paul Gilbert
9752d7bb43 TITANIC: Don't load prior frame for videos when in reverse mode 2017-07-20 07:28:56 -04:00
Paul Gilbert
679c0e72b1 TITANIC: Fix scaling in scene transition cutscenes 2017-07-16 18:33:36 -04:00
Paul Gilbert
fe1617ac51 TITANIC: Fix pause during intro credits cutscene 2017-07-15 11:29:21 -04:00
Paul Gilbert
51ebb01915 TITANIC: Fix Titania's nose remaining present after being picked up
Fixing this required reverting the previous fix I'd done for the
Doorbot's 'Cloak Off' animation during the prologue. What the proper
fix for it, seems to be, is that when a video is full 32-bit ARGB,
if it has a second transparency track, then simply ignore the alpha
in the first track, and simply use the RGB values for each pixel
2017-07-11 21:59:21 -04:00
Paul Gilbert
eb7306286f TITANIC: Fix rendering of conversation text input 2017-07-10 21:40:55 -04:00
Paul Gilbert
7fc69ebdea TITANIC: Inline CTransparencySurface methods at wjp's suggestion 2017-07-10 19:24:10 -04:00
Paul Gilbert
558a409c00 TITANIC: Fix disappearing vision center on bar shelf 2017-07-08 16:27:05 -04:00
Paul Gilbert
562da310b8 TITANIC: Fix to only update modified parts of the screen 2017-07-07 20:55:12 -04:00