Age | Commit message (Collapse) | Author |
|
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.
|
|
DropdownButtonWidget is a button split in two parts vertically. Clicking
the left part triggers a default action. Clicking the right part shows a
list of other actions the user can choose from.
Using this widget on the launcher lets 'Mass add' be a secondary action
of the 'Add' button, removing the necessity of pressing the shift key to
access the feature.
|
|
|
|
|
|
|
|
It was never used since its introduction 4 years ago
It was not updated to work with the clipping rect
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Prints a warning if clipping area is invalid and fixes it.
|
|
|
|
|
|
This feature made pressed buttons wait a few moments before returning to
an unpressed state. It was half-implemented, and caused several visual
bugs. Fixes #7083.
|
|
|
|
Keep track of where a mouse press started when deciding how mouse-over
and mouse-up should behave.
This handles the following situations:
1) If a mouse press starts outside a button (e.g. the UI background),
mouse-up inside the button has no effect. Previously, it triggered a
button click.
2) If a mouse press starts inside a button, the cursor moves outside of
its region, then back inside, the button will show as pressed.
Previously, it showed as highlighted instead of pressed.
|
|
|
|
|
|
Now it is possible to add sub widgets to a ContainerWidget and allow for these
to get events too.
|
|
chooser.
|
|
|
|
PicButtonWidget and GraphicsWidget.
Only 1Bpp aka paletted surfaces are not supported.
|
|
|
|
The buttons in the keymapper are dynamically generated and don't exist in
the layout; They have no name.
|
|
This is so it can be used outside options.cpp
|
|
|
|
|
|
|
|
Some backends may break as I only compiled SDL
|
|
This widget is only currently used by Hugo.
svn-id: r55364
|
|
It is a button with picture intead of text. To be used by Hugo engine
svn-id: r55099
|
|
With help of Tanoku tooltips were switched from widgets to dialogs
which helped to fix nasty bug with background not being restored.
Although it is basically a hack around inconsistent font backbuffering
in our GUI code, for the time being it is feasible.
The patch was extended with way to specify tooltip background in the
theme file.
svn-id: r51217
|
|
svn-id: r51094
|
|
FR #2821513: "GUI: add tooltips".
Added tooltips for Add Game button, clear field buttons and couple
other.
Current problem: Only first call correctly restores text. I could
not find where restore information gets lost.
svn-id: r49774
|
|
Implement radiobuttons in GUI. Also closes FR #2821529:
"GUI: volume and subtitles speed sliders".
Subtitle toggle button is replaced by three radiobuttons grouped
by a single group.
Updated translations and themes.
svn-id: r49767
|
|
Now it is possible to specify hotkeys in place for ButtonWidget
and CheckboxWidget (the only widgets with hotkeys now).
Use de-facto standard with putting hotkey between tildes (~).
Like '~O~pen'. The tildes gets stripped before after hotkey
is extracted.
This is done for giving translators possibility to specify
their own hotkeys.
Old hotkeys defined at widget instance creation are left for
leaving possibility to specify non-printable hotkeys such as
Common::ASCII_ESCAPE.
Translation files were updated respectively.
svn-id: r49766
|
|
svn-id: r48240
|
|
svn-id: r40867
|
|
flag WIDGET_IGNORE_DRAG.
svn-id: r35662
|
|
svn-id: r35572
|
|
before (as discussed with LordHoto)
svn-id: r35519
|
|
svn-id: r35513
|
|
GUI::ThemeEngine::TextAlignVertical
svn-id: r35023
|
|
svn-id: r35022
|
|
svn-id: r35018
|
|
Massive cleanup.
svn-id: r34983
|
|
svn-id: r34936
|