Commit Graph

354 Commits

Author SHA1 Message Date
Mark de Wever
c636eaf402 Protect against no savegame selected in the list.
The filter can filter out all savegames, then the preview pane shouldn't
try to access an invalid index.
2009-12-20 19:35:13 +00:00
Mark de Wever
62669692b2 Use repeating buttons in the scrollbars. 2009-12-13 18:13:22 +00:00
Mark de Wever
bd83d922f5 Add a new repeating button widget.
A repeating button is button when pressed down will execute an action,
if the user keeps it pressed down for a longer time it will repeat
this action until released.

The main place where the widget was missed is the MP lobby, I haven't
tested it there much since the lobby is still to slow. This means once
the lobby is fast enough it needs more tuning.

The widget hasn't been wired in the scrollbars, which will be done in
the next commit.
2009-12-13 18:09:38 +00:00
Guillaume Melquiond
fad64d1df0 Made gui2 use the same tooltip settings as gui1. 2009-12-06 17:14:56 +00:00
Mark de Wever
09742a0832 Remove the explicit setting of initial_auto.
Since the last commit it's the default so no need to set it explicitly.
2009-11-27 20:41:16 +00:00
Mark de Wever
8a36972b28 Don't reserve space for scrollbars in a message.
Shadow_master discovered the problem that message dialogs always reserve
space for a scrollbar, also when the bar isn't used.
2009-11-27 19:39:54 +00:00
Tomasz Śniatowski
baa88c9100 hide the non-functional help button in new lobby 2009-11-17 14:39:46 +01:00
Mark de Wever
31bb203d0a Another small mp lobby size improvement.
The chatlog now really fills the wanted area.
2009-11-15 14:02:49 +00:00
Mark de Wever
9dd4087d78 Let the player area grow.
After it's fully grown it's possible to let the list do it's own
resizing.
2009-11-15 12:51:58 +00:00
Mark de Wever
a49b6147b4 Don't reserve space for the scrollbars. 2009-11-15 10:10:27 +00:00
Mark de Wever
d6db02c284 Set the scrollbar mode for the MP lobby chatlist. 2009-11-14 21:43:54 +00:00
Mark de Wever
a90d22b94b Add a special label for the scroll_label.
The old label was always centred which looked bad if the label is larger
as needed, now it's always starting on top.
2009-11-14 19:49:23 +00:00
Mark de Wever
e53fb069cc Properly initially size the MP chat log. 2009-11-14 19:20:27 +00:00
Mark de Wever
1c8638c55d Properly set the grow behaviour of the multi page. 2009-11-14 19:20:19 +00:00
Mark de Wever
73a9e41a15 Change log_text to a scroll_label in the lobby.
This simplifies the code.
2009-11-14 19:20:06 +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
e663226f19 Fix the new-widgets addon list dialog.
This was probably broken by the commit that sets the id of the window
definition to the instance, didn't test it but quite sure.
2009-10-26 21:01:55 +00:00
Mark de Wever
0ddb237dc6 Revert 2009-10-14T21:36:49Z!koraq@xs4all.nl.
Don't try to switch branches when git svn dcommit is still running...
2009-10-14 21:47:24 +00:00
Mark de Wever
625cd7be9f WIP 2009-10-14 21:36:49 +00:00
Ignacio R. Morelle
308d29ec07 Disable (gray out) the Update and Remove add-ons options...
...in the connection dialog when there are no add-ons installed.
2009-09-24 21:35:18 +00:00
Iurii Chernyi
aee65c442e new features for gamestate_inspector 2009-09-19 22:03:41 +00:00
Mark de Wever
631ad1af74 Revert "DON'T COMMIT crab's WIP."
This reverts commit 38653.
2009-09-14 19:37:33 +00:00
Mark de Wever
5d73712360 DON'T COMMIT crab's WIP. 2009-09-14 19:34:35 +00:00
Mark de Wever
a299db046d Rename easy_close to click_dismiss.
I never was really happy with the old name, but didn't have a better
alternative. Now I have so rename the stuff.
2009-09-08 20:12:11 +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
Iurii Chernyi
2bac79fad0 new 'inspect' debug command, new [inspect] debug tag,
...new gamestate inspector dialog (prototype)
2009-09-05 11:02:23 +00:00
Mark de Wever
19573e882d Several layout fixes for the game load dialog. 2009-08-26 20:57:39 +00:00
Jörg Hinrichs
2ce2e58d93 Improve the layout of the game-load dialog. 2009-08-26 19:55:45 +00:00
Mark de Wever
9d04c8500f Add a horizontal listbox. 2009-08-23 12:20:06 +00:00
Ignacio R. Morelle
b4dd617f54 GUI2 debug mode unit-create dialog:
Added male/female toggle buttons, name generation toggle, listbox. The
listbox should get filled with unit types now. Basically all the dialog
works except for a SDL issue with a toggle button which causes an
assertion failure before being displayed.
2009-08-19 18:29:24 +00:00
Mark de Wever
d4b3f25b04 Remove some obsolete WML again. 2009-08-18 18:16:32 +00:00
Tomasz Śniatowski
be0bd671d9 put the disclosure triangle in front of the group name in newlobby 2009-08-18 00:17:58 +01:00
Mark de Wever
bfe26da52a Remove some obsolete WML. 2009-08-17 18:56:09 +00:00
Iurii Chernyi
498c4f8977 Formula AI Debugger (uses --new-widgets ) 2009-08-17 15:06:13 +00:00
Tomasz Śniatowski
f438451acd reduce gui2 tooltip delay to 200ms.
1500 is long enough that some people would assume there are no
tooltips at all.
2009-08-16 15:42:37 +01:00
Tomasz Śniatowski
4e15da49c8 Lobby icon update, icons taken from forum lobby icon request topic.
- JAP's ums2 icon (as ums.png)

