-
Notifications
You must be signed in to change notification settings - Fork 0
Gui Window Size
When SAVESETSIZE is enabled in the Global Config (e.g. via Global Menu) (by default it is), resolution changes of every tinkergame window are automatically saved
when the corresponding window is closed. This function requires xwininfo to work.
The config files are either used globally or per game, depending on the configuration:
if USEGENGUICFG is disabled, the window sizes are stored per game into $STLGUIDIR/${SCREENRES}/${AID}/$WINDOWTITLE.conf
using $STLGUIDIR/${SCREENRES}/template/$WINDOWTITLE.conf as template;
if USEGENGUICFG is enabled, only $STLGUIDIR/${SCREENRES}/template/$WINDOWTITLE.conf is used.
If the template config $STLGUIDIR/${SCREENRES}/template/$WINDOWTITLE.conf is not available yet either, tinkergame checks if it has its own system-wide
template in /usr/share/tinkergame/guicfgs/${SCREENRES}/template/$WINDOWTITLE.conf.
If that is missing too, a basic initial window size is guessed based on the current screen resolution.
As the user-customized size is saved immediately, this should be more than enough.
To sum it up: every window by default has its own config file per game and resolution, which is updated automatically when it changes (only width and height for now)
To save the resolution of the currently open window as a template, the Tray-Icon can be used. After the button has been activated, the template will be updated as soon as the window is closed.
As usual, windows can be resized either via the window decoration or by holding Left-Alt and the right mouse button while resizing. The window decoration can be toggled in the Global Menu or directly in the Global Config
See also GUI-Columns
Feel free to contribute missing or improved templates, e.g. for other resolutions.
Quick Links
- Changelog
- Installation
- Usage
- Main Menu
- Global Menu
- Tray Icon
- Modding
- Platform-Specific Documentation
- Tweaks
- Utilities
- Advanced