Commit Graph
116 Commits
Author SHA1 Message Date
Paweł Kołodziejski 06902574b4 GRIM: Janitorial 2022-06-08 01:12:00 +02:00
Paweł Kołodziejski 20cb0ae228 ALL: Cleanup ResidualVM -> ScummVM 2021-12-26 21:19:38 +01:00
Eugene Sandulenko abea37c9bb ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Niv BaehrandBLooperZ bc19f81d56 GRIM: use unicode-bidi for hebrew (#2917)
Co-authored-by: BLooperZ <blooperz@users.noreply.github.com>
2021-04-05 22:04:16 +03:00
Filippos Karapetis 53db2cde0c GRIM: Adjust comment 2021-03-24 14:34:32 +02:00
BLooperZ b3101c9923 GRIM: add RTL support for hebrew 2021-03-24 14:34:32 +02:00
Joel Teichroeb 08dc8b3422 Load coords from text objects 2015-02-03 19:49:47 -08:00
Joel Teichroeb 48870f04b7 Reset max line width 2015-02-03 18:53:22 -08:00
Joel Teichroeb 6df76c20df Load and render ttf fonts 2015-02-01 15:36:56 -08:00
Pawel Kolodziejski 4f19ee6a2c GRIM: restored previous position shifting, but only partially for one font 2014-12-29 12:00:09 +01:00
Pawel Kolodziejski 6afed33017 GRIM: fixed issue #1083 (revert old behavior) 2014-12-27 21:51:01 +01:00
Joseph Jezak f3200a76ff EMI: Fix font text centering by using just the kerned width. 2014-08-20 09:36:31 -04:00
Joni Vähämäki 94699b842d GRIM/EMI: Fix word wrapping in the case when there are no spaces in the text.
This always caused a buffer overflow before.
2014-08-19 16:00:31 +03:00
Joseph Jezak df849e797a EMI: Use 1/10th the screen width for the minimum width. 2014-08-04 19:06:58 -04:00
Joseph Jezak 9db04e1349 EMI: Use the kerned font height instead of 16 as the minimum distance from the edge. 2014-08-04 11:14:28 -04:00
Joseph Jezak 3b34587096 EMI: Remove repositioning of text. 2014-08-04 11:14:28 -04:00
Joseph Jezak e638c09ba6 GRIM/EMI: Adjust the width and height names to better reflect usage. 2014-08-04 11:14:28 -04:00
Joseph Jezak f25f678c13 EMI/GRIM: Fix text position. With the correct height, we don't need to adjust the line height any more. 2014-08-04 11:14:28 -04:00
Joseph Jezak 53de9b5ef6 GRIM/EMI: Use only the kerned width when determining text width. 2014-08-04 11:14:27 -04:00
Joel Teichroeb bfb6b4b5f7 Merge pull request #928 from klusark/fulldemo
GRIM: Fix going to fullscreen in the demo
2014-07-28 10:52:29 -07:00
Joseph Jezak 94543abdb7 EMI: Skip setting up the text when it will be repositioned later. 2014-07-22 18:23:34 -04:00
Joel Teichroeb 20b0bd2bb1 GRIM: Fix going to fullscreen in the demo 2014-06-14 16:12:46 -07:00
Joel Teichroeb 0f3da43694 GRIM: Change NULL to nullptr. 2014-05-30 17:43:08 -07:00
Pawel Kolodziejski 8759900b6a ALL: synced with ScummVM 2014-04-05 18:18:42 +02:00
Ingo van Lil 5d2e2240b7 EMI: Rework text stack handling
The text stack in EMI must be saved and restored in save games because
the game will call PopText after returning from the menu. Instead of
managing separate lists for each text stack level this patch adds a
_stackLevel field that is incremented for PushText and decremented for
PopText. Only text objects from the stack top (level 0) are rendered.
2013-12-01 23:45:07 +01:00
Christian Krause f3c81da634 EMI: Fix color of menu entries
The highlighted menu entry is sometimes not correctly colored.
There are multiple textObjects per string (one for each color) and
residualvm draws them in an unspecified order.

To ensure that the correct textObject is drawn on top, each
object gets a layer attribute assigned by the lua code.

The patch adds the layer attribute to the runtime engine and orders the
textObjects by layer before drawing them.
2013-11-27 22:07:25 +01:00
Joel Teichroeb c0cb2f1f9c GRIM: Use a consitent style for constructor initializers 2013-10-26 13:57:55 -07:00
Joel Teichroeb 92c48e6637 GRIM: const more paramiters 2013-10-25 07:48:27 -07:00
Joel Teichroeb b573f35e43 GRIM: Remove unneeded TextObject constructor 2013-10-24 17:52:28 -07:00
Joel Teichroeb 767291a8d6 GRIM: Initialize everything in TextObject 2013-07-10 12:09:06 -07:00
Einar Johan Trøan Sømåen fe3883cecd GRIM: Reformat code to be closer to convention. 2013-07-09 21:12:55 +02:00
Paweł Kołodziejski 175620b62a ALL: change license headers from LGPL to GPL, and few updates 2012-12-19 23:15:43 +01:00
Dries Harnie 23a7d90b28 EMI: Fix text positioning 2012-11-13 01:14:34 +01:00
Joel Teichroeb 13a9e6fd3e GRIM: Make TextObject use const where appropriate 2012-05-05 18:20:54 -07:00
Joel Teichroeb a5b97eacb8 Revert "GRIM: Throw a lua error if the font that a text object has is null"
This reverts commit 07c8d2d540.
This commit caused problems with the Grim demo.
2012-04-25 17:42:27 -07:00
Joel Teichroeb 07c8d2d540 GRIM: Throw a lua error if the font that a text object has is null 2012-04-10 14:32:21 -07:00
Joel Teichroeb 94aeca9663 GRIM: Remove tag from the pool template 2012-04-05 15:20:30 -07:00
Joel Teichroeb 0dcfaf8fb1 GRIM: Do not include unneeded headers 2012-04-04 16:11:05 -07:00
Dries Harnie 0a4e46827b EMI: Implement ToggleOverworld, render overworld 2012-02-18 22:25:24 +01:00
Dries Harnie 31528d21b6 EMI: Draw exit screen correctly 2012-02-18 22:19:28 +01:00
Dries Harnie 14b485569b EMI: Always reposition from original coordinates 2012-02-18 22:18:34 +01:00
Joel Teichroeb a9c664379e GRIM: Make saving and restoring use more appropriate types and rename functions to be more logical 2012-01-28 10:03:27 +01:00
Joel Teichroeb aa814e3334 GRIM: Enhance the way that colors are given to lua. 2012-01-27 11:47:28 -08:00
Joel Teichroeb 9a09114b5f EMI: Improve positioning of text 2012-01-24 08:34:34 -08:00
Giulio Camuffo 114b6052a6 Merge pull request #470 from klusark/textobjectdisable
GRIM: Remove the disabled paramiter from textobject as it is not needed
2012-01-13 12:31:16 -08:00
Joel Teichroeb ca90fd30bd GRIM: Remove the disabled paramiter from textobject as it is not needed 2012-01-12 15:19:17 -08:00
Joel Teichroeb 8865956214 EMI: More work on making the menu function correctly 2012-01-12 13:39:38 -08:00
Paweł Kołodziejski e350c7f777 renames 2012-01-06 23:29:45 +01:00
Joel Teichroeb 9e792f7ff4 GRIM: Fix some issues with text objects. Fixes #440, #441 2011-12-21 12:16:11 -08:00
Joel Teichroeb ee81d2bbb3 GRIM: Cleaned some dependancies between files 2011-12-17 21:48:17 -08:00