-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### Описание PR'ра <!-- Кратко опишите, какие изменения были внесены в этом PR и зачем данный PR нужен. --> <!-- Пример: В этом PR улучшена производительность системы за счет оптимизации алгоритма обработки данных. --> ### Медиа <!-- Если возможно, добавьте изображения ваших изменений. Вы можете добавить изображение через ссылку или вставить его напрямую, если оно сохранено в буфере обмена. --> ### Техническая информация - [ ] PR полностью завершён. - [ ] Мне **НЕ** нужна помощь для завершения PR. - [ ] Проверено на локальной машине. - [ ] Документация обновлена. <!-- при условии, что это применимо --> - [ ] Тесты обновлены / добавлены. <!-- при условии, что это применимо --> <!-- version_update: номер_версии --> <!-- Поле с указанием новой версии. Если не указано, будет использована версия из последнего changelog. --> <!-- autor: имя_автора --> <!-- Изменяет имя автора ченджлога. Если не указано, будет использовано имя пользователя GitHub. --> <!-- Здесь вы можете добавить любые дополнительные сведения, список задач, комментарии и прочее. Учтите, что раздел "### Изменения" должен идти последним. --> ### Изменения <!-- Перечислите изменения, начиная каждое с новой строки и добавляя дефис перед каждым пунктом. Если после changes идёт NOT - ченджлог не создаётся--> changes: NOT
- Loading branch information
1 parent
1dc0523
commit 642f8b5
Showing
44 changed files
with
446 additions
and
1,166 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Start client", | ||
"type": "debugpy", | ||
"request": "launch", | ||
"program": "Code/main.py", | ||
"console": "integratedTerminal" | ||
} | ||
] | ||
} |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from .chat import ChatModule | ||
|
||
__all__ = ['ChatModule'] |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import logging | ||
|
||
from DMBotNetwork import Client | ||
|
||
logger = logging.getLogger("Chat") | ||
|
||
class ChatModule(Client): | ||
async def net_ooc_chat(self, sender: str, msg: str): | ||
logger.info(f"[OOC] {sender}: {msg}") | ||
return | ||
|
||
@staticmethod | ||
async def send_ooc(msg: str): | ||
await Client.request_method("ooc_chat", msg=msg) | ||
return |
This file was deleted.
Oops, something went wrong.
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 +0,0 @@ | ||
from gui.login_window import LoginWindow | ||
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import sys | ||
|
||
import dearpygui.dearpygui as dpg | ||
from root_path import ROOT_PATH | ||
|
||
|
||
class FontManager: | ||
@staticmethod | ||
def load_fonts(): | ||
with dpg.font_registry(): | ||
with dpg.font(str(ROOT_PATH / 'Content' / 'Client' / 'fronts' / 'Monocraft' / 'Monocraft.otf'), 13) as default_font: | ||
dpg.add_font_range_hint(dpg.mvFontRangeHint_Default) | ||
dpg.add_font_range_hint(dpg.mvFontRangeHint_Cyrillic) | ||
|
||
dpg.add_font_range(0x0391, 0x03C9) #Greek character range | ||
dpg.add_font_range(0x2070, 0x209F) #Range of upper and lower numerical indices | ||
|
||
if sys.platform == 'win32': # Иди нахуй винда | ||
_remap_chars() | ||
|
||
dpg.bind_font(default_font) | ||
|
||
def _remap_chars(): | ||
biglet = 0x0410 | ||
for i1 in range(0x00C0, 0xE0): | ||
dpg.add_char_remap(i1, biglet) | ||
dpg.add_char_remap(i1 + 0x20, biglet + 0x20) | ||
biglet += 1 | ||
|
||
dpg.add_char_remap(0x00A8, 0x0401) # Ё | ||
dpg.add_char_remap(0x00B8, 0x0451) # ё |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.