[wmlunits] Create animation statistics again.
Sort unit tree overviews differently.
This commit is contained in:
parent
f58bb14cc4
commit
3bd7c7ee1f
3 changed files with 9 additions and 6 deletions
|
@ -159,9 +159,9 @@ td.none {border: solid 1px; background-color: #ffffff;}
|
|||
us = [x for x in wesnoth.unit_lookup.values() if x.campaigns[0] == "mainline"]
|
||||
put_units(f, us)
|
||||
|
||||
f.write("<h2>Campaigns and Addons</h2>\n")
|
||||
us = [x for x in wesnoth.unit_lookup.values() if x.campaigns[0] != "mainline"]
|
||||
put_units(f, us)
|
||||
#f.write("<h2>Campaigns and Addons</h2>\n")
|
||||
#us = [x for x in wesnoth.unit_lookup.values() if x.campaigns[0] != "mainline"]
|
||||
#put_units(f, us)
|
||||
|
||||
f.write("</body></html>")
|
||||
f.close()
|
||||
|
|
|
@ -213,7 +213,7 @@ class HTMLOutput:
|
|||
breadth += tree.breadth
|
||||
|
||||
thelist = groups.keys()
|
||||
thelist.sort()
|
||||
thelist.sort(key = lambda x: grouper.group_name(x))
|
||||
|
||||
rows_count = breadth + len(thelist)
|
||||
# Create empty grid.
|
||||
|
|
|
@ -218,6 +218,9 @@ def process_campaign_or_era(addon, cid, define, batchlist):
|
|||
else:
|
||||
wesnoth.parser.parse_text("{core}{~add-ons}", "SKIP_CORE," + define)
|
||||
wesnoth.add_units(cid)
|
||||
|
||||
if addon == "mainline" and cid == "mainline":
|
||||
write_animation_statistics(wesnoth)
|
||||
|
||||
wesnoth.add_binary_paths(addon, image_collector)
|
||||
|
||||
|
@ -325,9 +328,9 @@ def write_unit_ids_UNUSED():
|
|||
f.write("</body></html>")
|
||||
f.close()
|
||||
|
||||
def write_animation_statistics_UNUSED():
|
||||
def write_animation_statistics(wesnoth):
|
||||
# Write animation statistics
|
||||
f = MyFile(os.path.join(options.output, "animations.html"), "w")
|
||||
f = html_output.MyFile(os.path.join(options.output, "animations.html"), "w")
|
||||
animations.write_table(f, wesnoth)
|
||||
f.close()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue