Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update icons_keyboard.py #216

Merged
merged 4 commits into from
Dec 16, 2023
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
6 changes: 6 additions & 0 deletions plugins/utilities.json
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,12 @@
}
],
"versions": {
"3.0.0": {
"api_version": 8,
"commit_sha": "02da437",
"released_on": "16-12-2023",
"md5sum": "ae221a7c2b938eccf63db493c247991e"
},
"2.0.0": {
"api_version": 8,
"commit_sha": "48f9302",
Expand Down
57 changes: 17 additions & 40 deletions plugins/utilities/icons_keyboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,54 +4,31 @@
# Make your chats look even more cooler!
# Make sure "Always Use Internal Keyboard" is ON
# Double tap the space to change between keyboards...
# Tap bottom-left bomb button to cycle through different icons


# ba_meta require api 8

from __future__ import annotations

from typing import TYPE_CHECKING

import babase
import bascenev1 as bs
from babase import charstr as uwu
from babase import charstr

list_of_icons = [i for i in babase.SpecialChar]
list_of_icons = [charstr(i) for i in list_of_icons]
list_of_icons.reverse()

if TYPE_CHECKING:
from typing import Any, Optional, Dict, List, Tuple, Type, Iterable
for i in range(26 - (len(list_of_icons) % 26)):
list_of_icons.append('‎')


# ba_meta export keyboard
class IconKeyboard_byFreaku(babase.Keyboard):
class IconKeyboard(babase.Keyboard):
"""Keyboard go brrrrrrr"""
name = 'Icons by \ue048Freaku'
chars = [(uwu(babase.SpecialChar.TICKET),
uwu(babase.SpecialChar.CROWN),
uwu(babase.SpecialChar.DRAGON),
uwu(babase.SpecialChar.SKULL),
uwu(babase.SpecialChar.HEART),
uwu(babase.SpecialChar.FEDORA),
uwu(babase.SpecialChar.HAL),
uwu(babase.SpecialChar.YIN_YANG),
uwu(babase.SpecialChar.EYE_BALL),
uwu(babase.SpecialChar.HELMET),
uwu(babase.SpecialChar.OUYA_BUTTON_U)),
(uwu(babase.SpecialChar.MUSHROOM),
uwu(babase.SpecialChar.NINJA_STAR),
uwu(babase.SpecialChar.VIKING_HELMET),
uwu(babase.SpecialChar.MOON),
uwu(babase.SpecialChar.SPIDER),
uwu(babase.SpecialChar.FIREBALL),
uwu(babase.SpecialChar.MIKIROG),
uwu(babase.SpecialChar.OUYA_BUTTON_O),
uwu(babase.SpecialChar.LOCAL_ACCOUNT),
uwu(babase.SpecialChar.LOGO)),
(uwu(babase.SpecialChar.TICKET),
uwu(babase.SpecialChar.FLAG_INDIA),
uwu(babase.SpecialChar.OCULUS_LOGO),
uwu(babase.SpecialChar.STEAM_LOGO),
uwu(babase.SpecialChar.NVIDIA_LOGO),
uwu(babase.SpecialChar.GAME_CENTER_LOGO),
uwu(babase.SpecialChar.GOOGLE_PLAY_GAMES_LOGO),
uwu(babase.SpecialChar.EXPLODINARY_LOGO))]
nums = []
pages: Dict[str, Tuple[str, ...]] = {}
chars = [(list_of_icons[0:10]),
(list_of_icons[10:19]),
(list_of_icons[19:26])]
nums = ['‎' for i in range(26)]
pages = {
f'icon{i//26+1}': tuple(list_of_icons[i:i+26])
for i in range(26, len(list_of_icons), 26)
}