Commit graph

217 commits

Author SHA1 Message Date
Eric S. Raymond
a8cee73c12 Enrich the editor theme markup for hotkeys by adding a description= attribute.
A new script, data/tools/extractbindings, uses this to automatically
generate an up-to-date list of editor keybindings in a form suitable
for the wiki.
2008-02-29 21:11:35 +00:00
Eric S. Raymond
92fe16e9ec Add export-property comments to _main.cfgs.
These will control whether or not wmlscope expects each namespace to
export names.  Presently, core exports but campaigns do not.
2008-02-27 11:11:54 +00:00
Nils Kneuper
4a8f987c2c add border fade-out to the editor
code changes by mordante, gimp-magic/theming by me
2008-02-24 14:06:37 +00:00
Nils Kneuper
b987cc7835 fixed a problem with the background not scaling correctly 2008-02-17 16:53:41 +00:00
Nils Kneuper
4ec550135a change editor theme to work in 800x600, too
move minimap to the topright to increase space for the terrain list

decrease center button area to increase available space for terrain list

comment out unused/broken items in the editor theme

add TODO markers for enhancement of themeability for the editor
2008-02-17 16:38:40 +00:00
Nils Kneuper
ed796892f6 add some comment about where to find explanations about how the rect stuff...
...of theming works.

Was not able to get higher resolutions work nicely, the ThemeWML seems
to have a problem when specifying main map values >1024x768...
2008-02-15 15:56:57 +00:00
Nils Kneuper
1f4653e97b oops, mixed left+right
the problem is that placing alignment right of level sometimes make
alignment vanish (eg when hoovering over the units in the first
scenario of two brothers)
2008-02-14 20:28:20 +00:00
Nils Kneuper
2fb8e772af changelog update, slight cleanup 2008-02-14 19:03:08 +00:00
Nils Kneuper
eb065b5e63 add support for a resolution of 800x480...
...(only possible to use if --enable-small-gui is set at configure
time), it is not active by default because several places are
currently rather broken (mp creation/lobby, load dialog and
preferences show many glitches), there is currently no support in the
editor for such a low resolution

fix support of 800x600 be decreasing the minimap size when at a
resolution below 1000x620 improve tinygui display
2008-02-14 18:50:50 +00:00
Nils Kneuper
bc5db4faab various tinygui improvements...
...tinygui should now basically look like "normal" guie beside using a
smaller font, most of the object placement at 400x300 and upwards is
exactly like normally (eg end turn) in 320x240 only display of weapons
and hp/xp is improved
2008-02-14 14:28:54 +00:00
Nils Kneuper
f6c7a71c7b preliminary support for 800x480...
...(resolution used for eeePC, Nokia 8x0 and maybe some other mobile
devices) to activate it, run configure with --enable-small-gui
2008-02-14 01:07:01 +00:00
Nils Kneuper
4dd534ce5a some more tinygui improvements: clock now displays correctly at 320x240 2008-02-13 22:46:47 +00:00
Nils Kneuper
ffc7b4a7b4 fixed replay theme to be usable at smaller resolutions, too...
(eg 400px horizontal should now be enough to display everything, the
main problem is the checkbox "skip animations", it will reach into the
minimap)
2008-02-13 19:51:48 +00:00
Eric S. Raymond
4c4f802989 More macro type checking.
Replace a South Guard macro that duplicates one in the core library.
2008-02-13 01:11:52 +00:00
Nils Kneuper
de4d8e2a84 some more fixes for tinygui:
* replay theme now working as expected

* unit images now working as expected

problems left:

village flags look really strange, someone will have to look at the
color stuff for those...
2008-02-12 15:31:50 +00:00
Nils Kneuper
a120bc8b34 forgot to adjust the image for the timer,
...now the timer should work correctly in tinygui
2008-02-12 14:38:32 +00:00
Nils Kneuper
6a63c72696 tinygui fixes
what still is really broken:

* replay mode in tinygui, maybe related to the topbar macro stuff?

* preferences (who added 500 new options in there?!?)  what could use
a fix:

* the unit image in the right panel seems to be straced in a strange
way what works:

* normal gameplay (in normal campaign mode gui looks as intended
2008-02-12 12:00:56 +00:00
Eric S. Raymond
aba249cf83 Move all #textdomain declarations to line 1 at Ivanovic's request. 2008-02-05 21:56:35 +00:00
Eric S. Raymond
efbcb03bd6 Address bug #10885.
This actually seems to be a problem in the theme definition, not the
underlying display engine -- the theme defines a fixed-sized report
area that assumes position numbers will always be at most two digits.
We can live with not fixing it, as none of the mainline maps are
anywhere near large enough to trigger this minor glitch.
2008-01-30 18:37:05 +00:00
Eric S. Raymond
b1b2435d40 Reindent the mainline content to uniiform whitespace. 2008-01-24 00:16:42 +00:00
uso
06eae3321b add the savereplay and savemap menu entries also for the 800x600 resolution,
grzywacz: as this item list is inherited by the 320x240 resolution
theme you may need to define an own list for 320x240 without these
items if they don't fit
2008-01-12 04:27:23 +00:00
uso
f86bd3bc77 add a menu option to save replays manually
maybe this can be removed later when the whole save game mechanism is
cleaned up again, but to have it there before the string freeze blocks
us from adding it ;)
2008-01-09 17:26:38 +00:00
Mark de Wever
b3d6724678 Also show the autosaves in 800x600 resolution. 2007-12-15 12:33:21 +00:00
Benoît Timbert
2fb0462b2c Theme & changelog update.
Now the race should be displayed in the unit preview panel
2007-12-01 17:01:36 +00:00
Eric S. Raymond
d41da3537c Fix some paths in the editor theme. 2007-11-29 23:29:19 +00:00
John W. C. McNabb
500eb327a3 added village count to editor 2007-11-29 22:11:14 +00:00
Eric S. Raymond
35245ba904 Move the themes images again,
this time to where the binary_paths code reliably finds them.
2007-11-26 23:43:13 +00:00
Eric S. Raymond
15f26e42be Move theme images to their own directory.
This makes cleaner reporting of  unused images possible.
2007-11-26 03:29:38 +00:00
Eric S. Raymond
3c023589dc Address bug #8601.
The fundamental problem here is that the meaning of the hourglass
field changes dynamically according to whether you're in SP or MP,
while themes are static; thus, whatever we put in as a static tooltip
in the theme is going to be wrong a lot of the time.

