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.
|
|
Drawing nows happens directly when the Dialog or Widget draw methods are
called. This makes it easy to debug why a particular low level draw
method was called, by inspecting the call stack.
This replaces the notion of "buffering" by two independant ways to
control what is drawn and where:
- The active layer is used to select whether the foreground or
background part of the dialogs are rendered by the draw calls.
- The active surface is used to select if the draw calls affect the back
buffer or the screen.
The foreground layer of the active dialog is drawn directly to the
screen. Its background layer is drawn to the back buffer. This way
widgets can restore the back buffer in order to update without having to
redraw the dialog's background.
Dialogs lower in the dialog stack are drawn entirely to the back buffer.
|
|
|
|
|
|
Similar (fix) to bug #6739
|
|
|
|
|
|
GUI_ONLY_FULLSCREEN
|
|
|
|
|
|
|
|
|
|
Powered by:
git ls-files "*.cpp" "*.h" "*.m" "*.mm" | xargs sed -i -e 's/[ \t]*$//'
|
|
It is in spirit of the DOS version's selection dialog, but it has the
description above the buttons instead of below it.
|
|
|
|
For this I added a convenience version of getLanguageYesNo, which works on the
currently setup GUI translation language. All other code which requires this
acan also use it instead of having to worry about the USE_TRANSLATION and thus
having two code paths.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
svn-id: r55850
|
|
svn-id: r54265
|
|
Also renamed the source/header files, now they are more closely
aligned to how we rename most other source files
svn-id: r54264
|
|
svn-id: r54001
|
|
svn-id: r53829
|
|
svn-id: r52715
|
|
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
|
|
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
|
|
The new "Help" button in the GMM is currently only used by SCUMM.
To use it, an engine currently needs to subclass MainMenuDialog.
svn-id: r49249
|
|
svn-id: r48564
|
|
svn-id: r48562
|
|
svn-id: r48561
|
|
svn-id: r48241
|
|
svn-id: r48142
|
|
engines + GUI and proper keypad handling
svn-id: r48101
|
|
dummy name, which didn't exist in the theme config and later on just calculated the size on their own...)
svn-id: r47057
|
|
implementing its own, which resulted in code duplication.
svn-id: r43552
|
|
issue before I wrote this code, after reverting it for more testing, I couldn't reproduce it anymore. Probably it was some random problem, at least this code should now assure the "Save" button's state is always matching the return value of ScummEngine::canSaveGameStateCurrently.
svn-id: r43436
|
|
svn-id: r43431
|
|
svn-id: r42671
|
|
Now we specifically disallow saves in room 0 for all v4+ games. Original
has exactly this check in all versions, and such games are impossible to load.
Still the problem is not resolved for v0-v3 and HE games.
svn-id: r42664
|
|
instead of tabs for indentation -.-)
svn-id: r42539
|
|
svn-id: r42538
|
|
svn-id: r42537
|
|
svn-id: r38819
|
|
Fixed key mappings dialog layout
svn-id: r36285
|
|
function needs to know the dimensions of the dialog, so don't call it until after
calling Dialog::reflowLayout().
svn-id: r35805
|
|
gui/GuiManager.h
svn-id: r35668
|