Commit graph

736 commits

Author SHA1 Message Date
Mark de Wever
d2d866cdc1 Allow text wrapping in the transient dialog.
Found during a code review, also reported by Shadowmaster and reported
in bug #17945.
2011-03-26 12:43:07 +00:00
Mark de Wever
925d897241 Polish the tmp_login class.
- Use the new register functions.
- Updated wiki comment.
- change the scroll_label by a wrapping label.
2011-03-13 07:49:40 +00:00
Mark de Wever
71c0db2a12 Strip trailing whitespace. 2011-03-06 18:27:59 +00:00
Mark de Wever
7cb892abff Add tooltips to avoid WML warnings.
Introduced by 2011-03-06T08:28:23Z!koraq@xs4all.nl, but didn't want to mix the revert new code.
2011-03-06 08:30:41 +00:00
Mark de Wever
360ade6068 Revert the entire new messages stuff.
The main reason for reverting are:

The stuff has hampered my development for almost a month now, including
forcing me to delay things I need to/want to work on.

The recruit dialog looks very ugly on 1024x768 since it doesn't fit entirely
on the screen. It's still usable, but lowering the height of the main window
makes the dialog unusable.

The code includes several new wml errors:

"Invalid WML found: Window builder: parsing resolution tip with empty 'id'
field. Will become mandatory in 1.9.7. (4)"

