Add option for player banner
This commit is contained in:
parent
3ab735911f
commit
e2f89e9793
4 changed files with 8 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -3,6 +3,7 @@ build/*/index.html
|
|||
build/index.html
|
||||
build/decks/*/*.gif
|
||||
build/decks/*/type
|
||||
build/assets/banner.png
|
||||
build/assets/header.png
|
||||
build/assets/levels/*.gif
|
||||
build/assets/sketch/*.gif
|
||||
|
|
|
@ -22,6 +22,7 @@ Python scripts to generate a mobile-friendly static site for tracking tcg cards
|
|||
- =url=: URL of your site index page including =https://=
|
||||
- =name=: the name you use in the game
|
||||
- =sig=: set to =True= when you have a signature card
|
||||
- =banner=: set to =True= when you have a player banner, and save this in =build/assets/= as =banner.png=
|
||||
- =highpriority=: a list of high priority decks you’re collecting
|
||||
- =trademedium=: whether to allow trading medium-priority cards away in exchange for high-priority cards
|
||||
- =tradepost=: URL of your trade post on Dreamwidth
|
||||
|
|
|
@ -1133,6 +1133,11 @@ def indexgen():
|
|||
if len(variables.subfolder) > 0:
|
||||
content.write("/" + variables.subfolder)
|
||||
content.write("/decks/sigs/" + variables.name.lower() + ".gif\" loading=\"lazy\">")
|
||||
if variables.sig:
|
||||
content.write("<img src=\"")
|
||||
if len(variables.subfolder) > 0:
|
||||
content.write("/" + variables.subfolder)
|
||||
content.write("/assets/banner.png\" loading=\"lazy\">")
|
||||
content.write("\n<ul>\n<li>player name: <span class=\"name\">" + variables.name + "</span></li>\n<li>" + str(len(cardlist)) + " cards held <span class=\"rank " + rank + "\">(" + rank + ")</span></li>\n<li>started <code>" + firstdate.strftime("%Y-%m-%d") + "</code></li>\n<li>last updated <code>" + datetime.datetime.now().strftime("%Y-%m-%d") + "</code></li>\n<li><a href=\"https://git.praze.net/tre/tcg\" target=\"_blank\">code</a> ")
|
||||
if variables.name == "Mez":
|
||||
content.write("under construction")
|
||||
|
|
|
@ -4,6 +4,7 @@ subfolder = ""
|
|||
url = ""
|
||||
name = "your name"
|
||||
sig = False
|
||||
banner = False
|
||||
highpriority = ["deckname","nameofadeck"]
|
||||
trademedium = True
|
||||
tradepost = "URL"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue