Title screen: «Грати» tied to the server status, status icon, «Сервери», icon row, gap under the logo

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Fulldroper
2026-10-14 06:07:46 +03:00
co-authored by Claude Opus 5.5
parent 1dcefc772c
commit 3876cb39a5
8 changed files with 464 additions and 41 deletions
+6 -6
View File
@@ -5,9 +5,10 @@
<config dir> is the client pack's config/ or a profile's config/. The version is read from pack.toml next to the
config dir when it is not given.
Layout: the key art as the background, our logo instead of Minecraft's, one wide button that joins the server,
single player and multiplayer, then language, options and an icon-only quit button in one row. Minecraft's own
lines in the bottom left corner are replaced with the pack version. The layout file itself is
Layout: the key art as the background, our logo instead of Minecraft's, a wide "Грати" button that joins the server
(active only while the server is online) with a status icon beside it, single player and the server list, then a
row of icon buttons: language, options, quit. Minecraft's own lines in the bottom left corner are replaced with
the pack version. The layout file itself is
branding/menu/title_screen_layout.txt; this script copies it with the pictures, draws the version label and
switches the window title, the window icon and the title-screen customisation on.
"""
@@ -58,9 +59,8 @@ def main() -> None:
version_label = label(Font(jar), f'{WINDOW_TITLE} {version}')
(fm / 'assets').mkdir(parents=True, exist_ok=True)
(fm / 'customization').mkdir(parents=True, exist_ok=True)
shutil.copyfile(MENU / 'logo.png', fm / 'assets' / 'logo.png')
shutil.copyfile(MENU / 'background.png', fm / 'assets' / 'background.png')
shutil.copyfile(MENU / 'quit.png', fm / 'assets' / 'quit.png')
for picture in MENU.glob('*.png'): # background, logo, button and status icons
shutil.copyfile(picture, fm / 'assets' / picture.name)
version_label.save(fm / 'assets' / 'version.png')
for icon in ('favicon-16x16.png', 'favicon-32x32.png'):
shutil.copyfile(ICONS / icon, fm / 'assets' / icon)