Commit graph

331 commits

Author SHA1 Message Date
Daniel Nylander
8ffcf8229f I18N: Change SE_SWE to SV_SWE
Change the Swedish language code from SE to SV according to ISO 639
2025-03-30 22:19:13 +03:00
Filippos Karapetis
9bd0c354c5 PINK: Handle non-existent pages on scene change - bug #15149
A non-existent page is provided after the girl turns into a mermaid in
Hokus Pokus Pink. We now handle this case without crashing, although
the scene transition is different than how the original handles such
errors
2024-11-11 20:17:24 +02:00
Hubert Maier
84ece43aae
JANITORIAL: PINK: Fix recipient typos in code 2024-09-11 06:39:38 +03:00
Cameron Cawley
89c57d29ef COMMON: Move more maths functions into the Math namespace 2024-07-27 14:00:48 +03:00
Filippos Karapetis
5883b01307 PINK: Use true/false keywords for boolean variables 2024-05-13 09:47:30 +03:00
Matthew Jimenez
5219c99400 GRAPHICS: Move PaletteManager definition to a separate header 2024-03-12 12:24:00 +02:00
Eugene Sandulenko
fb30637170
SLUDGE: Remove leftover include 2023-10-29 01:13:39 +02:00
BLooperZ
289dfabb42 MACGUI: Encode UTF-8 in windows mode
This fixes hebrew rendering of PDA in Pink
also reverts commit 2fe812db97.
2023-06-29 09:50:04 +03:00
Pritam
2fe812db97 PINK: Fix Hebrew text encoding. 2023-06-28 21:51:05 +03:00
antoniou79
693557487d PINK: Clear global game variables on New Game
This addresses the cause for #13869 PINK: Can't pickup the poker in sir Manley's house

However, this will not retroactively fix the broken saved games that carry stale global game variables from other playthroughs
It will also will not set the "appropriate" global game variables if the player uses the debug console to jump to different modules and pages back and forth.
2023-04-29 12:14:13 +02:00
antoniou79
475f231ac4 PINK: Fix localized text encoding
Should address bugs #13865 and #13866 PINK: German Umlauts not displayed

