Commit graph

1566 commits

Author SHA1 Message Date
Mark de Wever
7f13663100 Fix ltr language alignement problems in the language dialog.
Needed to set the proper maximum width and use the extends size and
offset to get the proper required width. Added a debug ostream function
which already has been written a few times and added some debug code.
2008-09-07 19:53:31 +00:00
Mark de Wever
6e767674bd When the text on a label doesn't fit, use an ellipse instead of truncating. 2008-09-07 19:53:19 +00:00
Tomasz Śniatowski
d3e819dd22 editor2: alllow different map generators to be used 2008-09-04 19:11:26 +01:00
Mark de Wever
289aaa9f0b Listbox cell refactoring.
The cells in a listbox now share some more macros and the background of
the selected cell now looks like the version in the older gui.
2008-09-02 18:03:53 +00:00
Mark de Wever
7498fd2fc5 Remove deprected macros. 2008-08-31 17:43:34 +00:00
Mark de Wever
97a72eff4c Removed the usage of deprecated macros. 2008-08-31 17:43:25 +00:00
Mark de Wever
45ebc2acf0 Avoid the text box text overflow termination.
When the text was too long the cursor would be drawn out of bounds which
caused an assert which terminated Wesnoth. Now the text will no longer
be drawn out of bounds and be ellipized. (The ellipses are always drawn
at the end, which will be fixed later.)
2008-08-30 15:17:58 +00:00
Mark de Wever
66d6be81bc Change the button to use the new macros. 2008-08-30 15:17:49 +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
Mark de Wever
6ce967d869 Remove an obsolete proof-of-concept widget. 2008-08-29 18:34:53 +00:00
Mark de Wever
a5219f5df2 Updated to the new style. 2008-08-28 17:24:00 +00:00
Mark de Wever
708c847124 Updated to the new style. 2008-08-25 15:36:05 +00:00
Mark de Wever
653bee39bd Updated to the new style. 2008-08-25 15:36:01 +00:00
Mark de Wever
b5ae677123 Updated to the new style. 2008-08-25 15:35:57 +00:00
Mark de Wever
72f8b75d53 Updated to the new style. 2008-08-25 15:35:52 +00:00
Mark de Wever
a5abf58f2c Add a new title screen.
Now that all 'stable' --new-widgets code has been moved to the default way
starting with --new-widgets is no longer needed unless you want to develop for
it. So the new proof-of-concept title screen can be committed. Only has the
basic buttons which work, but needs some cleanup up, both in looks and code
working.
2008-08-24 19:27:53 +00:00
Mark de Wever
98c8377a09 Converted the listbox items with icons to the new format. 2008-08-23 20:24:45 +00:00
Mark de Wever
42e30eb72d Changed the sizes of the listbox...
...so it can be used for normal and tiny gui.
2008-08-23 20:24:33 +00:00
Mark de Wever
030423a3b3 Fix the size problems for the listbox.
I forgot to add the resolutions so the last was always picked which
caused the tiny gui version never to be selected.
2008-08-23 18:59:29 +00:00
Mark de Wever
395b129ccd Merge the up and down arrow in one file.
With some macros it can be made quite the same and easier to add more
buttons in the future. Also added a tiny gui version.
2008-08-23 17:39:58 +00:00
Mark de Wever
56c14b6372 Change the vertical scrollbar to use more macros...
...and be usable with tiny-gui.
2008-08-23 16:54:18 +00:00
Mark de Wever
948d239017 Remove text_font_size since it's no longer mandatory...
...and makes no sense here.
2008-08-23 16:54:12 +00:00
Mark de Wever
3b22e1c100 Refactored the listbox text items.
More macros and added the tiny-gui definitions.
2008-08-23 16:54:00 +00:00
Mark de Wever
31e3435e74 The disabled text was fully transparent by default, fixed to fully opaque. 2008-08-23 15:57:16 +00:00
Mark de Wever
a0d21aa9e4 Rename addon.cfg to addon_connect.cfg 2008-08-23 15:13:39 +00:00
Mark de Wever
8cbc6a3d92 Add the new button in the addon dialog to the definition as well. 2008-08-23 13:44:26 +00:00
Mark de Wever
155336027e Textbox widget definition refactoring.
Cleaned up the widget to use the new macros and also added the (not so
well) tested code for tiny gui.
2008-08-23 13:44:19 +00:00
Mark de Wever
444f77e141 Fix a typo in a macro name, spotted by Zookeeper. 2008-08-22 19:33:45 +00:00
Mark de Wever
1af166edc6 Refactored the label definition and added a tiny-gui version. 2008-08-22 19:12:18 +00:00
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