diff --git a/data/tools/addon_manager/html.py b/data/tools/addon_manager/html.py index 6e170aeb07e..4080a65dc03 100755 --- a/data/tools/addon_manager/html.py +++ b/data/tools/addon_manager/html.py @@ -42,7 +42,7 @@ $(document).ready(function()

To install an add-on please go to the title screen of Battle for Wesnoth. Select "Add-ons" from the menu and click "OK" to connect to add-ons.wesnoth.org. Select the add-on you want to install from the list and click "OK". The download will commence immediately. Wesnoth will then automatically install and load the add-on so you can use it. Remember that not all add-ons are campaigns!

-

Note: Hover over the icons to see the description of the add-on.

+

Note: Hover over the type field to see an explanation of the type and over an icon to see the description of the add-on.

""") if url: w("""

PS: If you really have to download an add-on from here uncompress it to the userdata/data/add-ons/ directory for wesnoth to find it. @@ -97,7 +97,39 @@ Select the add-on you want to install from the list and click "OK". The download type = v("type", "none") size = float(v("size", "0")) name = v("title", "unknown") - w(('%s') % type) + if type == "scenario": + w("""\ +Scenario

single player scenario
+After install the scenario will show up in the list you get when choosing "Campaign" in the main menu. (Basically it's just a campaign with only one scenario.)
""") + elif type == "campaign": + w("""\ +Campaign
single player campaign
+After install the campaign will show up in the list you get when choosing "Campaign" in the main menu.
""") + elif type == "campaign_mp": + w("""\ +MP Campaign
multiplayer campaign
+After install the first scenario of the campaign will be available in the map list in the multiplayer "Create Game" dialog.
""") + elif type == "scenario_mp": + w("""\ +MP Scenario
multiplayer scenario
+After install the scenario will be available in the map list in the multiplayer "Create Game" dialog.
""") + elif type == "map_pack": + w("""\ +MP map-pack
multiplayer map pack
+After install the maps/scenarios will be available in the map list in the multiplayer "Create Game" dialog.
""") + elif type == "era": + w("""\ +MP era
multiplayer era
+After install the included era(s) will be available in the multiplayer "Create Game" dialog.
""") + elif type == "faction": + w("""\ +MP faction
multiplayer faction
+Usually comes with an era or is dependency of another add-on.
""") + elif type == "media": + w("""\ +Resources
miscellaneous content/media
+unit packs, terrain packs, music packs, etc. Usually a (perhaps optional) dependency of another add-on.
""") + else: w(('%s') % type) w(('%s' ) % (icon, imgurl)) w('
%s
%s
' % ( diff --git a/data/tools/addon_manager/style.css b/data/tools/addon_manager/style.css index 5a513b70b2c..1e084f78679 100644 --- a/data/tools/addon_manager/style.css +++ b/data/tools/addon_manager/style.css @@ -61,6 +61,20 @@ table#campaigns td img { float: left; } +div.type { + display: none; +} + +td:hover div.type { + display: block; + left: 12px; + position: absolute; + width: 20em; + background-color: #ffffff; + border: 1px solid black; + padding: 8px; +} + div.desc { display: none; } @@ -103,4 +117,4 @@ table.tablesorter thead tr .headerSortDown { background-image: url(desc.gif); } table.tablesorter thead tr .headerSortDown, table.tablesorter thead tr .headerSortUp { -} \ No newline at end of file +}