19 Commits

Author SHA1 Message Date
Ignacio R. Morelle
5902006c84 gui2: Make a label string translatable
(The string is already translatable in the same domain, so this
doesn't break the string freeze.)
2011-12-05 20:39:21 +00:00
Mark de Wever
6c1a5b7a2f Strip trailing spaces 2010-07-31 07:11:31 +00:00
Mark de Wever
33f6bb6f69 Deprecate the stretch parameter for images.
Late in the 1.8 cycle a resize mode was added, now is the time to start
to remove the old method.
2010-04-26 20:32:46 +00:00
Mark de Wever
93d68a73b6 Improve the tiny-gui version. 2010-01-03 10:38:25 +00:00
Mark de Wever
2f802be0af Switched back to the tiled background for gui2.
The tile background looks better and renders faster. The latter is
noticable in the new lobby, which becomes faster with this change.
2010-01-01 18:51:15 +00:00
Mark de Wever
ffb82c4110 Properly size the contents of the window.
This is a regression due to the scrollbars, noticed by ilor.
2009-11-03 20:28:46 +00:00
Mark de Wever
1459747252 Add better protection for images not fitting.
Some UMC uses listbox rowes with less than 20 pixes which caused images
to be resized to x - 20 which is negative and resulted into huge
positive numbers.

Modified the WML to return 0 in these cases and also added protection in
the engine to ignore those images. (The latter is needed since people
can create their own themes which might have this problem as well.)

Fixes bug #14525 and probably bug #14002.
2009-11-01 12:15:26 +00:00
Mark de Wever
6015818a54 Add fallback scrollbars if a window doesn't fit.
This shows the scrollbars when a window doesn't fit, the code is only
lightly tested but initial tests seem to work. More testing is needed
especially on the MP lobby.

It still shows some scrollbars too often, which will be fixed later.

Fixes bug #13180.
2009-10-26 21:22:24 +00:00
Mark de Wever
7fe3294f39 Moved the easy close behaviour to the window.
At some places click dismiss is used which will be the new name of the
feature since it's a more fitting name.
2009-09-08 20:12:05 +00:00
Guillaume Melquiond
9f50ddb060 Typo. 2009-06-14 15:56:18 +00:00
Mark de Wever
e9c3a0e64c Reanable blurring for the transient window. 2009-06-01 16:59:09 +00:00
Nils Kneuper
01c575209c add a textdomain declaration to every .cfg file...
...(via utils/change-textdomain -t)
2008-10-07 10:35:42 +00:00
Mark de Wever
b641844238 Cleanup the window definition. 2008-08-29 19:26:17 +00:00
Mark de Wever
ddc3769581 Cleanup patch to move macros in the string. 2008-08-29 19:26:12 +00:00
Ignacio R. Morelle
534e51c76b Fixed misspelled preprocessor directive (#unddef, should be #undef) 2008-08-15 22:36:01 +00:00
Mark de Wever
1b4dd7fd2e Change the window definition into a macro and add the common used types. 2008-06-24 16:29:56 +00:00
Mark de Wever
8bcb690932 Added stretch_surface_horizontal and stretch_surface_vertical.
The functions stretch a surface based on the first row/column. This
looks better for the widget borders as scale_surface and should be
faster (not tested).  Added the option to the widget library to use
these functions and convert the window borders to use the new option.
2008-04-10 16:52:18 +00:00
Mark de Wever
3967001cb7 Add positioning and scaling to an image on the canvas.
With this feature the window can look much more like the original so
also made that change.
2008-04-09 19:04:01 +00:00
Mark de Wever
13bab2587d Add the initial gui definitions. 2008-04-05 14:12:42 +00:00