Also added text encoding support for the other language codes that are in the detection_tables.h for the PINK engine. Namely, IT_ITA, NL_NLD, and EN_GRB. The NL_NLD one I am uncertain about, but according to wikipedia, kWindows1252 should do for Dutch as well. I cannot test for it though.
2023-04-29 12:12:11 +02:00
Athanasios Antoniou
1645c4b38e
PINK: Handle animations with non standard start frame (#4942)
There are a few animations with start frame >= 0 and also >= framecount

It seems that for such animations, the decoder is supposed to start at 0 and play framecount number of frames.
So for these cases we deduct a _startFrame ammount before sending them to decoder.
This addresses crash bug #14438 PINK: Crash in Egypt when using the digger on the characters for Passport to Peril

Also, set startFrame to 0 for non-standard animations
2023-04-29 12:11:17 +02:00
antoniou79
78903a3c51 PINK: PDA open from menu does not change pause level
Addresses bug #13860 "PINK: Animations will freeze after exiting PDA"
2023-04-29 12:08:37 +02:00
Avijeet
ff1f5712e3 PINK: Fix reversed hebrew text 2022-08-05 20:17:23 +02:00
Avijeet
2eb0650ed8 PINK: Trim trailing spaces in PDA title 2022-07-31 18:33:22 +02:00
Avijeet
b20be5a78f PINK: Add Action Text bounds to dirty rect array before deletion 2022-07-31 18:33:22 +02:00
Avijeet
c264afed6f PINK: Fix alignment of title text in Peril PDA 2022-07-31 18:33:22 +02:00
Eugene Sandulenko
502d8387ae
PINK: Switch palette lookup to Graphics::PaletteLookup 2022-07-03 12:50:06 +02:00
Avijeet
d4b450b2b7 PINK: Read individual bytes for text and background color 2022-07-02 22:41:36 +02:00
Avijeet
7dcb1f91ed PINK: Convert BGR color to RGB color 2022-07-02 22:41:36 +02:00
Avijeet
01d264569c PINK: Rename director.h/cpp to screen.h/cpp 2022-06-27 14:15:34 +03:00
Avijeet
24de0150a2 PINK: Rename class Director to Screen 2022-06-27 14:15:34 +03:00
Quote58
9fced11fb4 PINK: Remove redundant alignment code in action_text. 2022-04-18 16:26:57 +03:00
Andrei Prykhodko
31e7a61ab4 PINK: fix loading pda save
bug #13249
2022-02-05 14:19:31 +02:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Orgad Shaneh
635377951e PINK: Use nullptr
Using clang-tidy modernize-use-nullptr
2021-11-14 15:51:59 +02:00
trembyle
c740f96f63 COMMON: Normalize and document language maintenance
* Add documentation to add or maintain language values
* Fix and reorder existing entries to match ISO standards
2021-11-11 12:06:15 +01:00
Eugene Sandulenko
991b579fce
PINK: Switch whole engine to MemoryReadStream 2021-05-10 18:30:33 +02:00
Eugene Sandulenko
a2b1164fe9
PINK: Preload sounds to avoid race condition.
Since we were reading directly from the ORB file, during video playback
we were reading both sound and video which often was leading to
the incorrect reads
2021-05-10 16:01:23 +02:00
Orgad Shaneh
a05e54f00c JANITORIAL: Remove trailing whitespaces 2021-05-04 11:46:30 +03:00
Eugene Sandulenko
b3cf5c0383
PINK: Specify encoding for the rest of the game languages 2021-05-02 01:03:02 +02:00
Eugene Sandulenko
c7517e2eac
PINK: Fixes for Finnish version 2021-05-02 01:03:02 +02:00
Eugene Sandulenko
c652741e16
PINK: Fix encoding for Polish 2021-05-02 01:03:02 +02:00
Eugene Sandulenko
078eaf3079
PINK: Switch MacTexWindow to windows font too 2021-05-02 01:03:02 +02:00
Eugene Sandulenko
98e698d661
PINK: Recode texts for Danish version 2021-05-02 01:03:01 +02:00
Eugene Sandulenko
e32383574a
PINK: Create MacText once per action 2021-05-01 01:49:48 +02:00
Eugene Sandulenko
847208ade6
PINK: Switch action texts to Windows System font 2021-05-01 01:49:48 +02:00
ysj1173886760
7da28dfc15 PINK: modify action_text to suit for new macgui, move dynamic scrollbar to macgui 2021-04-25 02:24:15 +02:00
ysj1173886760
cd462ba7c7 PINK: delete loading border in pink, it will load in macgui automatically 2021-04-25 02:24:15 +02:00
ysj1173886760
df895359cc PINK: modify the logic when we creating the mactextwindow 2021-04-25 02:24:15 +02:00
ysj1173886760
c1c7631148 PINK: set the offsets for new logic of macgui 2021-04-25 02:24:15 +02:00
ysj1173886760
013925a3ad PINK: implement alignment for center manually for action text 2021-04-25 02:24:15 +02:00
ysj1173886760
55f61f2c69 PINK: fix the bug when we disable the border, the text may not render correctly. 2021-04-25 02:24:15 +02:00
ysj1173886760
d437b22b6b GRAPHICS: MACGUI: fix the behaviour of scrollbar of win95 mode 2021-04-25 02:24:15 +02:00
ysj1173886760
7c5c66a8c8 PINK: add win95 mode border for pink 2021-04-25 02:24:15 +02:00
ysj1173886760
9a139c4797 PINK: clear the area before drawing the actionText 2021-04-25 02:24:15 +02:00
ysj1173886760
70592cfa12 PINK: add intersection check of mactext and dirty rect 2021-04-25 02:24:15 +02:00
Eugene Sandulenko
b53a7db0da ALL: Switch to Common::hypotenuse() 2020-06-06 15:08:52 +02:00
Andrei Prykhodko
5684e9dd9d PINK: changed some field types in classes 2020-06-05 19:48:46 +03:00
Andrei Prykhodko
480d7fddbe PINK: returned HandlerStartPage HandlerTimerSequences 2020-06-05 19:31:50 +03:00