Walter Agazzi
bd1bf59315
AGS: Common: hide GUIObject's size behind the get/set methods
...
From upstream ca442e0f9259d74a2bc6ccd7d28e59381ac1b9d1
2024-10-30 18:07:42 +02:00
Walter Agazzi
db4637ed38
AGS: Editor: moved GUIListBox.Translated property to GUIControl parent
...
This should not break old projects, as the properties are read by names, and
serialization mechanism does not distinct parent properties from child properties.
Partially from upstream 7879455f3082d3d58f519afc95f44aec1f540872
2024-10-30 18:07:42 +02:00
Walter Agazzi
c05a1c4134
AGS: Engine: apply text direction based on guicontrol flags and game version
...
* If controls have "translated" flags
* For Buttons and ListBoxes: if game is >= 3.6.1
2024-10-30 18:07:42 +02:00
Walter Agazzi
24e8507116
AGS: Engine: support RTL in Button and ListBox
...
From upstream 24d9894f9bc9111af0714378e25ab12c2534e7fe
2024-10-30 18:07:42 +02:00
Paul Gilbert
c2a476411c
AGS: Move std namespace into common/std/
2024-07-07 15:28:31 -07:00
Walter Agazzi
bcf5ebaae5
AGS: Common: account Font's YOffset when calculating GUI's graphical rect
...
This fixes fonts with a custom VerticalOffset set getting unexpectedly clipped by a control's texture. Fixes Button and Label controls.
From upstream 02b15886d09b1025ac051bc8adfd6c3e5e7cd171
2024-01-17 03:12:28 +01:00
Paul Gilbert
b1649597d7
AGS: Replaced Math/std Min/Max with ScummVM macros
...
Inspired by 6dee5ee6f271c600e30879d892295ea6069e8cc9
2022-05-05 22:41:10 -07:00
Paul Gilbert
a8ead540c5
AGS: GUIControl::CalcGraphicRect returns relative rect
...
From upstream f827c75396f433542b451ec4caaea4c41c22e5b2
2022-05-05 22:41:08 -07:00
Paul Gilbert
da1178d905
AGS: Implemented proper HasAlphaChannel for all gui controls
...
From upstream 83306ee321e127368a41068f32bd4899ae00223e
2022-05-05 22:41:06 -07:00
Paul Gilbert
ec170ebd2f
AGS: More strict MarkChanged use for gui controls, on changes only
...
From upstream 1383ff33eb4620eae18598f96f7e0cc948977174
2022-05-01 17:23:22 -07:00
Paul Gilbert
a476850123
AGS: Calculate visible graphic size of gui controls for textures
...
From upstream a91bec5f3fa7f37187a084cabd0ab2289e609a6e
2022-05-01 17:23:19 -07:00
Paul Gilbert
2df62bdd55
AGS: Only redraw gui controls when they are marked as changed
...
From upstream 27a6bd6a13494cd670fb6749e5bd663f088487ea
2022-05-01 17:23:19 -07:00
Paul Gilbert
62ebde86a1
AGS: Gui controls draw themselves at requested offset
...
From upstream 9e9c8ffafe465b907ed0d22bcb1ba4df06803b8b
2022-04-29 22:20:40 -07:00
Paul Gilbert
c0c76de84a
AGS: An ugly workaround for legacy label linespacing
...
From upstream 9847f5b34abd7f3e5d3d1ca496ef2a991087e81e
2022-03-23 20:22:26 -07:00
Paul Gilbert
dc3ce9f70a
AGS: Renamed few font functions for consistent naming style
...
From upstream 9c355da410b734edc79212009a5e1be0b502c3b0
2022-03-22 22:30:13 -07:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+
2021-12-26 18:48:43 +01:00
Paul Gilbert
91fa6ee386
AGS: Removed check_font() from GUI, as font handling is now safer
...
From upstream dc24ac2493026cfecfd0664a057f61f99f4b28ae
2021-08-20 21:49:38 -07:00
Paul Gilbert
454cc0fff9
AGS: Properly move Lines global into Globals
2021-07-08 20:37:51 -07:00
Paul Gilbert
eb1e337edd
AGS: Removed String's "const char*" conversion operator
...
From upstream 7c426674e7e53bffe9120f8ffc059b77fa03a606
2021-06-13 21:08:59 -07:00
Paul Gilbert
701396361c
AGS: Import of fresh codebase
2021-06-13 21:08:44 -07:00