The fast solution is to rip this tooltip out, which is what I've done.
With some C++ klugery analogous to what's done to change the End Turn
button label in linger mode we could do something clever here, but I
don't think the small gain would be worth the extra complexity.

Anyone who disagrees with me is welcome to file a FR, or (better yet) 
have at the C++ themselves.
2007-11-16 21:59:42 +00:00
Lari Nieminen
0abefc6701 Change the "Next Scenario" button label to "End Scenario". 2007-10-09 17:16:34 +00:00
Eric S. Raymond
541df15e2d The long-awaited dynamic modification of the End Turn button for linger mode. 2007-10-05 09:09:23 +00:00
Eric S. Raymond
1e06e55aba Give all end-of-turn button declarations in themes a title2 attribute...
...to be used in linger mode.  Note, the C++ to implement this does not
yet exist (YogiHH says he's working on it).
2007-10-04 15:19:53 +00:00
Hans Joachim Gurt
c67ca4490b added missing AUTOSAVES to menu 2007-10-02 19:48:18 +00:00
Ali El Gariani
a67bc242bf New "rotate selection" feature for the editor (very old FR, bug #3870)
- Use the cursor as center of rotation, if not on map then use "center of mass"

- Use hotkey shift+r, as Gimp. (ctrl+r is reserved by recruit, old hotkey bug)

- copy/paste instead of moving, not sure about that but seems more
useful (if wanted you can overwrite on the current selection and then
cut/paste) Because the main use is probably to help create map like
Hexcake, but rotate after a select-all allow to rotate the whole map
(with cropping of corners)
2007-09-22 00:12:41 +00:00
Mark de Wever
60bb1b1b71 Made the offmap tiles themable in the map, the minimap stays as is. 2007-08-12 14:22:41 +00:00
Mark de Wever
2f750bb152 Renamed some images and fixed their references.
Also fixed a small bug in the top border, always using the same images
instead of alternating.
2007-08-11 14:08:03 +00:00
Mark de Wever
246f65b846 Made the border themable.
Still doesn't work in the editor, also the
0.5 hex border is still assumed at some places.
2007-08-11 13:27:36 +00:00
Nils Kneuper
c19e3c2311 added a default textdomain definition to all .cfg files 2007-07-06 09:00:49 +00:00
Tuukka Hastrup
c03c4ab064 Make replays to not reveal all information by default.
Include a menu for choosing the point of view: team 1, each team, full
map.

This design is per https://gna.org/bugs/index.php?6946 but doesn't yet 
implement the combo box or menu entries for teams other than number 1.
2007-07-04 00:00:06 +00:00
Eric S. Raymond
08c6876453 Almost all WML files are now uniformly indented.
There are a few exceptions that need further work or careful
examination; UtBS, the tutorial, and the terrain macros.
2007-06-29 10:36:10 +00:00
Ali El Gariani
938562f3e7 In all themes, adapt the time icon to its new 16x16 size 2007-05-19 00:35:13 +00:00
Ali El Gariani
99024ff072 Adapt the 2 remaining themes to the new icon sizes
(the general 16px height and the 24px width of flag icon)
2007-05-19 00:17:48 +00:00
Ali El Gariani
4350408f06 Dark magic of ThemeWML had eaten some tooltips of the status bar.
Something like you must provide enough space to fit the inner parts,
(but it seems that if you don't do it, in some cases it will work.
Just to be sure that you don't understand the reason)
2007-05-13 01:24:59 +00:00
Ali El Gariani
02b4eeb22f [[Theme tweaks]]
* Changing the size of the icons from the odd 15x15 and 24x15 to 16x16 and 24x16
  by adding black pixels to right and bottom of the image

* Adapt the default theme to prevent ugly image scaling with this new size

This is normally an invisible change, but the flags icons and other
themes are not changed.
2007-05-12 21:23:09 +00:00
Ali El Gariani
4559a0ac44 Use same width (24 instead of 15) for the flag icon...
...as other big icons (upkeep and income)

Prevent bad scaling of the current images and allow better visibility
of the playing side

(only changed in default theme)
2007-05-12 17:20:06 +00:00
Lari Nieminen
d946916a0a Fixed the somewhat broken timer display. 2007-05-11 12:29:37 +00:00
Ali El Gariani
67169e261a For pseudo bug #9104
(Zoom hotkeys not working in editor, also no option for standard zoom)

Use the same default keys for zoom (+,-,0) as the game.
For some reason you need to install to activate this change.
2007-05-10 18:28:27 +00:00
Ali El Gariani
a559247f43 Add 2 commands in the editor:
"update transitions"(key b) and "delay transitions update" (key ctrl+t)
2007-04-24 19:56:24 +00:00
Gunter Labes
c3ccae587b fixed some macro calls that weren't updated with the new font parameter
(starting wesnoth once to test changes helps ;-))
2007-04-06 13:05:03 +00:00
Eric S. Raymond
c2860d228a Remove unused "320" definitions, this theme doesn't need them. 2007-04-06 09:35:07 +00:00