Update Flag Effect (#1154)

* Update Flags Effect (add RU)
This commit is contained in:
Cosmicbase 2021-01-20 18:42:58 +01:00 committed by GitHub
parent be894c821d
commit 4f85ac1c4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -177,6 +177,12 @@ def printFlag(country):
hyperion.imageSolidFill(0, 0, int(iW*0.33), iH, 0, 255, 0)
hyperion.imageSolidFill(int(iW*0.33), 0, int(iW*0.33), iH, 255, 0, 0)
hyperion.imageSolidFill(int(iW*0.66), 0, iW, iH, 255, 255, 0)
# ru flag (Russia)
if country == "ru":
hyperion.imageSolidFill(0, 0, iW, int(iH*0.33), 255, 255, 255)
hyperion.imageSolidFill(0, int(iH*0.33), iW, int(iH*0.33), 0, 57, 166)
hyperion.imageSolidFill(0, int(iH*0.66), iW, iH, 213, 43, 30)
#prepare wanted flags
for cf in countries:

View File

@ -10,7 +10,7 @@
"uniqueItems": true,
"items": {
"type": "string",
"enum": ["de","at","fr","be","it","es","bg","ee","dk","fi","hu","ie","lv","lt","lu","mt","nl","pl","pt","ro","sl","se","ch"]
"enum": ["at","be","bg","ch","cmr","cz","de","dk","ee","es","fi","fr","gr","hu","ie","it","lt","lu","lv","mt","nl","pl","pt","ro","ru","se","sl"]
},
"propertyOrder" : 1
},