Commit Graph

45 Commits

Author SHA1 Message Date
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Eugene Sandulenko
b9a2753c2c
GUI: Fix compilation with LAYOUT_DEBUG_DIALOG enabled 2021-11-21 20:00:08 +01:00
Eugene Sandulenko
9e746e04f2 GUI: Always scale padding 2021-04-11 21:21:44 +02:00
SupSuper
49dce75a51 GUI: Default new widgets to useRTL = true
This corrects the RTL layout of widgets created in code
such as engine options.
2021-01-28 13:14:51 +00:00
aryanrawlani28
51d95f8978 GRAPHICS: move start + end to Graphics::TextAlign 2020-06-22 00:03:02 +02:00
BLooperZ
4fc9c11bbe GUI: use start + end for static widgets 2020-06-22 00:03:02 +02:00
aryanrawlani28
dde4200d35 GUI: RTL: Overload and simplify getWidgetData for getting rtl flag 2020-06-22 00:03:02 +02:00
aryanrawlani28
07ab77d065 GUI: RTL: Get internal widget RTL flag from theme 2020-06-22 00:03:02 +02:00
Eugene Sandulenko
6aacdb1938 GUI: Normalize width/height parameters
The fact that ThemeLayout had them int, and GuiObject as uint, was
leading to number of unexpected overflows.
2020-05-09 21:59:07 +02:00
Bastien Bouclet
8ae288c52f GUI: Allow defining layouts programmatically with a chaining syntax 2020-03-28 07:38:39 +01:00
Bastien Bouclet
94344ccf8e GUI: Allow providing an explicit size for screen_center dialogs
Without an explicit size the layout system does not have enough
constraints to produce nice looking dialogs. Up until now the workaround
was to set explicit an size for some of the widget. This worked well
enough except when resizing down the window up until the widget size
constraints could no longer be enforced. At that point, produced layouts
looked too squished.
2020-02-22 13:14:04 +02:00
Bastien Bouclet
346d53b034 GUI: Add finer control over cross-direction alignment for layout items
Previously it was only possible to specify whether items where aligned
to the start or centered in the cross direction of the layouts. It is
now additionally possible to align the items to the far end of the cross
direction or to resize them to match the size of the layout.

Terminology and behavior are loosely based on CSS's flexbox containers.
2020-01-04 10:56:25 +01:00
Bastien Bouclet
c0d8b6d9fc GUI: Introduce dynamic layouts
Prior to this change, a GUI layout was only affected by the screen size.
Now, a layout can additionally be influenced by the GUI dialog and widgets
that uses it. This capability is leveraged to implement the following
features:

* Layout elements that are not bound to a GUI widget do not take space.
   This means that dialogs where the widgets shown depend on for example
   a feature being enabled at configure time no longer have blank spaces.
* Widgets can define a minimal required size for their contents not to be
   cut. For now this is only used for buttons so their width is always
   sufficient for their caption not to be cut. This mechanism could be
   applied to other widget types in the future.
2020-01-04 10:56:25 +01:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Ori Avtalion
9414d7a6e2 JANITORIAL: Reduce header dependencies in shared code
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Max Horn
484bf9c269 ALL: Fixup some #define names
svn-id: r52935
2010-09-28 20:30:50 +00:00
Eugene Sandulenko
b0db1b5ed0 Implement FR#2507667: "GUI: Improve PopupWidget rendering / theme layouting".
- Split out label from PopUp widget
- Aligned every widget on all layouts so GUI becomes to look nice again
- Moved textHAlign to layout properties

svn-id: r41266
2009-06-06 17:52:44 +00:00
Eugene Sandulenko
b0f7f2e8d4 Implement widget property "textalign". Added it to all theme layouts
svn-id: r41265
2009-06-06 17:51:41 +00:00
Jordi Vilalta Prat
b1999a2a16 Fixed indentation and removed whitespaces at the end of line
svn-id: r35481
2008-12-22 11:22:15 +00:00
Max Horn
f5b70114ca Removed many unnecessary #includes
svn-id: r34959
2008-11-09 15:14:01 +00:00
Max Horn
7cbd04dc23 Thou shalst never use the 'using' keyword in a header file, lest the wrath of ye fingolfin will crush your sorrow bones to dust... *grrr* ;)
svn-id: r34937
2008-11-08 01:34:02 +00:00
Max Horn
4a56e0d9c1 Merged ThemeEngine::themeEval() and ThemeEngine::evaluator() methods into a single getEvaluator() method
svn-id: r34789
2008-10-12 22:25:35 +00:00
Vicent Marti
dcc72fe29e Massive refactoring/cleanup on the theme engine/parser.
svn-id: r34285
2008-09-02 17:51:08 +00:00
Vicent Marti
784c1114cc Deprecated support for "direction" layout keys.
svn-id: r33904
2008-08-15 16:44:44 +00:00
Vicent Marti
0bf2187039 Finished GUI layout in g1x.
svn-id: r33818
2008-08-13 10:42:01 +00:00
Vicent Marti
559c19e9f4 Bugfix: Inverse layout reflowing.
Bugfix: Glitches with several layouts when using Aspect Ratio Correction.

