Skip to content

Commit

Permalink
feat: Add element emojis to ElementFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
seriaati committed Mar 14, 2024
1 parent 97b92be commit 816e822
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hoyo_buddy/ui/hoyo/genshin/characters.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

from ....constants import TRAVELER_IDS
from ....embeds import DefaultEmbed
from ....emojis import get_gi_element_emoji
from ....exceptions import ActionInCooldownError, NoCharsFoundError
from ....icons import LOADING_ICON
from ....models import DrawInput
Expand Down Expand Up @@ -313,7 +314,9 @@ class ElementFilterSelector(Select[CharactersView]):
def __init__(self) -> None:
options = [
SelectOption(
label=LocaleStr(element.value.title(), warn_no_key=False), value=element.value
label=LocaleStr(element.value.title(), warn_no_key=False),
value=element.value,
emoji=get_gi_element_emoji(element),
)
for element in GenshinElement
]
Expand Down

0 comments on commit 816e822

Please sign in to comment.