more award stuff
parent
7fc769f9d6
commit
d7dd2129cf
|
@ -1,6 +1,6 @@
|
|||
from sqlalchemy import inspect
|
||||
|
||||
from files.helpers.config.awards import AWARDS_ENABLED, AWARDS_DISABLED
|
||||
from files.helpers.config.awards import AWARDS, AWARDS_ENABLED, AWARDS_DISABLED
|
||||
from files.__main__ import engine
|
||||
|
||||
from files.events.classes import *
|
||||
|
@ -22,6 +22,8 @@ def _populate_awards():
|
|||
if award in AWARDS_DISABLED:
|
||||
AWARDS_DISABLED.remove(award)
|
||||
|
||||
AWARDS.update(EVENT_AWARDS)
|
||||
|
||||
def event_init():
|
||||
_build_table()
|
||||
|
||||
|
|
|
@ -148,6 +148,11 @@ textarea, input[type=textbox], input[type=search] {
|
|||
}
|
||||
|
||||
.fa-moon-over-sun:before{content:"\f74a"}
|
||||
.fa-temperature-snow:before{content:"\f768"}
|
||||
|
||||
.award-name {
|
||||
color: var(--gray-200)
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
background-color: var(--gray-600);
|
||||
|
|
|
@ -4,7 +4,7 @@ EVENT_AWARDS = {
|
|||
"title": "Snow",
|
||||
"description": "",
|
||||
"icon": "fas fa-snowflake",
|
||||
"color": "text-blue-200",
|
||||
"color": "text-lightblue",
|
||||
"price": 300,
|
||||
"deflectable": False,
|
||||
"cosmetic": True
|
||||
|
@ -14,7 +14,7 @@ EVENT_AWARDS = {
|
|||
"title": "Gingerbread",
|
||||
"description": "",
|
||||
"icon": "fas fa-gingerbread-man",
|
||||
"color": "",
|
||||
"color": "text-brown",
|
||||
"price": 300,
|
||||
"deflectable": False,
|
||||
"cosmetic": True
|
||||
|
@ -24,7 +24,7 @@ EVENT_AWARDS = {
|
|||
"title": "Lights",
|
||||
"description": "",
|
||||
"icon": "fas fa-lights-holiday",
|
||||
"color": "",
|
||||
"color": "text-success",
|
||||
"price": 300,
|
||||
"deflectable": False,
|
||||
"cosmetic": True
|
||||
|
@ -34,7 +34,7 @@ EVENT_AWARDS = {
|
|||
"title": "Candy Cane",
|
||||
"description": "",
|
||||
"icon": "fas fa-candy-cane",
|
||||
"color": "",
|
||||
"color": "text-danger",
|
||||
"price": 400,
|
||||
"deflectable": False,
|
||||
"cosmetic": True
|
||||
|
@ -44,11 +44,21 @@ EVENT_AWARDS = {
|
|||
"title": "Fireplace",
|
||||
"description": "",
|
||||
"icon": "fas fa-fireplace",
|
||||
"color": "",
|
||||
"color": "text-orange",
|
||||
"price": 600,
|
||||
"deflectable": False,
|
||||
"cosmetic": True
|
||||
},
|
||||
"frostbite": {
|
||||
"kind": "frostbite",
|
||||
"title": "Frostbite",
|
||||
"description": "",
|
||||
"icon": "fas fa-temperature-snow",
|
||||
"color": "text-blue",
|
||||
"price": 300,
|
||||
"deflectable": False,
|
||||
"cosmetic": True
|
||||
},
|
||||
}
|
||||
EVENT_FORCED_HATS = ['/i/hats/Santa Hat III.webp?h=1', \
|
||||
'/i/hats/Winter Cap.webp?h=1', \
|
||||
|
|
|
@ -11,6 +11,32 @@
|
|||
<script src="{{'js/event/snow.js'|asset}}"></script>
|
||||
<script>snow(80);</script>
|
||||
{% endif %}
|
||||
|
||||
{% if p.award_count("frostbite", v) %}
|
||||
<div class="frost"></div>
|
||||
<script>
|
||||
const root = document.querySelector(':root');
|
||||
|
||||
const count = 5;
|
||||
const opacity = count * 0.1;
|
||||
root.style.setProperty('--opacity-frost', opacity);
|
||||
</script>
|
||||
<style>
|
||||
:root {
|
||||
--opacity-frost: 0.25;
|
||||
}
|
||||
.frost {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
box-shadow: 0 0 200px 10px rgba(255, 255, 255, var(--opacity-frost)) inset;
|
||||
pointer-events: none;
|
||||
z-index: 1050;
|
||||
}
|
||||
</style>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% if p.award_count("lights", v) %}
|
||||
|
|
Loading…
Reference in New Issue