Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build_docker_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,5 @@ jobs:
build-args: |
GIT_COMMIT=${{ env.BUILD_HASH }}
DEBUG=False
tags: ${{ env.CUSTOM_TAG }}
tags: ${{ env.CUSTOM_TAG }},ghcr.io/snowsune/size-diff:latest
labels: ${{ steps.meta.outputs.labels }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ cache
*.*~
.env
*.sqlite3
art/dist/
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ RUN pip install --upgrade pip && pip install -r requirements.txt
# Copy the app code to the container
COPY . .

# Run the art trimming script
RUN python3 scripts/trim_art.py

# Expose port 5000 for the Flask app
EXPOSE 5000

Expand Down
11 changes: 10 additions & 1 deletion app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def index():
# Load presets for the dropdown
presets = load_preset_characters()
preset_map = {
f"{p['name']} ({p['species'].replace('_', ' ').title()}, {p['gender']}, {p['height']}in)": f"{p['species']},{p['gender']},{p['height']},{p['name']}"
f"{p['name'].replace('_', ' ').title()} --- {p['species'].replace('_', ' ').title()}, {p['gender']}, {p.get('description', '')}": f"{p['species']},{p['gender']},{p['height']},{p['name']}"
for p in presets
}

Expand Down Expand Up @@ -300,6 +300,15 @@ def add_preset():
return redirect(f"/?characters={characters_query}{settings_query}")


@app.route("/taur")
def taur():
"""
Base route for volnar's sub-page!
"""

return render_template("taur.html")


# For WSGI
def create_app():
return app
Binary file removed app/species_data/Hieght_Ref_Ky-Li_for_Vixi.png
Binary file not shown.
Binary file removed app/species_data/Hieght_Ref_Maxene_for_Vixi.png
Binary file not shown.
4 changes: 2 additions & 2 deletions app/species_data/african_buffalo.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
male:
image: "missing.png"
image: "Chrissy/missing.png"
ears_offset: 0
data:
- anthro_size: 76 # 6'4"
Expand All @@ -8,7 +8,7 @@ male:
height: 50

female:
image: "missing.png"
image: "Chrissy/missing.png"
ears_offset: 0
data:
- anthro_size: 74 # 6'2"
Expand Down
4 changes: 2 additions & 2 deletions app/species_data/arctic_fox.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
male:
image: "randal.png"
image: "Chrissy/randal.png"
ears_offset: 4
data:
- anthro_size: 76 # 6'4"
Expand All @@ -8,7 +8,7 @@ male:
height: 15 # 15"

female:
image: "vixi.png"
image: "Chrissy/vixi.png"
ears_offset: 4
data:
- anthro_size: 74 # 6'2"
Expand Down
4 changes: 2 additions & 2 deletions app/species_data/canine.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
male:
image: "Hieght_Ref_Maxene_for_Vixi.png"
image: "Hunner/Hieght_Ref_Maxene_for_Vixi.png"
ears_offset: 3
color: "870716"
data:
Expand All @@ -9,7 +9,7 @@ male:
height: 24

female:
image: "Hieght_Ref_Ky-Li_for_Vixi.png"
image: "Hunner/Hieght_Ref_Ky-Li_for_Vixi.png"
ears_offset: 9
color: "add6ed"
data:
Expand Down
4 changes: 2 additions & 2 deletions app/species_data/equine.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
male:
image: "f_equine.png"
image: "Placeholder/f_equine.png"
ears_offset: 0
data:
- anthro_size: 76 # 6'4"
Expand All @@ -8,7 +8,7 @@ male:
height: 56

female:
image: "f_equine.png"
image: "Placeholder/f_equine.png"
ears_offset: 0
data:
- anthro_size: 76 # 6'4"
Expand Down
Binary file removed app/species_data/f_mouse_hunner.png
Binary file not shown.
4 changes: 2 additions & 2 deletions app/species_data/feline.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
male:
image: "Felid_Sketch_Male.png"
image: "Rhainbowmetall/Felid_Sketch_Male.png"
ears_offset: 9
color: "282b1d"
data:
Expand All @@ -9,7 +9,7 @@ male:
height: 10

female:
image: "Felid_Sketch_Female.png"
image: "Rhainbowmetall/Felid_Sketch_Female.png"
ears_offset: 9
color: "1d751d"
data:
Expand Down
4 changes: 2 additions & 2 deletions app/species_data/fennec_fox.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
male:
image: "m_fennec.png"
image: "Chrissy/m_fennec.png"
ears_offset: 10
data:
- anthro_size: 76 # 6'4"
Expand All @@ -8,7 +8,7 @@ male:
height: 7

female:
image: "missing.png"
image: "Chrissy/missing.png"
ears_offset: 0
data:
- anthro_size: 74 # 6'2"
Expand Down
4 changes: 2 additions & 2 deletions app/species_data/giraffe.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
male:
image: "m_giraffe.png"
image: "Placeholder/m_giraffe.png"
ears_offset: 0
data:
- anthro_size: 76 # 6'4"
Expand All @@ -8,7 +8,7 @@ male:
height: 190

female:
image: "m_giraffe.png"
image: "Placeholder/m_giraffe.png"
ears_offset: 0
data:
- anthro_size: 76 # 6'4"
Expand Down
Binary file removed app/species_data/m_mouse_hunner.png
Binary file not shown.
8 changes: 4 additions & 4 deletions app/species_data/mouse.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
male:
image: "m_mouse_hunner.png"
image: "Hunner/Size_Refs_Mouse_for_Vixi (male).png"
ears_offset: 6
color: "8B8000"
color: "007516"
data:
- anthro_size: 76 # 6'4"
height: 3
- anthro_size: 60 # 5'
height: 4.5

female:
image: "f_mouse_hunner.png"
image: "Hunner/Size_Refs_Mouse_for_Vixi (female).png"
ears_offset: 7
color: "049904"
color: "7900ad"
data:
- anthro_size: 74 # 6'2"
height: 2.5
Expand Down
4 changes: 2 additions & 2 deletions app/species_data/red_fox.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
male:
image: "randal.png"
image: "Chrissy/randal.png"
ears_offset: 4
data:
- anthro_size: 76 # 6'4"
Expand All @@ -8,7 +8,7 @@ male:
height: 15

female:
image: "sinopa.png"
image: "Chrissy/sinopa.png"
ears_offset: 1.5
data:
- anthro_size: 76 # 6'4"
Expand Down
4 changes: 2 additions & 2 deletions app/species_data/rexouium.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
male:
image: "m_rexo.png"
image: "Chrissy/m_rexo.png"
ears_offset: 7.5
data:
- anthro_size: 76 # 6'4"
Expand All @@ -8,7 +8,7 @@ male:
height: 60 # From chrissy

female:
image: "chrissy.png"
image: "Chrissy/chrissy.png"
ears_offset: 6
data:
- anthro_size: 76 # 6'4"
Expand Down
19 changes: 19 additions & 0 deletions app/species_data/saber-toothed_tiger.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
male:
image: "Hunner/Hieght_Ref_NO_BAK_Tirga_for_Tirga.png"
ears_offset: 3
color: "00730b"
data:
- anthro_size: 76 # 6'4"
height: 44
- anthro_size: 60 # 5'
height: 38

female:
image: "Hunner/Hieght_Ref_NO_BAK_Tirga_for_Tirga.png"
ears_offset: 3
color: "b216f0"
data:
- anthro_size: 74 # 6'2"
height: 46
- anthro_size: 60 # 5'
height: 34
4 changes: 2 additions & 2 deletions app/species_data/shark.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Kamryn supplied an image and its, a little different but we can always change it later <3
male:
image: "m_shark.png"
image: "Mori/m_shark.png"
ears_offset: 3
# color: "311b9e"
data:
Expand All @@ -10,7 +10,7 @@ male:
height: 74

female:
image: "f_shark.png"
image: "Mori/f_shark.png"
ears_offset: 3
# color: "664ce6"
data:
Expand Down
19 changes: 19 additions & 0 deletions app/species_data/taur_(generic).yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
male:
image: "Volnar/TaurReference.png"
ears_offset: 1
color: "590a1b"
data:
- anthro_size: 76 # 6'4"
height: 76 #
- anthro_size: 60 # 5'
height: 60 #

female:
image: "Volnar/TaurReference.png"
ears_offset: 1
color: "2c4b9e"
data:
- anthro_size: 76 # 6'4"
height: 76 #
- anthro_size: 60 # 5'
height: 60 #
4 changes: 2 additions & 2 deletions app/species_data/wolf.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
male:
image: "m_wolf.png"
image: "Placeholder/m_wolf.png"
ears_offset: 0
data:
- anthro_size: 76 # 6'4"
Expand All @@ -8,7 +8,7 @@ male:
height: 32

female:
image: "Hieght_Ref_Ky-Li_for_Vixi.png"
image: "Hunner/Hieght_Ref_Ky-Li_for_Vixi.png"
ears_offset: 10
data:
- anthro_size: 76 # 6'4"
Expand Down
16 changes: 14 additions & 2 deletions app/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,18 @@
<div class="container">
<h1>Vixi's Anthro Size Diff Calculator!</h1>

<!-- Taur Calculator Button -->
<!-- <div class="taur-calc-link"
style="position: absolute; top: 120px; right: 40px; display: flex; flex-direction: column; align-items: flex-end; z-index: 10;">
<a href="/taur" class="taur-btn"
style="display: flex; align-items: center; background: #f80; color: #000; padding: 20px 30px; border-radius: 10px; font-size: 0.8em; font-weight: bold; text-decoration: none; box-shadow: 0 2px 8px #0008; transition: background 0.3s;">
<span style="margin-right: 18px; font-size: 1.5em;">Check out the Taur Calculator!</span>
<span style="font-size: 2.5em;">&#8594;</span>
</a>
<span style="margin-top: 10px; font-size: 1.1em; color: #fff; opacity: 0.8;">A new way to size up your
taur-self!</span>
</div> -->

<!-- Display the flash message if there is one -->
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
Expand Down Expand Up @@ -316,8 +328,8 @@ <h1>Vixi's Anthro Size Diff Calculator!</h1>
<footer>
<p>
Running Version <a href="https://github.com/snowsune/size-diff">{{ version }}</a>,
Art by <a href="https://www.furaffinity.net/user/n1chris">Chrissy</a>,
<a href="https://hunner.carrd.co/">Hunner</a>,
Art by <a href="https://hunner.carrd.co/">Hunner</a>,
<a href="https://www.furaffinity.net/user/n1chris">Chrissy</a>,
<a href="https://bsky.app/profile/rhainbowmetall.bsky.social">Rhain</a>,
<a href="#">Keith</a>,
and <a href="https://www.furaffinity.net/user/zhelya">Zhelya</a>
Expand Down
26 changes: 26 additions & 0 deletions app/templates/taur.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Taur Calculator (Coming Soon!)</title>
<link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
<link rel="icon" type="image/x-icon" href="{{ url_for('static', filename='images/favicon.ico') }}">
</head>

<body>
<div class="container"
style="max-width: 500px; margin: 80px auto; border: 2px solid #f80; border-radius: 16px; background: #111; box-shadow: 0 4px 24px #000a; padding: 40px 30px; text-align: center;">
<h1 style="color: #f80;">Taur Calculator</h1>
<p style="font-size: 1.2em; color: #fff; margin-bottom: 30px;">Thanks to <a
href="https://www.f-list.net/c/Volnar">Volnar</a> this feature is coming soon!
You'll be able to size your taur-self up!</p>
<div style="margin-top: 40px;">
<a href="/" class="back-link" style="color: #78d0ff; text-decoration: none; font-size: 1.3em;">&larr; Back
to Main Calculator</a>
</div>
</div>
</body>

</html>
5 changes: 5 additions & 0 deletions app/utils/character.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
from typing import Optional


class Character:
"""
A well-defined representation of a character object.
Expand All @@ -12,6 +15,7 @@ def __init__(
feral_height: float = 0.0,
image: str = "",
ears_offset: float = 0.0,
visual_height: Optional[float] = None,
):
self.name = name
self.species = species
Expand All @@ -23,6 +27,7 @@ def __init__(
self.image = image
self.ears_offset = ears_offset
self.color = None
self.visual_height = visual_height

def get_species_name(self) -> str:
return self.species.replace("_", " ").title()
Expand Down
Loading
Loading