Skip to content

Commit 29b56dd

Browse files
overall waveset viewer update #2
- show general waveset info (authors, item on win) if it exists - show loading icon :D - multiply wave xp by 5 - moved all images to gh-pages for easier local testing - requires workflow update on master branch
1 parent 4e9b34b commit 29b56dd

54 files changed

Lines changed: 66 additions & 35 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/generate-pages.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,6 @@ jobs:
2626
- name: Parse ZR repo code
2727
run: ./venv/bin/python main.py
2828

29-
- name: Move repo_img and builtin_img to wiki
30-
run: |
31-
mv repo_img/ ./gh-pages/repo_img/
32-
mv builtin_img/ ./gh-pages/builtin_img/
33-
mv premedia_icons/ ./gh-pages/premedia_icons/
34-
3529
- name: Upload static files as artifact
3630
id: deployment
3731
uses: actions/upload-pages-artifact@v4

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ __pycache__/
66
venv/
77
TF2-Zombie-Riot/
88

9-
repo_img/
109
premedia_icons_unused/
1110
npcs_by_category.json
1211

builtin_img/download.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

builtin_img/missing.png

-108 Bytes
Binary file not shown.

builtin_img/music.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

builtin_img/pause.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

builtin_img/play.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

builtin_img/x-square.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

embed.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ def draw_npc(drawable, img, pos, npc):
8585
left,top = pos[0]-(ICON_SIZE/2), pos[1]-(ICON_SIZE/2)
8686
drawable.rounded_rectangle([(left,top), (left+ICON_SIZE,top+ICON_SIZE)], 4, color["bg_light"])
8787
icon_filepath = npc["img"][10:-14]
88+
if icon_filepath.startswith("./"): # only missing.png paths start with ./
89+
icon_filepath = icon_filepath.replace("./","gh-pages/")
8890
icon = Image.open(icon_filepath, 'r')
8991
s = ICON_SIZE-(ICON_INNER_PADDING*2)
9092
icon = icon.resize((s,s))

gh-pages/static/style.css

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ h3, .h3 {
8484
}
8585

8686
.hidden {
87-
display:none;
87+
display:none !important;
8888
}
8989

9090
/* swap out dots in lists */
@@ -135,9 +135,33 @@ li:before {
135135
color: rgb(83, 123, 22);
136136
}
137137

138-
139138
@media screen and (max-width: 700px) {
140139
body {
141140
padding: 25px;
142141
}
142+
}
143+
144+
/* https://stackoverflow.com/a/21320622 */
145+
@keyframes rotating {
146+
from {
147+
-ms-transform: rotate(0deg);
148+
-moz-transform: rotate(0deg);
149+
-webkit-transform: rotate(0deg);
150+
-o-transform: rotate(0deg);
151+
transform: rotate(0deg);
152+
}
153+
to {
154+
-ms-transform: rotate(360deg);
155+
-moz-transform: rotate(360deg);
156+
-webkit-transform: rotate(360deg);
157+
-o-transform: rotate(360deg);
158+
transform: rotate(360deg);
159+
}
160+
}
161+
.rotating {
162+
-webkit-animation: rotating 2s linear infinite;
163+
-moz-animation: rotating 2s linear infinite;
164+
-ms-animation: rotating 2s linear infinite;
165+
-o-animation: rotating 2s linear infinite;
166+
animation: rotating 2s linear infinite;
143167
}

0 commit comments

Comments
 (0)