The unit tests are broken, and instead of being fixed properly their
code is being `fixed' by disabling tests. 2011-03-05T20:39:56Z!fabianmueller5@gmx.de indicates it
should fix the unit tests, but it doesn't so the code seems
untested. Which means I still can't use the tests for other code I
want to commit.

In 2011-03-05T09:12:02Z!fabianmueller5@gmx.de fendrin commits not working code with the goal to
force me to help him, which I consider bad practice, show the code in
a pastebin if you want help. I want to work on things when _I_ choose
to, and not being coerced to by committing bad code.

Commit 2011-03-05T12:04:13Z!fabianmueller5@gmx.de throws private _GUI* macros in a global header,
which might break other code in unexpected ways. The file modified
even contains the documentation regarding how to use GUI* and _GUI*
macros. And another remark that I should look at fixing the issue.

So I had enough of this stuff; it's incomplete, buggy and hampers the work
of at least one other developer for several weeks now.

Reverts fendrin's commits:

2011-02-11T19:01:16Z!fabianmueller5@gmx.de
2011-02-12T06:25:47Z!fabianmueller5@gmx.de
2011-02-12T16:43:20Z!fabianmueller5@gmx.de
2011-02-12T17:37:40Z!fabianmueller5@gmx.de
2011-02-12T18:36:30Z!fabianmueller5@gmx.de
2011-02-12T19:59:34Z!fabianmueller5@gmx.de
2011-02-12T20:47:43Z!fabianmueller5@gmx.de
2011-02-12T21:41:35Z!fabianmueller5@gmx.de
2011-02-12T22:35:15Z!fabianmueller5@gmx.de
2011-02-14T19:24:40Z!fabianmueller5@gmx.de
2011-02-14T20:55:55Z!fabianmueller5@gmx.de,
2011-03-02T18:59:59Z!fabianmueller5@gmx.de
2011-03-03T13:34:48Z!fabianmueller5@gmx.de
2011-03-03T13:56:10Z!fabianmueller5@gmx.de
2011-03-03T17:32:49Z!fabianmueller5@gmx.de
2011-03-04T00:52:26Z!fabianmueller5@gmx.de
2011-03-04T11:27:39Z!fabianmueller5@gmx.de
2011-03-04T11:28:48Z!fabianmueller5@gmx.de
2011-03-05T09:12:02Z!fabianmueller5@gmx.de
2011-03-05T11:16:09Z!fabianmueller5@gmx.de
2011-03-05T11:19:37Z!fabianmueller5@gmx.de
2011-03-05T11:21:19Z!fabianmueller5@gmx.de
2011-03-05T11:32:25Z!fabianmueller5@gmx.de
2011-03-05T11:47:30Z!fabianmueller5@gmx.de
2011-03-05T12:00:39Z!fabianmueller5@gmx.de
2011-03-05T12:01:22Z!fabianmueller5@gmx.de
2011-03-05T12:02:03Z!fabianmueller5@gmx.de
2011-03-05T12:02:46Z!fabianmueller5@gmx.de
2011-03-05T12:04:13Z!fabianmueller5@gmx.de
2011-03-05T12:05:02Z!fabianmueller5@gmx.de
2011-03-05T12:20:25Z!fabianmueller5@gmx.de
2011-03-05T12:24:39Z!fabianmueller5@gmx.de
2011-03-05T13:56:43Z!fabianmueller5@gmx.de,
2011-03-05T16:32:38Z!fabianmueller5@gmx.de
2011-03-05T16:34:34Z!fabianmueller5@gmx.de
2011-03-05T16:35:17Z!fabianmueller5@gmx.de
2011-03-05T20:39:56Z!fabianmueller5@gmx.de
2011-03-05T22:17:03Z!fabianmueller5@gmx.de
2011-03-05T22:29:29Z!fabianmueller5@gmx.de.

Also reverts a build system change that is no longer needed:

2011-03-05T16:35:04Z!anonymissimus@arcor.de
2011-03-06 08:28:23 +00:00
Fabian Müller
91ef55e1e7 Adjusted the button placement. 2011-03-05 22:29:29 +00:00
Fabian Müller
28ee828a3c Adjusted the position and layout of the recruit dialog. 2011-03-05 22:17:03 +00:00
Fabian Müller
0b82ea29bc Preliminary fix to support recruiting at low resolutions. 2011-03-05 16:35:17 +00:00
Fabian Müller
f4db8534b7 Switched to scalled images, still not working. 2011-03-05 16:34:34 +00:00
Fabian Müller
ab32959395 Got rid of the config for the old wml_message dialog. 2011-03-05 12:05:02 +00:00
Fabian Müller
3e96305e73 Added macros from the old wml_message.
mordante, do you know a better place for them?
2011-03-05 12:04:13 +00:00
Fabian Müller
d0f6d7d2f7 Code cleanups. 2011-03-05 11:32:25 +00:00
Fabian Müller
18631914f8 image_definition for scaled unit portraits, not working. 2011-03-05 11:21:19 +00:00
Fabian Müller
2136baba2a Demonstration commit to gain help from mordante 2011-03-05 09:12:02 +00:00
Fabian Müller
af7a57c30a WML for the recruit gui2 dialog. 2011-03-04 11:27:39 +00:00
Mark de Wever
2dc8c91a61 Convert the debug clock to a non modal dialog.
This is just a test case also enables a helptip for the hour progress
bar.
2011-02-20 09:05:58 +00:00
Mark de Wever
4e30569988 Add helptip information to the tooltip.
When a widget has both a tooltip and helptip a small text to notify
the user about it. This also means when there is a helptip the tooltip
needs to have a text.
2011-02-20 07:26:05 +00:00
Fabian Müller
2d01566730 Fix the unit tests for gui2. 2011-02-14 20:55:55 +00:00
Fabian Müller
836d86b65f Tried another grouping of the buttons to allow lower resolutions 2011-02-14 19:24:40 +00:00
Mark de Wever
86174bca3c Add tooltips and helptips to all windows.
All use the basic default now, this will need some window based tuning
later on.
2011-02-13 18:41:58 +00:00
Fabian Müller
a3caa30a09 Resolved naming conflict. 2011-02-12 22:35:15 +00:00
Fabian Müller
cf921d70f9 Config file for the image message dialog. 2011-02-12 21:41:35 +00:00
Mark de Wever
c61bea3404 Remove the now unused tooltip widget. 2011-02-12 21:36:38 +00:00
Fabian Müller
3fe7c28c3d Finetuned the recruit dialogue. 2011-02-12 06:25:47 +00:00
Mark de Wever
813f103b15 Add a new tooltip implementation.
It's based on a new base class for popup windows. It also fixes the not
properly undrawing problem.
2011-02-11 19:50:23 +00:00
Fabian Müller
7725e75a07 Implemented the [unit_input] message subtag...
...and replaced the old recruit dialog with a gui2 one.
2011-02-11 19:01:16 +00:00
Jörg Hinrichs
9afd2aca23 Introduce line breaks for OOS-dialog. 2011-02-10 21:20:45 +00:00
Mark de Wever
46eb1e052d Add a circle to the debug clock.
Doesn't look too great, but the window is for debug testing only.
2011-02-07 19:42:09 +00:00
Mark de Wever
8dc0c1e343 Rename gui2 wml colour to color. 2011-01-10 20:38:49 +00:00
Mark de Wever
8c069aef70 Fix maximium portrait height.
Fixes bug #17399, also adds some more debug information.
2011-01-08 20:40:38 +00:00
Mark de Wever
d8b025e716 Add a new debug clock dialog.
The dialog is used to test the drawing routines. The clock will need
some appearance changes later on. It's main goal is to test the drawing
routine timing and several other things I want to test in the near
future, where I want to see what parts get updated.
2010-12-26 17:07:48 +00:00
Ignacio R. Morelle
198bba9ec4 GUI2: taddon_description: formula cleanup 2010-12-26 14:26:21 +00:00
Ignacio R. Morelle
c514d77361 GUI2: taddon_description:
Un-hardcode max icon size of 72x72 and avoid scaling smaller icons
(attacks/, etc.)
2010-12-26 14:19:58 +00:00
Mark de Wever
119349b09e Add drawing widget.
This widget allows to customize drawing the widget in the window definition.
The widget has, like the spacer a fixed best size.
2010-12-23 20:05:37 +00:00
Ignacio R. Morelle
979f2e4e69 GUI2: taddon_description: merge 2/2 2010-12-21 21:08:58 +00:00
Ignacio R. Morelle
e7b7abe209 GUI2: New add-ons description dialog...
...with more details than the description (merge 1)
2010-12-21 21:08:36 +00:00
Mark de Wever
56579c4972 Allow the progress bar to become higher. 2010-12-21 20:43:15 +00:00
Mark de Wever
328e5541f6 Fix the progress bar colours.
Forgot to add the alpha value, which made the objects fully transparent.
2010-12-21 20:43:10 +00:00
Mark de Wever
f001feb9b2 Fix some typos in the formulas. 2010-12-21 20:43:07 +00:00
Ignacio R. Morelle
586e938c10 Remove an empty file 2010-12-09 12:46:18 +00:00
Ignacio R. Morelle
01197b0325 Fix alignment of labels in certain confirmation dialogs (e.g. Quit) 2010-12-08 20:59:49 +00:00
Lari Nieminen
60ddac72af Reverted 2010-12-08T14:35:26Z!lari.nieminen@iki.fi since actually it didn't make any sense after all. 2010-12-08 16:26:57 +00:00
Lari Nieminen
4a43a89c15 Made images in messages be placed 10px above the bottom edge...
...of the screen if they're <250px high (and thus not portraits),
horizontally centered all images on the available space instead of
aligning images >100px wide to the left edge, and probably fixed the
image centering not working on right-side images.
2010-12-08 14:35:26 +00:00
Ignacio R. Morelle
96fe64e785 GUI2: Set a max width for tedit_label 2010-12-07 22:10:44 +00:00
Ignacio R. Morelle
121b4b48f4 GUI2: Set a max width for tcampaign_difficulty 2010-12-07 22:10:29 +00:00
Ignacio R. Morelle
a4b859cb2a GUI2: Set a max width for tsimple_item_selector
(These really need to be macroified...)
2010-12-07 22:10:13 +00:00
Ignacio R. Morelle
a3fda67a19 GUI2: Replace a couple of cases of label...
...with scroll_label to wrap long text
2010-12-07 22:09:59 +00:00
Ignacio R. Morelle
95667feed3 Convert the MP create game-set password dialog to GUI2 2010-12-07 21:49:53 +00:00
Mark de Wever
82ab772179 Improved the portrait width in the wml_message.
The width of a portrait is 1/3 of the text width until it reaches the
maximum portrait width. This change also looks whether the maximum
text width has been reached, once reached the portrait no longer takes
1/3 but all width available.

This change means that portraits reach their maximum size at a smaller
resolution. The issue was brought to my attention by zookeeper.
2010-11-29 21:18:50 +00:00
Ignacio R. Morelle
0166cc06e3 GUI2: Remove Generate Name option from the --new-widget unit-create dialog
It's useless now that units get names by default.
2010-11-29 20:12:47 +00:00