From 04ef17ba7acc1f0a05dfbac73a48855852dd10af Mon Sep 17 00:00:00 2001 From: Gunter Labes Date: Sun, 24 May 2009 02:00:55 +0000 Subject: [PATCH] made the add-on type case insensitive --- data/tools/addon_manager/html.py | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/data/tools/addon_manager/html.py b/data/tools/addon_manager/html.py index 4080a65dc03..5b2b146d7bb 100755 --- a/data/tools/addon_manager/html.py +++ b/data/tools/addon_manager/html.py @@ -94,38 +94,39 @@ Select the add-on you want to install from the list and click "OK". The download + src + "' '" + path + "/" + imgurl + "'") os.system(command) - type = v("type", "none") + type = v("type", "none").strip() size = float(v("size", "0")) name = v("title", "unknown") - if type == "scenario": + ltype = type.lower() + if ltype == "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": + elif ltype == "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": + elif ltype == "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": + elif ltype == "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": + elif ltype == "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": + elif ltype == "era": w("""\ MP era
multiplayer era
After install the included era(s) will be available in the multiplayer "Create Game" dialog.
""") - elif type == "faction": + elif ltype == "faction": w("""\ MP faction
multiplayer faction
Usually comes with an era or is dependency of another add-on.
""") - elif type == "media": + elif ltype == "media": w("""\ Resources
miscellaneous content/media
unit packs, terrain packs, music packs, etc. Usually a (perhaps optional) dependency of another add-on.
""")