dota2win: provide overrides for color

While the default values for the colors are probably reasonable, this
patch provides the user with a way to override them.  This will be
particularly useful for colorblind users, or people who just don't like
the defaults.
This commit is contained in:
David Wahlstrom 2015-06-04 12:05:20 -07:00
parent 4963ac9c96
commit 3ce9c13a8a

View File

@ -12,12 +12,18 @@ class Dota2wins(IntervalModule):
("matches", "Number of recent matches to calculate"), ("matches", "Number of recent matches to calculate"),
("steamid", "Steam user to track"), ("steamid", "Steam user to track"),
("steam_api_key", "Steam API key " ("steam_api_key", "Steam API key "
"(http://steamcommunity.com/dev/apikey"), "(http://steamcommunity.com/dev/apikey)"),
("good_threshold", "Win percentage (or higher) which you are happy " ("good_threshold", "Win percentage (or higher) which you are happy "
"with"), "with"),
("bad_threshold", "Win percentage you want to be alerted (difference " ("bad_threshold", "Win percentage you want to be alerted (difference "
"between good_threshold and bad_threshold is cautious_threshold)"), "between good_threshold and bad_threshold is cautious_threshold)"),
("interval", "Update interval (games usually last at least 20 min)."), ("interval", "Update interval (games usually last at least 20 min)."),
("good_color", "Color of text while win percentage is above "
"good_threshold"),
("bad_color", "Color of text while win percentage is below "
"bad_threshold"),
("cation_color", "Color of text while win precentage is between good "
"and bad thresholds"),
"format" "format"
) )
required = ("steamid", "steam_api_key") required = ("steamid", "steam_api_key")