-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
55 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,29 @@ | ||
from __future__ import annotations | ||
|
||
from ._meta import ImageAsset | ||
from enum import StrEnum | ||
from typing import override | ||
|
||
from ._meta import ASSETS_IMAGES, RAW_GITHUB_IMAGES | ||
|
||
__all__ = ( | ||
"LoLAsset", | ||
"NEW_CHAMPION_EMOTE", | ||
) | ||
|
||
|
||
class LoLAsset(ImageAsset): | ||
ItemUnknown = "lol/item_unknown_64x64.png" | ||
RuneUnknown = "lol/rune_unknown_64x64.png" | ||
SummonerSpellUnknown = "lol/summoner_spell_unknown_64x64.png" | ||
class LoLAsset(StrEnum): | ||
ItemUnknown = "item_unknown_64x64.png" | ||
RuneUnknown = "rune_unknown_64x64.png" | ||
SummonerSpellUnknown = "summoner_spell_unknown_64x64.png" | ||
|
||
@override | ||
def __str__(self) -> str: | ||
"""Relative location compared to the workplace directory, i.e. `./assets/images/logo/dota_white.png`""" | ||
return ASSETS_IMAGES + "lol/" + self.value | ||
|
||
@property | ||
def url(self) -> str: | ||
return RAW_GITHUB_IMAGES + "lol/" + self.value | ||
|
||
|
||
NEW_CHAMPION_EMOTE = "\N{SQUARED NEW}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters