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
Walter Agazzi
6b214f0477
AGS: Engine: fixed Buttons with invitem pic not redrawn on ActiveInventory
...
From upstream 37127b81ea4c006f8f79f11df746c24e4039f0ba
2023-08-13 10:58:26 +02:00
Walter Agazzi
d74aa04fc3
AGS: Common: fixed GUIButton::IsImageButton() not accounting for neg values
...
from upstream c684713cc3f87e2a8d2c863955bf8293d00a2f7b
2023-06-19 22:01:30 +03:00
Walter Agazzi
a32892578a
AGS: Common: fail early in negative index
...
from upstream 4d9f1788059b2fdadd3e957a5a260a918458595d
2023-03-12 20:58:27 +00:00
Thierry Crozat
06620b6e9f
AGS: renamed Button's MouseButton enum to avoid name confusion
...
Was conflicting with the internal engine's eAGSMouseButton constants.
From upstream a5cfccee2d3681b55dafb8cfb9e0f38f84124855
2022-10-10 00:16:16 +01:00
Paul Gilbert
c54f4d1c10
AGS: Guibutton, removes non-updated comment
...
From upstream 50f1677770e54eb4a5d366a936ffb8366a0432eb
2022-05-10 21:18:00 -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
211abe3744
AGS: Implemented HasAlphaChannel() in GuiButton and GuiSlider
...
From upstream 05999579489e427b7df7a01bab9643b6677d5afb
2022-05-01 17:23:21 -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
e4a6bd71f6
AGS: Option to clip GUI Controls' contents to their rect
...
From upstream 6c2612eb087924255a04d2da1dc1d5c8559d28b3
2022-04-10 19:39:06 -07:00
Paul Gilbert
3425f8faf2
AGS: Moved couple of gui-related global vars into GuiOptions struct
...
From upstream 973d238a2c20368d8932ade22d2965d121cb7793
2022-04-10 19:39:06 -07:00
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+
2021-12-26 18:48:43 +01:00
Paul Gilbert
50c59252c7
AGS: Added Bitmap::ResetClip() for simpler unsetting of clipping
...
From upstream a0ad337a24ec2c25822949494c717529c57e56c3
2021-08-20 21:49:39 -07:00
Paul Gilbert
6a8f1f9a71
AGS: More accurate notification of GUI control changes for redrawing
...
From upstream fd7cb8dc822e50cc485aa0dfc937217ead1cb996
2021-08-20 21:49:38 -07: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
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