Commit graph

736 commits

Author SHA1 Message Date
Mark de Wever
af42d9eb9c Found out the button should use the small font,
...also restored the normal font to its previous value.
2008-08-22 18:58:44 +00:00
Mark de Wever
41aeb68c43 The extra parens are no longer needed, the bug has been fixed in 2008-08-21T18:01:14Z!b.waresiak@gmail.com. 2008-08-22 18:55:11 +00:00
Mark de Wever
c47f2fc58a Cleaned up the macros and used more macros for the button.
Also add a definition for tiny gui in the button, other widgets will follow.
2008-08-21 17:56:33 +00:00
Mark de Wever
d50b3d4854 Cleaned up the code for the new in game message dialogs.
Still contains some ugly hacks.
2008-08-18 16:10:44 +00:00
Tomasz Śniatowski
15eb3d54c9 editor2: random map generation 2008-08-17 19:24:02 +01:00
Ignacio R. Morelle
534e51c76b Fixed misspelled preprocessor directive (#unddef, should be #undef) 2008-08-15 22:36:01 +00:00
Tomasz Śniatowski
ea2193aa08 editor2 resize dialog update 2008-08-13 10:27:29 +01:00
Mark de Wever
a506c03625 Add a new toggle button type for the resize direction in the new editor.
Also added proof-of-concept code in the editor and made a tight grid.
2008-08-12 20:05:32 +00:00
Tomasz Śniatowski
f2aea15b1f editor2: allow resizing the map in any direction,
...the dialog needs some more work (use icons instead of text in the
descriptions). Also use the map sizes sans the border in dialogs.
2008-08-09 17:32:45 +01:00
Tomasz Śniatowski
f72d75a179 editor2 resize dialog update, some misc cleanup. The dialog is not stable atm. 2008-08-08 18:23:13 +01:00
Mark de Wever
d53d754e32 Make the length of the slide area configurable for WML.
Converted the sliders in the new editor to use this feature.
2008-08-08 15:57:19 +00:00
Tomasz Śniatowski
0c918613e2 editor2: resize map dialog,
...fix resizing issues that also came up in flipping, made size
members in map protected to allow said fix. Flipping still broken but
at least will no longer occasionally crash.
2008-08-08 16:41:21 +01:00
Tomasz Śniatowski
4110e8564f editor2 dialog update 2008-08-08 12:36:38 +01:00
Tomasz Śniatowski
25c22b9c91 editor2: use sliders in new map dialog 2008-08-08 12:29:24 +01:00
Mark de Wever
6f4b9e9432 Make the stepsize 10 for experience work. 2008-08-06 15:19:08 +00:00
Mark de Wever
ce41f025a2 Fix some alignment problems in the dialog. 2008-08-06 15:08:05 +00:00
Tomasz Śniatowski
a9362872b3 editor2: random map generate dialog stub, refresh image cache option 2008-08-04 13:36:59 +01:00
Mark de Wever
6849efdef3 Initial commit of the new mp create game dialog.
It's only a prototype and doesn't really work yet.

This dialog uses most features of the widget library so its a main
purpose is to help testing the widgets and develop new widgets.

NOTE so don't use --new-widgets if you want to play a mp game.
2008-07-27 07:23:14 +00:00
Mark de Wever
56b299a714 Initial version of the minimap widget.
* The C++ of the widget has the option to set border sizes, but this hasn't
  been exposed to WML yet.

* Moved the menubar around to keep it in alphabetic order.
2008-07-26 09:45:18 +00:00
Benoît Timbert
3e6738bbfc Update/fix a few SVN properties 2008-07-19 23:40:12 +00:00
Tomasz Śniatowski
9048879d26 editor2: new map, save map, save map as, confirm lost map changes...
...and minor tweaks
2008-07-19 22:09:55 +01:00
Tomasz Śniatowski
aaa239fdce new map dialog in editor2 (compiles but doesn't work atm) 2008-07-19 16:23:03 +01:00
Mark de Wever
477e594938 Add the new menubar code, which isn't used yet. 2008-07-18 20:41:09 +00:00
Mark de Wever
bdd251739f Fix some typos. 2008-07-18 19:48:53 +00:00
Mark de Wever
c4c9ca4060 Allow the label of the slider to be customized...
...so it can display special values it needed.
2008-07-18 16:43:49 +00:00
Mark de Wever
45a19e60c4 x2 is a coordinate no width, so needs an extra -1. 2008-07-18 10:45:18 +00:00
Mark de Wever
fa431a0582 Add the initial slider code,
...the length has an off by one error which will be fixed later.
2008-07-17 21:01:38 +00:00
Mark de Wever
40075dc494 Make the code work for images at the right side as well.
It seemed the dialog was 2 pixels to wide for left and right side,
which has been fixed.

Move the right side trigger closer to the left side test area in the test 
scenario.
2008-07-12 18:44:47 +00:00
Mark de Wever
ee140c0587 Add engine support for mirrored portraits. 2008-07-12 13:11:45 +00:00
Mark de Wever
4118f94622 Make the portrait shown configurable from C++,
...this means I can start to wire in images to start the real testing.
2008-07-11 21:47:59 +00:00
Mark de Wever
f5c7ed0cca Make the new message dialog less hardcoded and tricked in WML.
The dialog now gets a fixed size in C++ but it removes some sizing
spacers.
2008-07-11 19:25:29 +00:00
Mark de Wever
99a9207ec8 Align the portraits against the edges. 2008-07-07 21:34:26 +00:00
Mark de Wever
d6d65f485f Improved the proof-of-concept of the new dialogs.
- added left and right side image support and added them to the test
  scenario.

- allow images the 200 x 200 image to be 250 x 250.

- added a mutulated shyde.

- mirrored the arch mage.
2008-07-03 16:19:35 +00:00
Mark de Wever
e9798bf356 Add the initial proof-of-concept version of Jetryl's new idea for messages...
...in game. See
http://www.allacrost.org/staff/user/jetryl/Wesnoth/DialogueTest.jpg
for a screenshot of the intended idea (which this version doesn't
achive.

Added one of Kitty's new transperant images to test.
2008-06-24 20:40:33 +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
8e4145ebb7 Added the option to use a double click on a toggle button and panel...
...to close the window. Also added it to listboxes used.
2008-06-24 15:48:04 +00:00
Mark de Wever
e8b1280a7b [[drawing code fixes]]
* Rewrote the drawing code to be able to force a redraw and to invalidate the
  background. This fixes the ttoggle_panel redraw problems.

* Removed the no_redraw label hack

* Updated the WIKI comment blocks to fix some typos and add some forgotten info.
2008-06-23 16:32:37 +00:00
Mark de Wever
f2f84a592a Undefine a macro when no longer needed. 2008-06-22 17:59:22 +00:00
Mark de Wever
2cbe565950 Add new proof-of-concept toggle panel.
Drawing on the panel still has glitches.

Events are send to the panel not to the widget.

Sapient sorry for breaking the coding standard too lazy do convert the
0's ;-).
2008-06-22 17:49:58 +00:00
Mark de Wever
e1014e98c8 Port 2008-06-15T11:48:23Z!paniemin@cc.hut.fi to the new widget system. 2008-06-15 13:38:24 +00:00
Mark de Wever
d2580054b8 Convert the MP server selection dialog,
...including the server list dialog, to the new widget library. (The
listbox widget needs some redesigning since it starts it looks rather
bad with two columns (which can be fixed with a small hack but rather
find a cleaner way in general).)
2008-06-14 14:16:28 +00:00
Mark de Wever
897d9605db Add proof-of-concept code to init a listbox from a WML config. 2008-05-25 12:21:36 +00:00
Mark de Wever
5230f12157 Add the option to add an icon to a toggle button...
...and wire that in for the mp  selection dialog.
2008-05-24 13:56:45 +00:00
Mark de Wever
c75b49a599 Fix typo in macro definition. 2008-05-24 13:30:51 +00:00
Mark de Wever
63ad8892c7 Adding initial proof-of-concept version for the MP method selection dialog. 2008-05-23 18:25:20 +00:00
Mark de Wever
24bb485469 Wire in the new images Shadow_Master added in commit 26751. 2008-05-21 18:12:07 +00:00
Mark de Wever
6772f2f9bc Give the listbox scroll buttons with arrows and disable the other placeholders. 2008-05-20 15:25:52 +00:00
Ignacio R. Morelle
87639c63c9 Add code support for disabled button state graphic added on 2008-05-19T20:47:23Z!shadowm@wesnoth.org 2008-05-19 20:48:15 +00:00
Ignacio R. Morelle
b48116df19 Add path to some of the graphics on 2008-05-19T20:25:06Z!shadowm@wesnoth.org to GUI WML 2008-05-19 20:27:23 +00:00
Ignacio R. Morelle
7238b0b975 New graphics for pressed scrollbar block (new widget system) 2008-05-18 16:05:47 +00:00