[wesnoth-commits] [wesnoth/wesnoth] 8c642e: campaignd: Add support for free-form tags on add-o...

GitHub noreply at github.com
Tue Mar 6 02:00:47 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 8c642e2044956fe962019255cdbdc059d25accfa
      https://github.com/wesnoth/wesnoth/commit/8c642e2044956fe962019255cdbdc059d25accfa
  Author: Iris Morelle <shadowm at wesnoth.org>
  Date:   2018-03-05 (Mon, 05 Mar 2018)

  Changed paths:
    M changelog
    M src/addon/info.cpp
    M src/addon/info.hpp
    M src/campaign_server/campaign_server.cpp

  Log Message:
  -----------
  campaignd: Add support for free-form tags on add-ons

This adds a tags= attribute to the pbl WML that can be used to specify
comma-separated tags to let users filter on them on the Add-ons Manager.

We don't do anything fancy with the tags at the moment since they can be
matched with the existing filter algorithm without any changes, with the
caveat that the word separator the filter box uses is whitespace instead
of commas -- meaning that to match multiple tags they must be specified
with spaces between them, in any order, and that pasting the tags from
the WML into the filter box will not yield a match as some people might
expect.

There is also no UI for the tags right now other than the filter box, so
they are little more than an implementation detail hidden from the user.

See also issue #2565.




More information about the Commits mailing list