- Zarael's fog/shroud icons (modified to add transparency)

- Zarael's disclosure triangles, key and qmark reload icon (modified
  with transparency)

- Zarael's A-Z sort icon, modified with transparency and with
  desaturated version as "off" icons

- group effort relation sort icon, with desaturated version as "off" icons
2009-08-16 10:31:06 +01:00
Ignacio R. Morelle
8d77912423 WIP unit-create dialog (debug mode only) using GUI2.
It is only used with --new-widgets for now. If you open it you'll have
to use ESC since there are no OK or Cancel buttons yet.
2009-08-14 20:32:33 +00:00
Mark de Wever
fb08fa3e20 The widget in a stacked widget now grows properly. 2009-08-09 19:52:28 +00:00
Mark de Wever
e661d2f4c1 Added experimental listbox grow support.
This allows a listbox to grow, but keep the unused area blank instead of
trying to allocate it for it's content. The feature had minimal testing,
but ran into a problem that the stacked widget doesn't let the room
grow. This needs to be fixed before testing further.
2009-08-09 15:15:11 +00:00
Mark de Wever
c79d2f4e4e Convert listbox to new linked widget style. 2009-08-09 15:15:01 +00:00
Mark de Wever
665711baf8 Convert listbox to new linked widget style. 2009-08-09 08:37:06 +00:00
Mark de Wever
94b612bb82 Convert listbox to new linked widget style. 2009-08-09 08:37:01 +00:00
Mark de Wever
746b5c2608 Convert listbox to new linked widget style. 2009-08-09 08:36:57 +00:00
Mark de Wever
0db4278602 Convert listbox to new linked widget style. 2009-08-09 08:36:53 +00:00
Mark de Wever
a94816c285 Convert listbox to new linked widget style. 2009-08-09 08:36:48 +00:00
Mark de Wever
8626347798 Rename the label field to message. 2009-08-09 08:36:43 +00:00
Tomasz Śniatowski
1a934ac94b rename editor2 -> editor. Old editor is long dead, long live the new editor! 2009-08-08 12:14:58 +01:00
Tomasz Śniatowski
3edb87f0de gamelistbox horizontal adjustments 2009-08-05 19:29:01 +01:00