Commit graph

162 commits

Author SHA1 Message Date
Ignacio R. Morelle
744dd6cd39 editor: Add Recent Files menu with recently loaded/saved files
File paths are recorded into the game preferences up to a (currently
hardcoded) limit of 6 and opening or saving maps adds or bumps existing
entries to the top. We may allow users to change the MRU limit in
Advanced Preferences in a later commit.

Adds two translatable strings.

In order to fit file paths in the menu without filling up the whole
screen sideways, we use only the file names for now. Because identical
file names could prove to be an actual issue later, I intend to look
into ellipsizing paths correctly in a later step.

(Note that I'm piggybacking on the crummy submenu support we already had
in the themable UI so that this can be safely backported to 1.12. It's
decidedly not optimal usability-wise, but it'll have to do for now.)
2015-10-09 19:27:51 -03:00
Ignacio R. Morelle
da9df4fcc5 Rename data/themes/macros.cfg and include it only once instead of 3 times
(Backports commit 61a7527a71 from master.)
2015-01-15 04:55:16 -03:00
Ignacio R. Morelle
3a3c238f7a wmlindent pass on data/themes/ 2014-07-02 22:07:31 -04:00
fendrin
f704b4a162 Fix error message about missing ui elements. 2014-06-07 22:45:13 +02:00
fendrin
6a2c1a04e6 Enabled the terrain description dialog in the editor. 2014-06-06 22:30:44 +02:00
fendrin
2cb9d9422b Disabled the non working "toggle loyal" action from the editor. 2014-06-06 17:47:50 +02:00
fendrin
3c1421ccf8 Disabled the non working custom time schedule creator in the 1.12 branch 2014-06-05 21:21:57 +02:00
fendrin
ca2eec45b9 Update to the default and editor themes.
Reintroduced the alignment and side.
2014-02-27 23:54:51 +01:00
Ignacio R. Morelle
b7848663bd Revert most of c1374ba032
Commit c1374ba032 for some reason reverted
commits 4a44369d8a and
91cbc9aff1.
2014-02-19 23:12:15 -03:00
ln-zookeeper
c1374ba032 Clarified 'Evacuation' now taking place at Lake Vrug. 2014-02-20 00:56:39 +02:00
Ignacio R. Morelle
91cbc9aff1 theme ui: Convert mainline themes to use id= and translatable name= values
The 'null' theme is a hidden theme, so it doesn't get a UI name of its
own.
2014-02-19 08:56:51 -03:00
Mark de Wever
9bcfeffc42 Fix drawing the offmap area for small resolutions.
The problem was a bit tricky. A partial resolution removed an element with
an empty id. The main_map_border section has no id and thus an empty id.
So the inheritance removed this section by accident. Of course the id for
a removal or change should be mandatory, which the next patch will do.

This fixes a part of bug #21584.
2014-02-15 09:20:33 +01:00
fendrin
9ee891db99 Context menu item for saving areas. 2014-01-03 00:33:37 +01:00
fendrin
ab90eedd5f Remove obsolete overlay= attributes from actions which have own icons. 2014-01-02 11:53:06 +01:00
Bär Halberkamp
ef2bdfbc12 Ran wmlindent 2013-12-31 19:22:28 +01:00
fendrin
4f119bdc18 Support for assigning recruit lists in the editor. 2013-12-31 11:21:55 +01:00
fendrin
c0f8febf46 Remove side from map context feature put into use. 2013-12-28 11:39:41 +01:00
fendrin
0affe77221 Implemented the area feature properly.
Adds remove, add, rename, save and local time menu entries to the editor
"Area" menu.

The local time menu still segfaults if there is no area defined.
2013-12-27 05:26:26 +01:00
fendrin
c639195cd2 Fix path to the smaller minimap image and correct its position. 2013-12-22 23:25:08 +01:00
fendrin
b4ad6c2823 Fix the editor theme layout to match the new minimap frame image. 2013-12-22 11:33:09 +01:00
fendrin
4fd640479e Update the theme config files to new image paths. 2013-12-22 08:43:21 +01:00
fendrin
130009ef7f Support for handling maps and scenarios differently.
Dialog for editing the scenario setup.
Dialog for editing the side setup.
A mechanism for loading and saving the different cases.
2013-12-18 00:46:58 +01:00
Ignacio R. Morelle
c22a631d76 Add wmllint spelling exception for 'playlist' in editor theme WML 2013-08-26 22:38:58 -04:00
Alexander van Gessel
38b224c1ff Revert "Revert "Merge branch 'master' of github.com:wesnoth/wesnoth-old""
This reverts commit 23b72d6956.
2013-08-09 00:13:46 +02:00
Thibault Févry
23b72d6956 Revert "Merge branch 'master' of github.com:wesnoth/wesnoth-old"
This reverts commit 5fa5c03411, reversing
changes made to 06374c64ba.
2013-08-08 18:50:46 +02:00
Alexander van Gessel
0738a4e59c make reindent minus some wmlindent issues 2013-08-04 23:22:56 +02:00
Charles Dang
1e0ee5e286 Added Close Map button to editor topbar (no overlay image yet) 2013-06-19 23:16:00 +11:00
fendrin
d971585a20 Fix the low resolution editor theme. 2013-06-08 13:50:44 +02:00
fendrin
e82a16e09b Fixed an image path. 2013-06-04 22:42:41 +02:00
fendrin
16dd13cab4 Put the new custom tod dialog into use. 2013-06-04 22:42:41 +02:00
Charles Dang
6daa64099b Updated menu button image paths 2013-06-04 23:17:32 +11:00
Charles Dang
f8761a7064 Fixed path to low-res tools editor theme image 2013-06-04 21:23:24 +11:00
Charles Dang
8ee955a096 Replaced refs to old lite_small image with one to new image 2013-05-30 22:23:02 +11:00
fendrin
455ca10889 Adjusted the 1024x768 resolution to the last art commit. 2013-05-28 03:12:03 +02:00
fendrin
4807f4966c "Transition *u*pdate" ---> "Transition *U*pdate" 2013-05-26 06:51:45 +02:00
fendrin
5de899a28c Scale the sidebar all the way down. 2013-05-25 00:07:21 +02:00
fendrin
716011e655 Put the playlist icon overlays in use. 2013-05-24 23:55:07 +02:00
fendrin
fd14514dab Fix the editor theme at default resolution to match the new art set. 2013-05-24 05:44:58 +02:00
fendrin
0ff90b9326 Enable the "Save all maps" feature. 2013-05-20 11:21:08 +02:00
fendrin
ebfc3fdcc8 Adds another separator between the editor tool buttons. 2013-05-20 11:21:06 +02:00
fendrin
0f8a287b10 Scenario playlist editor. 2013-05-19 13:50:16 +02:00
fendrin
54b0078086 Tooltip for the time schedule menu button. 2013-05-16 05:29:52 +02:00
fendrin
5236700e6f Enabled and adjusted the tooltip for the swap palette item action. 2013-05-15 22:36:36 +02:00
fendrin
4e17d42679 Enable the tooltips for the editor tools. 2013-05-15 21:48:24 +02:00
fendrin
01167bcc07 Port the unit_list dialog to the editor. 2013-05-15 05:58:57 +02:00
fendrin
6d36595f6b Enable the unit and village status information in the editor. 2013-05-15 04:40:10 +02:00
fendrin
cdff4c166b Made the zoom slider line black. 2013-05-15 01:52:28 +02:00
fendrin
3e0ad08159 Adjust new Minimap with embedded slider. 2013-05-15 00:56:43 +02:00
fendrin
25f5d44d70 Time and Schedule selection in the editor. 2013-05-14 18:08:41 +02:00
fendrin
645d0d3ea6 Remove obsolote macros from a time we supported 320 resolutions. 2013-05-13 01:08:59 +02:00