svn-id: r33764
2008-08-10 18:26:14 +00:00
Vicent Marti
185dbbe84d Finished support for theme loading.
Fixed several bugs regarding theme loading.

svn-id: r33728
2008-08-09 22:40:05 +00:00
Vicent Marti
ea69217a13 Fixed 1.000.000 Valgrind warnings.
svn-id: r33711
2008-08-09 14:15:34 +00:00
Vicent Marti
dab1fa0942 Resolution-dependence in XML files.
G1X scaler GUI now loads. Added layout for the launcher menu.
MILESTONE: All core GUI dialogs/widgets working on G2x/G3x
MILESTONE: Completely removed old Evaluator/Parser.
Improved layout expanding again.
Improved XML parser.
Several bugfixes.

svn-id: r33704
2008-08-08 18:30:16 +00:00
Vicent Marti
3ca6f76f7b Browser dialog.
Improved layout expansion in the layout parser.
Fixed serious coordinates initialization bug.

svn-id: r33702
2008-08-08 15:06:28 +00:00
Vicent Marti
1ea3301a8a SCUMM save/load dialog.
Expanded documentation.
Added support for sub-blitting in the vector renderer.

svn-id: r33697
2008-08-08 10:37:58 +00:00
Vicent Marti
39c28e434b SCUMM general and options dialog.
Misc fixes.

svn-id: r33692
2008-08-07 23:23:21 +00:00
Vicent Marti
21989844a9 Game Options menu parsing.
Added support for importing layouts inside other layouts.
Misc bugfixes.

svn-id: r33676
2008-08-07 10:53:33 +00:00
Vicent Marti
bd0cdd0f74 Cleanup on default theme.
Added support for Widget Type Declaration (makes XML much cleaner).

svn-id: r33661
2008-08-06 14:28:37 +00:00
Vicent Marti
4095f2eea9 Bugfix: Text selection background in list widget overlays scrollbar (finally).
Bugfix: Game list missing one entry.

svn-id: r33658
2008-08-06 13:58:07 +00:00
Vicent Marti
ef7a14dbe2 Options menu fully parsed. Needs tweaking.
svn-id: r33657
2008-08-06 10:50:28 +00:00
Vicent Marti
4256c35791 Options menu layout parsing, featuring the brand new FATPOPUPS.
svn-id: r33651
2008-08-05 23:58:45 +00:00
Vicent Marti
eb3d163439 Look, the launcher is rendered with the new layout parser.
svn-id: r33641
2008-08-05 16:23:17 +00:00
Vicent Marti
70ef503434 Massive refactoring on the layout parsing API.
Added support for layout spacings.
Fixed bug in theme conversion python script.

svn-id: r33630
2008-08-05 09:54:36 +00:00
Vicent Marti
dd46f8305e Layout parsing. Work in progress. Looks like a GUI!
svn-id: r33616
2008-08-04 17:44:18 +00:00
Vicent Marti
85c36885f5 Theme layout parsing. Work in progress.
svn-id: r33613
2008-08-04 16:59:55 +00:00
Vicent Marti
a15ebfb73a Theme Layout parsing, WIP.
svn-id: r33494
2008-08-01 15:45:02 +00:00
Vicent Marti
1cee289fbc Added missing ThemeEval header.
svn-id: r33480
2008-07-31 20:26:40 +00:00
Vicent Marti
661378918e Fixed SVNMerge trash which got commited in last fix.
svn-id: r33479
2008-07-31 20:23:01 +00:00
Vicent Marti
e8278c4c68 GUI Layout parsing. Work in progress.
svn-id: r33475
2008-07-31 17:23:38 +00:00