Commit graph

1566 commits

Author SHA1 Message Date
Mark de Wever
aed21b378c Switch fold and unfold image.
Now the folded and unfolded nodes look sane.
2010-02-06 16:19:11 +00:00
Mark de Wever
7215ffa390 Proof-of-concept usage of the tree view widget.
This code is used to test the new widget, also to be used on the FOSDEM,
the code is hidden under --new-widgets. It's not planned to keep this
change for the campaign dialog.
2010-02-04 20:39:38 +00:00
Mark de Wever
9ec2566ee8 Add an initial version of the tree view widget.
I might want to work on the widget at the FOSDEM, so it's easier to commit
the code now.
2010-02-04 20:35:01 +00:00
Fabian Müller
34334c4396 Excluded the whole file from consideration by a normal Wesnoth build. 2010-02-02 12:29:26 +00:00
Fabian Müller
879ae485f3 Disabled the translation marks by making them part of the string. 2010-02-02 11:58:41 +00:00
Fabian Müller
a20857bd89 Added a wml config file for the icon messages. 2010-01-31 16:56:51 +00:00
Mark de Wever
3687e96447 Some minor lobby ui improvements.
Set up the defaults to better match what's needed in the main lobby
causing less resizing after joining. Also avoid some silly cases.

- Never show a horizontal scrollbar for the rooms and lobby list.

- Always show it for the game list.

- Hide it for the rooms (always might be slightly better).
2010-01-17 12:41:15 +00:00
Mark de Wever
3444c48e19 Improve the tiny-gui version. 2010-01-03 10:38:32 +00:00
Mark de Wever
c16e777eb0 Improve the tiny-gui version. 2010-01-03 10:38:29 +00:00
Mark de Wever
93d68a73b6 Improve the tiny-gui version. 2010-01-03 10:38:25 +00:00
Mark de Wever
43694a1d7d Improve the tiny-gui version. 2010-01-03 10:38:20 +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
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