diff --git a/branding/README.md b/branding/README.md new file mode 100644 index 0000000..d5d22a0 --- /dev/null +++ b/branding/README.md @@ -0,0 +1,73 @@ +# Брендинг Create RP + +Вигляд і голос проекту. Тексти (описи, привітання, анонс, стислі правила) — у вікі клієнта, сторінка «Брендинг». + +## Назва й слоган + +- **Create RP** — латиницею, двома словами. Не «CreateRP», не «Креейт РП». +- Повна форма **Pinecraft · Create RP** — лише там, де треба назвати мережу серверів. +- Слоган: **Держава пари й шестерень**. + +## Кольори + +| Колір | Hex | Де | +| --- | --- | --- | +| Латунь | `#D9A441` (світла `#F5CD6E`, темна `#A8742A`, тінь `#68441A`) | «CREATE», шестерня, акценти | +| Цегла | `#B04E3A` (тло іконок `#6E3428`) | «RP», плашки, державні будівлі | +| Чорнило | `#261810` | обвідка, темний текст | +| Вершки | `#F3E5C4` | дрібний текст на темному | + +## Шрифт і манера + +- Лого й написи на картинках — піксельний шрифт Minecraft, жирне накреслення, літери залито текстурою латунного блоку Create. +- Піксельні картинки збільшуємо лише в ціле число разів, без згладжування. +- Тон текстів: спокійний і діловий, трохи старосвітський — «громадянин», «держава», «скарбниця», «спури». Без канцеляриту й без зайвих англіцизмів. + +## Файли + +| Шлях | Що це | +| --- | --- | +| `logo/logo.png` | лого зі слоганом, прозоре тло | +| `logo/wordmark.png` | лише назва | +| `logo/wordmark-white.png`, `logo/wordmark-dark.png` | в один колір — для темного й світлого тла | +| `logo/gear.png` | шестерня — простий знак | +| `logo/emblem.png` | герб держави | +| `icons/server-icon.png` | іконка у списку серверів, 64×64 | +| `icons/avatar-512.png` | аватар: Gitea, Discord, збірка | +| `icons/favicon-16x16.png`, `icons/favicon-32x32.png` | іконка вікна гри | +| `banners/discord-banner.png` | банер Discord-сервера, 960×540 | +| `banners/launch.png` | анонс відкриття, 1280×720 | +| `banners/invite.png` | картинка-запрошення, 1200×630 | +| `banners/wiki-cover.png` | обкладинка вікі й README, 1280×320 | +| `menu/` | головне меню гри для FancyMenu: тло, лого, макет | +| `art/keyart.png` | ілюстрація, з якої зроблено банери й тло меню | + +## Як перебудувати + +``` +python tools/branding/build.py <1.21.1.jar> branding/art/keyart.png [emblem_raw.png] +python tools/branding/fancymenu.py <тека config гри або збірки> +``` + +Перший скрипт малює лого, іконки й банери: шрифт і текстури бере з jar-ів Minecraft і Create (у репозиторії їх +немає), тло — з `art/keyart.png`. Заміниш ілюстрацію на свій кадр із гри — перезапусти, і всі банери й тло меню +оновляться. Другий ставить головне меню в теку `config/fancymenu`. + +## Прапор держави + +Червоне полотнище, жовта облямівка, у центрі жовте коло з червоною квіткою-шестернею: + +``` +/give @p minecraft:red_banner[banner_patterns=[{pattern:"minecraft:border",color:"yellow"},{pattern:"minecraft:circle",color:"yellow"},{pattern:"minecraft:flower",color:"red"}]] +``` + +## MOTD + +``` +§6§lCreate RP §8» §7держава пари й шестерень +§eПрацюй · будуй · торгуй з державою +``` + +## Обмеження + +`art/keyart.png` і герб згенеровано локально моделлю Qwen-Image — ліцензія дозволяє лише некомерційне використання. diff --git a/branding/art/emblem_raw.png b/branding/art/emblem_raw.png new file mode 100644 index 0000000..842f182 Binary files /dev/null and b/branding/art/emblem_raw.png differ diff --git a/branding/art/keyart.png b/branding/art/keyart.png new file mode 100644 index 0000000..8ac5d85 Binary files /dev/null and b/branding/art/keyart.png differ diff --git a/branding/banners/discord-banner.png b/branding/banners/discord-banner.png new file mode 100644 index 0000000..bcf5e79 Binary files /dev/null and b/branding/banners/discord-banner.png differ diff --git a/branding/banners/invite.png b/branding/banners/invite.png new file mode 100644 index 0000000..79b9ffa Binary files /dev/null and b/branding/banners/invite.png differ diff --git a/branding/banners/launch.png b/branding/banners/launch.png new file mode 100644 index 0000000..a0bd7a6 Binary files /dev/null and b/branding/banners/launch.png differ diff --git a/branding/banners/wiki-cover.png b/branding/banners/wiki-cover.png new file mode 100644 index 0000000..77f7589 Binary files /dev/null and b/branding/banners/wiki-cover.png differ diff --git a/branding/icons/avatar-512.png b/branding/icons/avatar-512.png new file mode 100644 index 0000000..fe0204c Binary files /dev/null and b/branding/icons/avatar-512.png differ diff --git a/branding/icons/favicon-16x16.png b/branding/icons/favicon-16x16.png new file mode 100644 index 0000000..7f186a5 Binary files /dev/null and b/branding/icons/favicon-16x16.png differ diff --git a/branding/icons/favicon-32x32.png b/branding/icons/favicon-32x32.png new file mode 100644 index 0000000..8858d4e Binary files /dev/null and b/branding/icons/favicon-32x32.png differ diff --git a/branding/icons/server-icon.png b/branding/icons/server-icon.png new file mode 100644 index 0000000..e8ee83d Binary files /dev/null and b/branding/icons/server-icon.png differ diff --git a/branding/logo/emblem.png b/branding/logo/emblem.png new file mode 100644 index 0000000..8cddf15 Binary files /dev/null and b/branding/logo/emblem.png differ diff --git a/branding/logo/gear.png b/branding/logo/gear.png new file mode 100644 index 0000000..ba5effa Binary files /dev/null and b/branding/logo/gear.png differ diff --git a/branding/logo/logo.png b/branding/logo/logo.png new file mode 100644 index 0000000..98e7cee Binary files /dev/null and b/branding/logo/logo.png differ diff --git a/branding/logo/wordmark-dark.png b/branding/logo/wordmark-dark.png new file mode 100644 index 0000000..54746ed Binary files /dev/null and b/branding/logo/wordmark-dark.png differ diff --git a/branding/logo/wordmark-white.png b/branding/logo/wordmark-white.png new file mode 100644 index 0000000..10c6912 Binary files /dev/null and b/branding/logo/wordmark-white.png differ diff --git a/branding/logo/wordmark.png b/branding/logo/wordmark.png new file mode 100644 index 0000000..78b0401 Binary files /dev/null and b/branding/logo/wordmark.png differ diff --git a/branding/menu/background.png b/branding/menu/background.png new file mode 100644 index 0000000..36a7618 Binary files /dev/null and b/branding/menu/background.png differ diff --git a/branding/menu/logo.png b/branding/menu/logo.png new file mode 100644 index 0000000..9e5b40a Binary files /dev/null and b/branding/menu/logo.png differ diff --git a/branding/menu/title_screen_layout.txt b/branding/menu/title_screen_layout.txt new file mode 100644 index 0000000..6d98999 --- /dev/null +++ b/branding/menu/title_screen_layout.txt @@ -0,0 +1,1576 @@ +type = fancymenu_layout + +layout-meta { + identifier = title_screen + render_custom_elements_behind_vanilla = true + last_edited_time = 1791943841549 + is_enabled = true + randommode = false + randomgroup = 1 + randomonlyfirsttime = false + layout_index = 0 + [loading_requirement_container_meta:44bc0572-ec7b-4ce4-ba68-acb7c06483ea-1778523942417] = [groups:][instances:] +} + +menu_background { + instance_identifier = 56410b41-5c93-4890-9c5a-ea4b95d30238-1778341927600 + background_type = color_fancymenu + show_background = false + color = #FFC800FF +} + +menu_background { + instance_identifier = ff17dd8a-cef9-47cc-94d3-e4b3f8ba754f-1778341927601 + background_type = panorama + show_background = false +} + +menu_background { + instance_identifier = 2e0adeef-ddd0-4713-83fb-3a9a77892d16-1778341927601 + background_type = image + show_background = true + image_path = [source:local]/config/fancymenu/assets/background.png + slide = false + repeat_texture = false + parallax = false + parallax_intensity_x = 0.02 + parallax_intensity_y = 0.02 + invert_parallax = false + restart_animated_on_menu_load = false +} + +menu_background { + instance_identifier = 4738d53f-1514-42c9-ba93-d8fe97d13b75-1778341927601 + background_type = slideshow + show_background = false +} + +menu_background { + instance_identifier = c374bc2b-db7b-4802-b7a6-d3f354bf4d40-1778341927601 + background_type = video + show_background = false + loop = false + volume = 1.0 + sound_source = master + parallax = false + parallax_intensity_x = 0.02 + parallax_intensity_y = 0.02 + invert_parallax = false + play_in_editor = true +} + +menu_background { + instance_identifier = e2f01874-4736-42f1-b755-7e3d33a89695-1778341927601 + background_type = video_mcef + show_background = false + loop = false + volume = 1.0 + sound_source = master + parallax = false + parallax_intensity_x = 0.02 + parallax_intensity_y = 0.02 + invert_parallax = false +} + +menu_background { + instance_identifier = a61ae1c5-1d4d-4b70-a8a2-3ea01337bfad-1778341927601 + background_type = browser + show_background = false + url = https://docs.fancymenu.net + consume_mouse_clicks = true + consume_mouse_scrolls = true + consume_keyboard_presses = true + process_mouse_clicks = true + process_mouse_scrolls = true + process_keyboard_presses = true + hide_video_controls = false + loop_videos = false + mute_media = false + media_volume = 1.0 +} + +menu_background { + instance_identifier = 58d10a53-9b6a-457d-a425-e9b4abb18797-1778341927601 + background_type = glsl + show_background = false + inline_shader_source = + buffer_a_inline_source = + buffer_b_inline_source = + buffer_c_inline_source = + buffer_d_inline_source = + image_ichannel0_input = none + image_ichannel1_input = none + image_ichannel2_input = none + image_ichannel3_input = none + buffer_a_ichannel0_input = none + buffer_a_ichannel1_input = none + buffer_a_ichannel2_input = none + buffer_a_ichannel3_input = none + buffer_b_ichannel0_input = none + buffer_b_ichannel1_input = none + buffer_b_ichannel2_input = none + buffer_b_ichannel3_input = none + buffer_c_ichannel0_input = none + buffer_c_ichannel1_input = none + buffer_c_ichannel2_input = none + buffer_c_ichannel3_input = none + buffer_d_ichannel0_input = none + buffer_d_ichannel1_input = none + buffer_d_ichannel2_input = none + buffer_d_ichannel3_input = none + compile_mode = auto + force_shadertoy_compatibility = true + freeze_time = false + time_scale = 1.0 + enable_blending = true + use_input = true + mouse_position_requires_hold = false + opacity_multiplier = 1.0 + show_compile_errors = true +} + +decoration_overlay { + overlay_type = browser + instance_identifier = 320ecc17-9891-4b9b-ad12-2fb7b0e0155a-1778341927601 + show_decoration_overlay = false + url = https://docs.fancymenu.net + consume_mouse_clicks = true + consume_mouse_scrolls = true + consume_keyboard_presses = true + process_mouse_clicks = true + process_mouse_scrolls = true + process_keyboard_presses = true + hide_video_controls = false + loop_videos = false + mute_media = false + media_volume = 1.0 +} + +decoration_overlay { + overlay_type = glsl + instance_identifier = 8e355a84-1d01-4289-8671-0c53b11ac1a4-1778341927601 + show_decoration_overlay = false + inline_shader_source = + buffer_a_inline_source = + buffer_b_inline_source = + buffer_c_inline_source = + buffer_d_inline_source = + image_ichannel0_input = none + image_ichannel1_input = none + image_ichannel2_input = none + image_ichannel3_input = none + buffer_a_ichannel0_input = none + buffer_a_ichannel1_input = none + buffer_a_ichannel2_input = none + buffer_a_ichannel3_input = none + buffer_b_ichannel0_input = none + buffer_b_ichannel1_input = none + buffer_b_ichannel2_input = none + buffer_b_ichannel3_input = none + buffer_c_ichannel0_input = none + buffer_c_ichannel1_input = none + buffer_c_ichannel2_input = none + buffer_c_ichannel3_input = none + buffer_d_ichannel0_input = none + buffer_d_ichannel1_input = none + buffer_d_ichannel2_input = none + buffer_d_ichannel3_input = none + compile_mode = auto + force_shadertoy_compatibility = true + freeze_time = false + time_scale = 1.0 + enable_blending = true + use_input = true + mouse_position_requires_hold = false + opacity_multiplier = 1.0 + show_compile_errors = true +} + +decoration_overlay { + overlay_type = buddy + instance_identifier = 4e41b0f5-2e31-4591-a4aa-3f3161ec7db2-1778341927601 + show_decoration_overlay = false + buddy_hunger_decay_per_tick = 0.005 + buddy_happiness_decay_per_tick = 0.003 + buddy_fun_decay_per_tick = 0.002 + buddy_energy_decay_per_tick = 0.002 + buddy_energy_sleep_regen_per_tick = 0.03 + buddy_play_energy_drain_per_tick = 0.03 + buddy_play_fun_gain_per_tick = 0.05 + buddy_play_happiness_gain_per_tick = 0.01 + buddy_play_hunger_drain_per_tick = 0.01 + buddy_chase_energy_drain_per_tick = 0.024 + buddy_chase_hunger_drain_per_tick = 0.005 + buddy_hop_energy_drain_per_tick = 0.005 + buddy_hop_hunger_drain_per_tick = 0.002 + buddy_excited_energy_drain_per_tick = 0.01 + buddy_excited_happiness_gain_per_tick = 0.01 + buddy_excited_hunger_drain_per_tick = 0.003 + buddy_running_energy_drain_per_tick = 0.01 + buddy_running_hunger_drain_per_tick = 0.005 + buddy_food_hunger_gain = 20.0 + buddy_food_happiness_gain = 5.0 + buddy_pet_happiness_gain = 15.0 + buddy_wakeup_happiness_penalty = 2.5 + buddy_max_poops_cap = 10 + buddy_can_die = true +} + +decoration_overlay { + overlay_type = string_lights + instance_identifier = d1462f65-f61b-4422-ad27-217e843d8a6a-1778341927601 + show_decoration_overlay = false + string_lights_scale = 1.0 + string_lights_wind_strength = 1.0 + string_lights_flicker_speed = 1.0 + string_lights_left_center_to_top_center = true + string_lights_right_center_to_top_center = true + string_lights_bottom_left_to_top_center = false + string_lights_bottom_right_to_top_center = false + string_lights_top_left_to_top_right = true + string_lights_bottom_left_to_bottom_right = false + string_lights_loose_left_top = false + string_lights_loose_right_top = false + string_lights_left_center_to_top_center_christmas_mode = false + string_lights_right_center_to_top_center_christmas_mode = false + string_lights_bottom_left_to_top_center_christmas_mode = false + string_lights_bottom_right_to_top_center_christmas_mode = false + string_lights_top_left_to_top_right_christmas_mode = false + string_lights_bottom_left_to_bottom_right_christmas_mode = false + string_lights_loose_left_top_christmas_mode = false + string_lights_loose_right_top_christmas_mode = false + string_lights_left_center_to_top_center_color_hex = #FFD27A + string_lights_right_center_to_top_center_color_hex = #FFD27A + string_lights_bottom_left_to_top_center_color_hex = #FFD27A + string_lights_bottom_right_to_top_center_color_hex = #FFD27A + string_lights_top_left_to_top_right_color_hex = #FFD27A + string_lights_bottom_left_to_bottom_right_color_hex = #FFD27A + string_lights_loose_left_top_color_hex = #FFD27A + string_lights_loose_right_top_color_hex = #FFD27A +} + +decoration_overlay { + overlay_type = fireworks + instance_identifier = 3687a131-3f4f-4df0-aca5-a79565f1b0be-1778341927601 + show_decoration_overlay = false + fireworks_scale = 1.0 + fireworks_explosion_size = 1.0 + fireworks_amount = 1.0 + fireworks_show_rockets = true +} + +decoration_overlay { + overlay_type = snowfall + instance_identifier = df619a97-2d75-4d51-88c9-324c48c7cd25-1778341927601 + show_decoration_overlay = false + snow_intensity = 1.0 + snow_scale = 1.0 + snow_speed = 1.0 + snow_accumulation = true + snow_color_hex = #FFFFFF +} + +decoration_overlay { + overlay_type = rainfall + instance_identifier = 8e36f13f-4482-4c29-b971-28a4f5497359-1778341927601 + show_decoration_overlay = false + rain_intensity = 1.0 + rain_scale = 1.0 + rain_thunder_brightness = 1.0 + rain_puddles = true + rain_drips = true + rain_thunder = false + rain_color_hex = #CFE7FF +} + +decoration_overlay { + overlay_type = fireflies + instance_identifier = 81a3a82e-84dd-4ca8-bf01-6c1558752725-1778341927601 + show_decoration_overlay = true + firefly_group_density = 1.0 + firefly_group_amount = 1.0 + firefly_group_size = 1.0 + firefly_scale = 1.0 + firefly_follow_mouse = true + firefly_landing = true + firefly_color_hex = #FFE08A +} + +decoration_overlay { + overlay_type = leaves + instance_identifier = e896eac8-747d-419d-ae50-1536955ed851-1778341927601 + show_decoration_overlay = false + leaves_density = 1.0 + leaves_wind_intensity = 1.0 + leaves_wind_blows = true + leaves_fall_speed = 1.0 + leaves_scale = 1.0 + leaves_color_start_hex = #7BA84F + leaves_color_end_hex = #D58A3B +} + +decoration_overlay { + overlay_type = confetti + instance_identifier = 80da72d5-fd9b-4552-a51f-11d72d32388d-1778341927601 + show_decoration_overlay = false + confetti_scale = 1.0 + confetti_fall_speed = 1.0 + confetti_burst_density = 1.0 + confetti_burst_amount = 1.0 + confetti_particle_cap = 500 + confetti_color_mix_mode = true + confetti_mouse_click_mode = false + confetti_color_hex = #FFFFFF +} + +customization { + action = backgroundoptions + keepaspectratio = false +} + +scroll_list_customization { + preserve_scroll_list_header_footer_aspect_ratio = true + render_scroll_list_header_shadow = true + render_scroll_list_footer_shadow = true + show_scroll_list_header_footer_preview_in_editor = false + repeat_scroll_list_header_texture = false + repeat_scroll_list_footer_texture = false + show_screen_background_overlay_on_custom_background = false + apply_vanilla_background_blur = false +} + +layout_action_executable_blocks { +} + +element { + element_type = image + instance_identifier = 1566f8f7-44f7-41e4-a292-6f8a73be37c6-1778342040128 + appearance_delay = no_delay + disappearance_delay = no_delay + fade_in_v2 = no_fading + fade_out = no_fading + auto_sizing = false + auto_sizing_base_screen_width = 2560 + auto_sizing_base_screen_height = 1355 + sticky_anchor = false + anchor_point = mid-centered + x = -110 + y = -104 + width = 221 + height = 60 + stay_on_screen = true + element_loading_requirement_container_identifier = 6735ee2e-e532-4d6d-bcc6-5f8ca1138f7d-1778342040128 + [loading_requirement_container_meta:6735ee2e-e532-4d6d-bcc6-5f8ca1138f7d-1778342040128] = [groups:][instances:] + enable_parallax = false + invert_parallax = false + animated_offset_x = 0 + animated_offset_y = 0 + load_once_per_session = false + layer_hidden_in_editor = false + advanced_rotation_mode = false + advanced_vertical_tilt_mode = false + advanced_horizontal_tilt_mode = false + should_be_affected_by_decoration_overlays = false + in_editor_color = #FFC800FF + advanced_posx = -2147483648 + advanced_posy = -2147483648 + advanced_width = -2147483648 + advanced_height = -2147483648 + stretch_x = false + stretch_y = false + appearance_delay_seconds = 1.0 + disappearance_delay_seconds = 1.0 + fade_in_speed = 1.0 + fade_out_speed = 1.0 + base_opacity = 1.0 + parallax_intensity_x = 0.5 + parallax_intensity_y = 0.5 + rotation_degrees = 0.0 + advanced_rotation_degrees = 0.0 + vertical_tilt_degrees = 0.0 + advanced_vertical_tilt_degrees = 0.0 + horizontal_tilt_degrees = 0.0 + advanced_horizontal_tilt_degrees = 0.0 + source = [source:local]/config/fancymenu/assets/logo.png + repeat_texture = false + nine_slice_texture = false + nine_slice_texture_border_x = 5 + nine_slice_texture_border_y = 5 + restart_animated_on_menu_load = false + image_tint = #FFFFFF + rounding_radius_top_left = 0.0 + rounding_radius_top_right = 0.0 + rounding_radius_bottom_right = 0.0 + rounding_radius_bottom_left = 0.0 +} + +element { + button_element_executable_block_identifier = dadf6ab2-797a-4c26-ae60-691ac1a739fd-1778342490749 + [executable_action_instance:a40cd16c-1081-4b52-ab5b-fa99e4a6578c-1778342663873][action_type:joinserver] = create.fulldroper.ks.ua + [executable_block:dadf6ab2-797a-4c26-ae60-691ac1a739fd-1778342490749][type:generic] = [executables:a40cd16c-1081-4b52-ab5b-fa99e4a6578c-1778342663873;] + underline_label_on_hover = false + transparent_background = false + restartbackgroundanimations = true + nine_slice_custom_background = false + label = Увійти на сервер + navigatable = true + widget_active_state_requirement_container_identifier = adbaccba-22cf-4849-b420-848323ffa1e2-1778342490749 + [loading_requirement_container_meta:adbaccba-22cf-4849-b420-848323ffa1e2-1778342490749] = [groups:][instances:] + is_template = false + template_apply_width = false + template_apply_height = false + template_apply_posx = false + template_apply_posy = false + template_apply_opacity = false + template_apply_visibility = false + template_apply_label = false + template_share_with = buttons + nine_slice_slider_handle = false + element_type = custom_button + instance_identifier = fbd07ff8-36a3-4f7b-88c6-e04248b92eee-1778342490749 + appearance_delay = no_delay + disappearance_delay = no_delay + fade_in_v2 = no_fading + fade_out = no_fading + auto_sizing = false + auto_sizing_base_screen_width = 2560 + auto_sizing_base_screen_height = 1355 + sticky_anchor = false + anchor_point = mid-centered + x = -100 + y = -36 + width = 200 + height = 20 + stay_on_screen = true + element_loading_requirement_container_identifier = 9f5c61c8-d114-494f-a5fc-d8e9f01a536c-1778342490749 + [loading_requirement_container_meta:9f5c61c8-d114-494f-a5fc-d8e9f01a536c-1778342490749] = [groups:][instances:] + enable_parallax = false + invert_parallax = false + animated_offset_x = 0 + animated_offset_y = 0 + load_once_per_session = false + layer_hidden_in_editor = false + advanced_rotation_mode = false + advanced_vertical_tilt_mode = false + advanced_horizontal_tilt_mode = false + should_be_affected_by_decoration_overlays = true + in_editor_color = #FFC800FF + advanced_posx = -2147483648 + advanced_posy = -2147483648 + advanced_width = -2147483648 + advanced_height = -2147483648 + stretch_x = false + stretch_y = false + appearance_delay_seconds = 1.0 + disappearance_delay_seconds = 1.0 + fade_in_speed = 1.0 + fade_out_speed = 1.0 + base_opacity = 1.0 + parallax_intensity_x = 0.5 + parallax_intensity_y = 0.5 + rotation_degrees = 0.0 + advanced_rotation_degrees = 0.0 + vertical_tilt_degrees = 0.0 + advanced_vertical_tilt_degrees = 0.0 + horizontal_tilt_degrees = 0.0 + advanced_horizontal_tilt_degrees = 0.0 + label_scale = 1.0 + label_shadow = true + nine_slice_border_x = 5 + nine_slice_border_y = 5 + nine_slice_slider_handle_border_x = 5 + nine_slice_slider_handle_border_y = 5 +} + +vanilla_button { + button_element_executable_block_identifier = 16b09226-06a9-4fee-8c35-74c0dd5d812c-1778341927602 + [executable_block:16b09226-06a9-4fee-8c35-74c0dd5d812c-1778341927602][type:generic] = [executables:] + underline_label_on_hover = false + transparent_background = false + restartbackgroundanimations = true + nine_slice_custom_background = false + navigatable = true + widget_active_state_requirement_container_identifier = 34863eba-cf0d-4227-b09c-b9ac0332c4b0-1778341927602 + [loading_requirement_container_meta:34863eba-cf0d-4227-b09c-b9ac0332c4b0-1778341927602] = [groups:][instances:] + is_template = false + template_apply_width = false + template_apply_height = false + template_apply_posx = false + template_apply_posy = false + template_apply_opacity = false + template_apply_visibility = false + template_apply_label = false + template_share_with = buttons + nine_slice_slider_handle = false + element_type = vanilla_button + instance_identifier = 376306 + appearance_delay = no_delay + disappearance_delay = no_delay + fade_in_v2 = no_fading + fade_out = no_fading + auto_sizing = false + auto_sizing_base_screen_width = 2560 + auto_sizing_base_screen_height = 1355 + sticky_anchor = false + anchor_point = mid-centered + x = -124 + y = -12 + width = 20 + height = 20 + stay_on_screen = true + element_loading_requirement_container_identifier = 6cea79f6-99ec-4fc0-9586-ef700702bfe5-1778341927602 + [loading_requirement_container_meta:6cea79f6-99ec-4fc0-9586-ef700702bfe5-1778341927602] = [groups:][instances:] + enable_parallax = false + invert_parallax = false + animated_offset_x = 0 + animated_offset_y = 0 + load_once_per_session = false + layer_hidden_in_editor = false + advanced_rotation_mode = false + advanced_vertical_tilt_mode = false + advanced_horizontal_tilt_mode = false + should_be_affected_by_decoration_overlays = true + in_editor_color = #FFC800FF + advanced_posx = -2147483648 + advanced_posy = -2147483648 + advanced_width = -2147483648 + advanced_height = -2147483648 + stretch_x = false + stretch_y = false + appearance_delay_seconds = 1.0 + disappearance_delay_seconds = 1.0 + fade_in_speed = 1.0 + fade_out_speed = 1.0 + base_opacity = 1.0 + parallax_intensity_x = 0.5 + parallax_intensity_y = 0.5 + rotation_degrees = 0.0 + advanced_rotation_degrees = 0.0 + vertical_tilt_degrees = 0.0 + advanced_vertical_tilt_degrees = 0.0 + horizontal_tilt_degrees = 0.0 + advanced_horizontal_tilt_degrees = 0.0 + label_scale = 1.0 + label_shadow = true + nine_slice_border_x = 5 + nine_slice_border_y = 5 + nine_slice_slider_handle_border_x = 5 + nine_slice_slider_handle_border_y = 5 + automated_button_clicks = 0 + is_hidden = false +} + +vanilla_button { + button_element_executable_block_identifier = be5a4d4e-d91c-46de-aeb8-6085ee3a52c3-1778341927602 + [executable_block:be5a4d4e-d91c-46de-aeb8-6085ee3a52c3-1778341927602][type:generic] = [executables:] + underline_label_on_hover = false + transparent_background = false + restartbackgroundanimations = true + nine_slice_custom_background = false + navigatable = true + widget_active_state_requirement_container_identifier = f40b2bc8-d786-4de4-a764-79a6f54453ea-1778341927602 + [loading_requirement_container_meta:f40b2bc8-d786-4de4-a764-79a6f54453ea-1778341927602] = [groups:][instances:] + is_template = false + template_apply_width = false + template_apply_height = false + template_apply_posx = false + template_apply_posy = false + template_apply_opacity = false + template_apply_visibility = false + template_apply_label = false + template_share_with = buttons + nine_slice_slider_handle = false + element_type = vanilla_button + instance_identifier = title_screen_copyright_button + appearance_delay = no_delay + disappearance_delay = no_delay + fade_in_v2 = no_fading + fade_out = no_fading + auto_sizing = false + auto_sizing_base_screen_width = 0 + auto_sizing_base_screen_height = 0 + sticky_anchor = false + anchor_point = vanilla + x = 314 + y = 261 + width = 196 + height = 10 + stay_on_screen = true + element_loading_requirement_container_identifier = 5a297f06-42ab-430c-9fa7-45e4ff55764d-1778341927602 + [loading_requirement_container_meta:5a297f06-42ab-430c-9fa7-45e4ff55764d-1778341927602] = [groups:][instances:] + enable_parallax = false + invert_parallax = false + animated_offset_x = 0 + animated_offset_y = 0 + load_once_per_session = false + layer_hidden_in_editor = false + advanced_rotation_mode = false + advanced_vertical_tilt_mode = false + advanced_horizontal_tilt_mode = false + should_be_affected_by_decoration_overlays = true + in_editor_color = #FFC800FF + advanced_posx = -2147483648 + advanced_posy = -2147483648 + advanced_width = -2147483648 + advanced_height = -2147483648 + stretch_x = false + stretch_y = false + appearance_delay_seconds = 1.0 + disappearance_delay_seconds = 1.0 + fade_in_speed = 1.0 + fade_out_speed = 1.0 + base_opacity = 1.0 + parallax_intensity_x = 0.5 + parallax_intensity_y = 0.5 + rotation_degrees = 0.0 + advanced_rotation_degrees = 0.0 + vertical_tilt_degrees = 0.0 + advanced_vertical_tilt_degrees = 0.0 + horizontal_tilt_degrees = 0.0 + advanced_horizontal_tilt_degrees = 0.0 + label_scale = 1.0 + label_shadow = true + nine_slice_border_x = 5 + nine_slice_border_y = 5 + nine_slice_slider_handle_border_x = 5 + nine_slice_slider_handle_border_y = 5 + automated_button_clicks = 0 + is_hidden = false +} + +vanilla_button { + button_element_executable_block_identifier = e492fc3f-10ec-4b52-913d-76981bc3748c-1778341927602 + [executable_block:e492fc3f-10ec-4b52-913d-76981bc3748c-1778341927602][type:generic] = [executables:] + underline_label_on_hover = false + transparent_background = false + restartbackgroundanimations = true + nine_slice_custom_background = false + navigatable = true + widget_active_state_requirement_container_identifier = 532a5ebc-34d7-4b7f-9197-249546b89b09-1778341927602 + [loading_requirement_container_meta:532a5ebc-34d7-4b7f-9197-249546b89b09-1778341927602] = [groups:][instances:] + is_template = false + template_apply_width = false + template_apply_height = false + template_apply_posx = false + template_apply_posy = false + template_apply_opacity = false + template_apply_visibility = false + template_apply_label = false + template_share_with = buttons + nine_slice_slider_handle = false + element_type = vanilla_button + instance_identifier = minecraft_branding_widget + appearance_delay = no_delay + disappearance_delay = no_delay + fade_in_v2 = no_fading + fade_out = no_fading + auto_sizing = false + auto_sizing_base_screen_width = 2560 + auto_sizing_base_screen_height = 1355 + sticky_anchor = false + anchor_point = vanilla + x = 2 + y = 241 + width = 150 + height = 29 + stay_on_screen = true + element_loading_requirement_container_identifier = 7d1914d0-2cf3-4f67-b967-3356a6791924-1778341927602 + [loading_requirement_container_meta:7d1914d0-2cf3-4f67-b967-3356a6791924-1778341927602] = [groups:][instances:] + enable_parallax = false + invert_parallax = false + animated_offset_x = 0 + animated_offset_y = 0 + load_once_per_session = false + layer_hidden_in_editor = false + advanced_rotation_mode = false + advanced_vertical_tilt_mode = false + advanced_horizontal_tilt_mode = false + should_be_affected_by_decoration_overlays = true + in_editor_color = #FFC800FF + advanced_posx = -2147483648 + advanced_posy = -2147483648 + advanced_width = -2147483648 + advanced_height = -2147483648 + stretch_x = false + stretch_y = false + appearance_delay_seconds = 1.0 + disappearance_delay_seconds = 1.0 + fade_in_speed = 1.0 + fade_out_speed = 1.0 + base_opacity = 1.0 + parallax_intensity_x = 0.5 + parallax_intensity_y = 0.5 + rotation_degrees = 0.0 + advanced_rotation_degrees = 0.0 + vertical_tilt_degrees = 0.0 + advanced_vertical_tilt_degrees = 0.0 + horizontal_tilt_degrees = 0.0 + advanced_horizontal_tilt_degrees = 0.0 + label_scale = 1.0 + label_shadow = true + nine_slice_border_x = 5 + nine_slice_border_y = 5 + nine_slice_slider_handle_border_x = 5 + nine_slice_slider_handle_border_y = 5 + automated_button_clicks = 0 + is_hidden = false +} + +vanilla_button { + button_element_executable_block_identifier = ec4ab4aa-43a2-4e2b-a3d6-80d34cdcb3f8-1778341927602 + [executable_block:ec4ab4aa-43a2-4e2b-a3d6-80d34cdcb3f8-1778341927602][type:generic] = [executables:] + underline_label_on_hover = false + transparent_background = false + restartbackgroundanimations = true + nine_slice_custom_background = false + navigatable = true + widget_active_state_requirement_container_identifier = dbe65849-4e14-4633-9a4f-a5b2a6437d69-1778341927602 + [loading_requirement_container_meta:dbe65849-4e14-4633-9a4f-a5b2a6437d69-1778341927602] = [groups:][instances:] + is_template = false + template_apply_width = false + template_apply_height = false + template_apply_posx = false + template_apply_posy = false + template_apply_opacity = false + template_apply_visibility = false + template_apply_label = false + template_share_with = buttons + nine_slice_slider_handle = false + element_type = vanilla_button + instance_identifier = 376388 + appearance_delay = no_delay + disappearance_delay = no_delay + fade_in_v2 = no_fading + fade_out = no_fading + auto_sizing = false + auto_sizing_base_screen_width = 2560 + auto_sizing_base_screen_height = 1355 + sticky_anchor = false + anchor_point = mid-centered + x = -124 + y = 36 + width = 20 + height = 20 + stay_on_screen = true + element_loading_requirement_container_identifier = e6635f8e-ca69-425f-abea-7a8da239ca6d-1778341927602 + [loading_requirement_container_meta:e6635f8e-ca69-425f-abea-7a8da239ca6d-1778341927602] = [groups:][instances:] + enable_parallax = false + invert_parallax = false + animated_offset_x = 0 + animated_offset_y = 0 + load_once_per_session = false + layer_hidden_in_editor = false + advanced_rotation_mode = false + advanced_vertical_tilt_mode = false + advanced_horizontal_tilt_mode = false + should_be_affected_by_decoration_overlays = true + in_editor_color = #FFC800FF + advanced_posx = -2147483648 + advanced_posy = -2147483648 + advanced_width = -2147483648 + advanced_height = -2147483648 + stretch_x = false + stretch_y = false + appearance_delay_seconds = 1.0 + disappearance_delay_seconds = 1.0 + fade_in_speed = 1.0 + fade_out_speed = 1.0 + base_opacity = 1.0 + parallax_intensity_x = 0.5 + parallax_intensity_y = 0.5 + rotation_degrees = 0.0 + advanced_rotation_degrees = 0.0 + vertical_tilt_degrees = 0.0 + advanced_vertical_tilt_degrees = 0.0 + horizontal_tilt_degrees = 0.0 + advanced_horizontal_tilt_degrees = 0.0 + label_scale = 1.0 + label_shadow = true + nine_slice_border_x = 5 + nine_slice_border_y = 5 + nine_slice_slider_handle_border_x = 5 + nine_slice_slider_handle_border_y = 5 + automated_button_clicks = 0 + is_hidden = false +} + +vanilla_button { + button_element_executable_block_identifier = a3a11fff-8bbe-4bbe-8d43-f564b0f8e699-1778341927602 + [executable_block:a3a11fff-8bbe-4bbe-8d43-f564b0f8e699-1778341927602][type:generic] = [executables:] + underline_label_on_hover = false + transparent_background = false + restartbackgroundanimations = true + nine_slice_custom_background = false + navigatable = true + widget_active_state_requirement_container_identifier = 4d0f9802-fd3d-4ab6-9e05-1704f435439a-1778341927602 + [loading_requirement_container_meta:4d0f9802-fd3d-4ab6-9e05-1704f435439a-1778341927602] = [groups:][instances:] + is_template = false + template_apply_width = false + template_apply_height = false + template_apply_posx = false + template_apply_posy = false + template_apply_opacity = false + template_apply_visibility = false + template_apply_label = false + template_share_with = buttons + nine_slice_slider_handle = false + element_type = vanilla_button + instance_identifier = minecraft_splash_widget + appearance_delay = no_delay + disappearance_delay = no_delay + fade_in_v2 = no_fading + fade_out = no_fading + auto_sizing = false + auto_sizing_base_screen_width = 2560 + auto_sizing_base_screen_height = 1355 + sticky_anchor = false + anchor_point = mid-centered + x = 50 + y = -63 + width = 90 + height = 25 + stay_on_screen = true + element_loading_requirement_container_identifier = d09cc131-ab0d-4342-86cb-d98e902c1450-1778341927602 + [loading_requirement_container_meta:d09cc131-ab0d-4342-86cb-d98e902c1450-1778341927602] = [groups:][instances:] + enable_parallax = false + invert_parallax = false + animated_offset_x = 0 + animated_offset_y = 0 + load_once_per_session = false + layer_hidden_in_editor = false + advanced_rotation_mode = false + advanced_vertical_tilt_mode = false + advanced_horizontal_tilt_mode = false + should_be_affected_by_decoration_overlays = true + in_editor_color = #FFC800FF + advanced_posx = -2147483648 + advanced_posy = -2147483648 + advanced_width = -2147483648 + advanced_height = -2147483648 + stretch_x = false + stretch_y = false + appearance_delay_seconds = 1.0 + disappearance_delay_seconds = 1.0 + fade_in_speed = 1.0 + fade_out_speed = 1.0 + base_opacity = 1.0 + parallax_intensity_x = 0.5 + parallax_intensity_y = 0.5 + rotation_degrees = 0.0 + advanced_rotation_degrees = 0.0 + vertical_tilt_degrees = 0.0 + advanced_vertical_tilt_degrees = 0.0 + horizontal_tilt_degrees = 0.0 + advanced_horizontal_tilt_degrees = 0.0 + label_scale = 1.0 + label_shadow = true + nine_slice_border_x = 5 + nine_slice_border_y = 5 + nine_slice_slider_handle_border_x = 5 + nine_slice_slider_handle_border_y = 5 + automated_button_clicks = 0 + is_hidden = true +} + +vanilla_button { + button_element_executable_block_identifier = e409d880-77c8-432f-97e8-f675bf463716-1778341927602 + [executable_block:e409d880-77c8-432f-97e8-f675bf463716-1778341927602][type:generic] = [executables:] + underline_label_on_hover = false + transparent_background = false + restartbackgroundanimations = true + nine_slice_custom_background = false + navigatable = true + widget_active_state_requirement_container_identifier = adc6c26a-5014-4dc1-9148-e3ffb06b6010-1778341927602 + [loading_requirement_container_meta:adc6c26a-5014-4dc1-9148-e3ffb06b6010-1778341927602] = [groups:][instances:] + is_template = false + template_apply_width = false + template_apply_height = false + template_apply_posx = false + template_apply_posy = false + template_apply_opacity = false + template_apply_visibility = false + template_apply_label = false + template_share_with = buttons + nine_slice_slider_handle = false + element_type = vanilla_button + instance_identifier = mc_titlescreen_quit_button + appearance_delay = no_delay + disappearance_delay = no_delay + fade_in_v2 = no_fading + fade_out = no_fading + auto_sizing = false + auto_sizing_base_screen_width = 2560 + auto_sizing_base_screen_height = 1355 + sticky_anchor = false + anchor_point = mid-centered + x = 2 + y = 36 + width = 98 + height = 20 + stay_on_screen = true + element_loading_requirement_container_identifier = 26fe4d9c-74b2-4c4d-a258-4229c044c5bb-1778341927602 + [loading_requirement_container_meta:26fe4d9c-74b2-4c4d-a258-4229c044c5bb-1778341927602] = [groups:][instances:] + enable_parallax = false + invert_parallax = false + animated_offset_x = 0 + animated_offset_y = 0 + load_once_per_session = false + layer_hidden_in_editor = false + advanced_rotation_mode = false + advanced_vertical_tilt_mode = false + advanced_horizontal_tilt_mode = false + should_be_affected_by_decoration_overlays = true + in_editor_color = #FFC800FF + advanced_posx = -2147483648 + advanced_posy = -2147483648 + advanced_width = -2147483648 + advanced_height = -2147483648 + stretch_x = false + stretch_y = false + appearance_delay_seconds = 1.0 + disappearance_delay_seconds = 1.0 + fade_in_speed = 1.0 + fade_out_speed = 1.0 + base_opacity = 1.0 + parallax_intensity_x = 0.5 + parallax_intensity_y = 0.5 + rotation_degrees = 0.0 + advanced_rotation_degrees = 0.0 + vertical_tilt_degrees = 0.0 + advanced_vertical_tilt_degrees = 0.0 + horizontal_tilt_degrees = 0.0 + advanced_horizontal_tilt_degrees = 0.0 + label_scale = 1.0 + label_shadow = true + nine_slice_border_x = 5 + nine_slice_border_y = 5 + nine_slice_slider_handle_border_x = 5 + nine_slice_slider_handle_border_y = 5 + automated_button_clicks = 0 + is_hidden = false +} + +vanilla_button { + button_element_executable_block_identifier = 5b645a9b-a14d-4016-be31-c9f87da3c03e-1778341927602 + [executable_block:5b645a9b-a14d-4016-be31-c9f87da3c03e-1778341927602][type:generic] = [executables:] + underline_label_on_hover = false + transparent_background = false + restartbackgroundanimations = true + nine_slice_custom_background = false + navigatable = true + widget_active_state_requirement_container_identifier = 448f495f-ad84-4ba7-9bea-b1a19d676c59-1778341927602 + [loading_requirement_container_meta:448f495f-ad84-4ba7-9bea-b1a19d676c59-1778341927602] = [groups:][instances:] + is_template = false + template_apply_width = false + template_apply_height = false + template_apply_posx = false + template_apply_posy = false + template_apply_opacity = false + template_apply_visibility = false + template_apply_label = false + template_share_with = buttons + nine_slice_slider_handle = false + element_type = vanilla_button + instance_identifier = mc_titlescreen_options_button + appearance_delay = no_delay + disappearance_delay = no_delay + fade_in_v2 = no_fading + fade_out = no_fading + auto_sizing = false + auto_sizing_base_screen_width = 2560 + auto_sizing_base_screen_height = 1355 + sticky_anchor = false + anchor_point = mid-centered + x = -100 + y = 36 + width = 98 + height = 20 + stay_on_screen = true + element_loading_requirement_container_identifier = 5c271f02-4570-4fc1-99ab-19ea32d7804f-1778341927602 + [loading_requirement_container_meta:5c271f02-4570-4fc1-99ab-19ea32d7804f-1778341927602] = [groups:][instances:] + enable_parallax = false + invert_parallax = false + animated_offset_x = 0 + animated_offset_y = 0 + load_once_per_session = false + layer_hidden_in_editor = false + advanced_rotation_mode = false + advanced_vertical_tilt_mode = false + advanced_horizontal_tilt_mode = false + should_be_affected_by_decoration_overlays = true + in_editor_color = #FFC800FF + advanced_posx = -2147483648 + advanced_posy = -2147483648 + advanced_width = -2147483648 + advanced_height = -2147483648 + stretch_x = false + stretch_y = false + appearance_delay_seconds = 1.0 + disappearance_delay_seconds = 1.0 + fade_in_speed = 1.0 + fade_out_speed = 1.0 + base_opacity = 1.0 + parallax_intensity_x = 0.5 + parallax_intensity_y = 0.5 + rotation_degrees = 0.0 + advanced_rotation_degrees = 0.0 + vertical_tilt_degrees = 0.0 + advanced_vertical_tilt_degrees = 0.0 + horizontal_tilt_degrees = 0.0 + advanced_horizontal_tilt_degrees = 0.0 + label_scale = 1.0 + label_shadow = true + nine_slice_border_x = 5 + nine_slice_border_y = 5 + nine_slice_slider_handle_border_x = 5 + nine_slice_slider_handle_border_y = 5 + automated_button_clicks = 0 + is_hidden = false +} + +vanilla_button { + button_element_executable_block_identifier = 0b45e69f-c23d-4592-9218-eab071a607ee-1778341927602 + [executable_block:0b45e69f-c23d-4592-9218-eab071a607ee-1778341927602][type:generic] = [executables:] + underline_label_on_hover = false + transparent_background = false + restartbackgroundanimations = true + nine_slice_custom_background = false + navigatable = true + widget_active_state_requirement_container_identifier = 78a4685b-bb7a-4db4-a4bf-c714f907d15f-1778341927602 + [loading_requirement_container_meta:78a4685b-bb7a-4db4-a4bf-c714f907d15f-1778341927602] = [groups:][instances:] + is_template = false + template_apply_width = false + template_apply_height = false + template_apply_posx = false + template_apply_posy = false + template_apply_opacity = false + template_apply_visibility = false + template_apply_label = false + template_share_with = buttons + nine_slice_slider_handle = false + element_type = vanilla_button + instance_identifier = mc_titlescreen_multiplayer_button + appearance_delay = no_delay + disappearance_delay = no_delay + fade_in_v2 = no_fading + fade_out = no_fading + auto_sizing = false + auto_sizing_base_screen_width = 2560 + auto_sizing_base_screen_height = 1355 + sticky_anchor = false + anchor_point = mid-centered + x = 2 + y = -12 + width = 98 + height = 20 + stay_on_screen = true + element_loading_requirement_container_identifier = 824e2e34-bb01-4c38-9840-1e6e789ed687-1778341927602 + [loading_requirement_container_meta:824e2e34-bb01-4c38-9840-1e6e789ed687-1778341927602] = [groups:][instances:] + enable_parallax = false + invert_parallax = false + animated_offset_x = 0 + animated_offset_y = 0 + load_once_per_session = false + layer_hidden_in_editor = false + advanced_rotation_mode = false + advanced_vertical_tilt_mode = false + advanced_horizontal_tilt_mode = false + should_be_affected_by_decoration_overlays = true + in_editor_color = #FFC800FF + advanced_posx = -2147483648 + advanced_posy = -2147483648 + advanced_width = -2147483648 + advanced_height = -2147483648 + stretch_x = false + stretch_y = false + appearance_delay_seconds = 1.0 + disappearance_delay_seconds = 1.0 + fade_in_speed = 1.0 + fade_out_speed = 1.0 + base_opacity = 1.0 + parallax_intensity_x = 0.5 + parallax_intensity_y = 0.5 + rotation_degrees = 0.0 + advanced_rotation_degrees = 0.0 + vertical_tilt_degrees = 0.0 + advanced_vertical_tilt_degrees = 0.0 + horizontal_tilt_degrees = 0.0 + advanced_horizontal_tilt_degrees = 0.0 + label_scale = 1.0 + label_shadow = true + nine_slice_border_x = 5 + nine_slice_border_y = 5 + nine_slice_slider_handle_border_x = 5 + nine_slice_slider_handle_border_y = 5 + automated_button_clicks = 0 + is_hidden = false +} + +vanilla_button { + button_element_executable_block_identifier = b779a949-381d-45c7-a327-da0cf96eda29-1778341927602 + [executable_block:b779a949-381d-45c7-a327-da0cf96eda29-1778341927602][type:generic] = [executables:] + underline_label_on_hover = false + transparent_background = false + restartbackgroundanimations = true + nine_slice_custom_background = false + navigatable = true + widget_active_state_requirement_container_identifier = 2061d22b-c127-4245-b2e2-8345d73f9b59-1778341927602 + [loading_requirement_container_meta:2061d22b-c127-4245-b2e2-8345d73f9b59-1778341927602] = [groups:][instances:] + is_template = false + template_apply_width = false + template_apply_height = false + template_apply_posx = false + template_apply_posy = false + template_apply_opacity = false + template_apply_visibility = false + template_apply_label = false + template_share_with = buttons + nine_slice_slider_handle = false + element_type = vanilla_button + instance_identifier = mc_titlescreen_realms_button + appearance_delay = no_delay + disappearance_delay = no_delay + fade_in_v2 = no_fading + fade_out = no_fading + auto_sizing = false + auto_sizing_base_screen_width = 2560 + auto_sizing_base_screen_height = 1355 + sticky_anchor = false + anchor_point = mid-centered + x = 2 + y = 12 + width = 98 + height = 20 + stay_on_screen = true + element_loading_requirement_container_identifier = d9d845b4-ac24-4315-864a-1ac14246a04c-1778341927602 + [loading_requirement_container_meta:d9d845b4-ac24-4315-864a-1ac14246a04c-1778341927602] = [groups:][instances:] + enable_parallax = false + invert_parallax = false + animated_offset_x = 0 + animated_offset_y = 0 + load_once_per_session = false + layer_hidden_in_editor = false + advanced_rotation_mode = false + advanced_vertical_tilt_mode = false + advanced_horizontal_tilt_mode = false + should_be_affected_by_decoration_overlays = true + in_editor_color = #FFC800FF + advanced_posx = -2147483648 + advanced_posy = -2147483648 + advanced_width = -2147483648 + advanced_height = -2147483648 + stretch_x = false + stretch_y = false + appearance_delay_seconds = 1.0 + disappearance_delay_seconds = 1.0 + fade_in_speed = 1.0 + fade_out_speed = 1.0 + base_opacity = 1.0 + parallax_intensity_x = 0.5 + parallax_intensity_y = 0.5 + rotation_degrees = 0.0 + advanced_rotation_degrees = 0.0 + vertical_tilt_degrees = 0.0 + advanced_vertical_tilt_degrees = 0.0 + horizontal_tilt_degrees = 0.0 + advanced_horizontal_tilt_degrees = 0.0 + label_scale = 1.0 + label_shadow = true + nine_slice_border_x = 5 + nine_slice_border_y = 5 + nine_slice_slider_handle_border_x = 5 + nine_slice_slider_handle_border_y = 5 + automated_button_clicks = 0 + is_hidden = true +} + +vanilla_button { + button_element_executable_block_identifier = 7e93cdcb-284d-4684-a0e7-b9b90f6d588c-1778341927602 + [executable_block:7e93cdcb-284d-4684-a0e7-b9b90f6d588c-1778341927602][type:generic] = [executables:] + underline_label_on_hover = false + transparent_background = false + restartbackgroundanimations = true + nine_slice_custom_background = false + navigatable = true + widget_active_state_requirement_container_identifier = 27df00e4-37c9-4a4a-b221-b8bd72fc64df-1778341927602 + [loading_requirement_container_meta:27df00e4-37c9-4a4a-b221-b8bd72fc64df-1778341927602] = [groups:][instances:] + is_template = false + template_apply_width = false + template_apply_height = false + template_apply_posx = false + template_apply_posy = false + template_apply_opacity = false + template_apply_visibility = false + template_apply_label = false + template_share_with = buttons + nine_slice_slider_handle = false + element_type = vanilla_button + instance_identifier = mc_titlescreen_singleplayer_button + appearance_delay = no_delay + disappearance_delay = no_delay + fade_in_v2 = no_fading + fade_out = no_fading + auto_sizing = false + auto_sizing_base_screen_width = 2560 + auto_sizing_base_screen_height = 1355 + sticky_anchor = false + anchor_point = mid-centered + x = -100 + y = -12 + width = 98 + height = 20 + stay_on_screen = true + element_loading_requirement_container_identifier = 38a7cb67-1ab7-41ac-9952-98ad6f9234b7-1778341927602 + [loading_requirement_container_meta:38a7cb67-1ab7-41ac-9952-98ad6f9234b7-1778341927602] = [groups:][instances:] + enable_parallax = false + invert_parallax = false + animated_offset_x = 0 + animated_offset_y = 0 + load_once_per_session = false + layer_hidden_in_editor = false + advanced_rotation_mode = false + advanced_vertical_tilt_mode = false + advanced_horizontal_tilt_mode = false + should_be_affected_by_decoration_overlays = true + in_editor_color = #FFC800FF + advanced_posx = -2147483648 + advanced_posy = -2147483648 + advanced_width = -2147483648 + advanced_height = -2147483648 + stretch_x = false + stretch_y = false + appearance_delay_seconds = 1.0 + disappearance_delay_seconds = 1.0 + fade_in_speed = 1.0 + fade_out_speed = 1.0 + base_opacity = 1.0 + parallax_intensity_x = 0.5 + parallax_intensity_y = 0.5 + rotation_degrees = 0.0 + advanced_rotation_degrees = 0.0 + vertical_tilt_degrees = 0.0 + advanced_vertical_tilt_degrees = 0.0 + horizontal_tilt_degrees = 0.0 + advanced_horizontal_tilt_degrees = 0.0 + label_scale = 1.0 + label_shadow = true + nine_slice_border_x = 5 + nine_slice_border_y = 5 + nine_slice_slider_handle_border_x = 5 + nine_slice_slider_handle_border_y = 5 + automated_button_clicks = 0 + is_hidden = false +} + +vanilla_button { + button_element_executable_block_identifier = e0b3d16f-9a98-43a8-80a7-f1383c901044-1778341927602 + [executable_block:e0b3d16f-9a98-43a8-80a7-f1383c901044-1778341927602][type:generic] = [executables:] + underline_label_on_hover = false + transparent_background = false + restartbackgroundanimations = true + nine_slice_custom_background = false + navigatable = true + widget_active_state_requirement_container_identifier = e220a4f7-8334-4c25-ab3d-aa5e705490ba-1778341927602 + [loading_requirement_container_meta:e220a4f7-8334-4c25-ab3d-aa5e705490ba-1778341927602] = [groups:][instances:] + is_template = false + template_apply_width = false + template_apply_height = false + template_apply_posx = false + template_apply_posy = false + template_apply_opacity = false + template_apply_visibility = false + template_apply_label = false + template_share_with = buttons + nine_slice_slider_handle = false + element_type = vanilla_button + instance_identifier = 604388 + appearance_delay = no_delay + disappearance_delay = no_delay + fade_in_v2 = no_fading + fade_out = no_fading + auto_sizing = false + auto_sizing_base_screen_width = 2560 + auto_sizing_base_screen_height = 1355 + sticky_anchor = false + anchor_point = mid-centered + x = 104 + y = 36 + width = 20 + height = 20 + stay_on_screen = true + element_loading_requirement_container_identifier = 02a0973e-8a75-4ec4-905e-461adf8fa724-1778341927602 + [loading_requirement_container_meta:02a0973e-8a75-4ec4-905e-461adf8fa724-1778341927602] = [groups:][instances:] + enable_parallax = false + invert_parallax = false + animated_offset_x = 0 + animated_offset_y = 0 + load_once_per_session = false + layer_hidden_in_editor = false + advanced_rotation_mode = false + advanced_vertical_tilt_mode = false + advanced_horizontal_tilt_mode = false + should_be_affected_by_decoration_overlays = true + in_editor_color = #FFC800FF + advanced_posx = -2147483648 + advanced_posy = -2147483648 + advanced_width = -2147483648 + advanced_height = -2147483648 + stretch_x = false + stretch_y = false + appearance_delay_seconds = 1.0 + disappearance_delay_seconds = 1.0 + fade_in_speed = 1.0 + fade_out_speed = 1.0 + base_opacity = 1.0 + parallax_intensity_x = 0.5 + parallax_intensity_y = 0.5 + rotation_degrees = 0.0 + advanced_rotation_degrees = 0.0 + vertical_tilt_degrees = 0.0 + advanced_vertical_tilt_degrees = 0.0 + horizontal_tilt_degrees = 0.0 + advanced_horizontal_tilt_degrees = 0.0 + label_scale = 1.0 + label_shadow = true + nine_slice_border_x = 5 + nine_slice_border_y = 5 + nine_slice_slider_handle_border_x = 5 + nine_slice_slider_handle_border_y = 5 + automated_button_clicks = 0 + is_hidden = false +} + +vanilla_button { + button_element_executable_block_identifier = 58a734e5-70cb-47be-b28f-fe6194e1cab0-1778341927602 + [executable_block:58a734e5-70cb-47be-b28f-fe6194e1cab0-1778341927602][type:generic] = [executables:] + underline_label_on_hover = false + transparent_background = false + restartbackgroundanimations = true + nine_slice_custom_background = false + navigatable = true + widget_active_state_requirement_container_identifier = 70de2b16-1d2e-486e-b6dd-be6ecbceb7e0-1778341927602 + [loading_requirement_container_meta:70de2b16-1d2e-486e-b6dd-be6ecbceb7e0-1778341927602] = [groups:][instances:] + is_template = false + template_apply_width = false + template_apply_height = false + template_apply_posx = false + template_apply_posy = false + template_apply_opacity = false + template_apply_visibility = false + template_apply_label = false + template_share_with = buttons + nine_slice_slider_handle = false + element_type = vanilla_button + instance_identifier = minecraft_logo_widget + appearance_delay = no_delay + disappearance_delay = no_delay + fade_in_v2 = no_fading + fade_out = no_fading + auto_sizing = false + auto_sizing_base_screen_width = 2560 + auto_sizing_base_screen_height = 1355 + sticky_anchor = false + anchor_point = vanilla + x = 128 + y = 30 + width = 256 + height = 51 + stay_on_screen = true + element_loading_requirement_container_identifier = b460389c-620c-4968-b811-03e302377148-1778341927602 + [loading_requirement_container_meta:b460389c-620c-4968-b811-03e302377148-1778341927602] = [groups:][instances:] + enable_parallax = false + invert_parallax = false + animated_offset_x = 0 + animated_offset_y = 0 + load_once_per_session = false + layer_hidden_in_editor = false + advanced_rotation_mode = false + advanced_vertical_tilt_mode = false + advanced_horizontal_tilt_mode = false + should_be_affected_by_decoration_overlays = true + in_editor_color = #FFC800FF + advanced_posx = -2147483648 + advanced_posy = -2147483648 + advanced_width = -2147483648 + advanced_height = -2147483648 + stretch_x = false + stretch_y = false + appearance_delay_seconds = 1.0 + disappearance_delay_seconds = 1.0 + fade_in_speed = 1.0 + fade_out_speed = 1.0 + base_opacity = 1.0 + parallax_intensity_x = 0.5 + parallax_intensity_y = 0.5 + rotation_degrees = 0.0 + advanced_rotation_degrees = 0.0 + vertical_tilt_degrees = 0.0 + advanced_vertical_tilt_degrees = 0.0 + horizontal_tilt_degrees = 0.0 + advanced_horizontal_tilt_degrees = 0.0 + label_scale = 1.0 + label_shadow = true + nine_slice_border_x = 5 + nine_slice_border_y = 5 + nine_slice_slider_handle_border_x = 5 + nine_slice_slider_handle_border_y = 5 + automated_button_clicks = 0 + is_hidden = true +} + +vanilla_button { + button_element_executable_block_identifier = 0b6c7328-09cc-4348-a7e7-2de6fbf8d829-1778341927602 + [executable_block:0b6c7328-09cc-4348-a7e7-2de6fbf8d829-1778341927602][type:generic] = [executables:] + underline_label_on_hover = false + transparent_background = false + restartbackgroundanimations = true + nine_slice_custom_background = false + navigatable = true + widget_active_state_requirement_container_identifier = 9739fafd-0b7d-42db-806b-fe4865a1bb30-1778341927602 + [loading_requirement_container_meta:9739fafd-0b7d-42db-806b-fe4865a1bb30-1778341927602] = [groups:][instances:] + is_template = false + template_apply_width = false + template_apply_height = false + template_apply_posx = false + template_apply_posy = false + template_apply_opacity = false + template_apply_visibility = false + template_apply_label = false + template_share_with = buttons + nine_slice_slider_handle = false + element_type = vanilla_button + instance_identifier = forge_titlescreen_mods_button + appearance_delay = no_delay + disappearance_delay = no_delay + fade_in_v2 = no_fading + fade_out = no_fading + auto_sizing = false + auto_sizing_base_screen_width = 2560 + auto_sizing_base_screen_height = 1355 + sticky_anchor = false + anchor_point = mid-centered + x = -100 + y = 12 + width = 200 + height = 20 + stay_on_screen = true + element_loading_requirement_container_identifier = 790b28cb-d606-498e-814a-ffd43efa269d-1778341927602 + [loading_requirement_container_meta:790b28cb-d606-498e-814a-ffd43efa269d-1778341927602] = [groups:][instances:] + enable_parallax = false + invert_parallax = false + animated_offset_x = 0 + animated_offset_y = 0 + load_once_per_session = false + layer_hidden_in_editor = false + advanced_rotation_mode = false + advanced_vertical_tilt_mode = false + advanced_horizontal_tilt_mode = false + should_be_affected_by_decoration_overlays = true + in_editor_color = #FFC800FF + advanced_posx = -2147483648 + advanced_posy = -2147483648 + advanced_width = -2147483648 + advanced_height = -2147483648 + stretch_x = false + stretch_y = false + appearance_delay_seconds = 1.0 + disappearance_delay_seconds = 1.0 + fade_in_speed = 1.0 + fade_out_speed = 1.0 + base_opacity = 1.0 + parallax_intensity_x = 0.5 + parallax_intensity_y = 0.5 + rotation_degrees = 0.0 + advanced_rotation_degrees = 0.0 + vertical_tilt_degrees = 0.0 + advanced_vertical_tilt_degrees = 0.0 + horizontal_tilt_degrees = 0.0 + advanced_horizontal_tilt_degrees = 0.0 + label_scale = 1.0 + label_shadow = true + nine_slice_border_x = 5 + nine_slice_border_y = 5 + nine_slice_slider_handle_border_x = 5 + nine_slice_slider_handle_border_y = 5 + automated_button_clicks = 0 + is_hidden = false +} + +vanilla_button { + button_element_executable_block_identifier = 3ecd6336-a66d-47cc-8f90-e3ebae1ae689-1778341927602 + [executable_block:3ecd6336-a66d-47cc-8f90-e3ebae1ae689-1778341927602][type:generic] = [executables:] + underline_label_on_hover = false + transparent_background = false + restartbackgroundanimations = true + nine_slice_custom_background = false + navigatable = true + widget_active_state_requirement_container_identifier = 9ec50db8-cfe1-436c-8707-00f611b438c5-1778341927602 + [loading_requirement_container_meta:9ec50db8-cfe1-436c-8707-00f611b438c5-1778341927602] = [groups:][instances:] + is_template = false + template_apply_width = false + template_apply_height = false + template_apply_posx = false + template_apply_posy = false + template_apply_opacity = false + template_apply_visibility = false + template_apply_label = false + template_share_with = buttons + nine_slice_slider_handle = false + element_type = vanilla_button + instance_identifier = minecraft_realms_notification_icons_widget + appearance_delay = no_delay + disappearance_delay = no_delay + fade_in_v2 = no_fading + fade_out = no_fading + auto_sizing = false + auto_sizing_base_screen_width = 2560 + auto_sizing_base_screen_height = 1355 + sticky_anchor = false + anchor_point = vanilla + x = 291 + y = 165 + width = 62 + height = 18 + stay_on_screen = true + element_loading_requirement_container_identifier = c7b0f39c-07a0-44dc-baa3-feb9f4ee3d82-1778341927602 + [loading_requirement_container_meta:c7b0f39c-07a0-44dc-baa3-feb9f4ee3d82-1778341927602] = [groups:][instances:] + enable_parallax = false + invert_parallax = false + animated_offset_x = 0 + animated_offset_y = 0 + load_once_per_session = false + layer_hidden_in_editor = false + advanced_rotation_mode = false + advanced_vertical_tilt_mode = false + advanced_horizontal_tilt_mode = false + should_be_affected_by_decoration_overlays = true + in_editor_color = #FFC800FF + advanced_posx = -2147483648 + advanced_posy = -2147483648 + advanced_width = -2147483648 + advanced_height = -2147483648 + stretch_x = false + stretch_y = false + appearance_delay_seconds = 1.0 + disappearance_delay_seconds = 1.0 + fade_in_speed = 1.0 + fade_out_speed = 1.0 + base_opacity = 1.0 + parallax_intensity_x = 0.5 + parallax_intensity_y = 0.5 + rotation_degrees = 0.0 + advanced_rotation_degrees = 0.0 + vertical_tilt_degrees = 0.0 + advanced_vertical_tilt_degrees = 0.0 + horizontal_tilt_degrees = 0.0 + advanced_horizontal_tilt_degrees = 0.0 + label_scale = 1.0 + label_shadow = true + nine_slice_border_x = 5 + nine_slice_border_y = 5 + nine_slice_slider_handle_border_x = 5 + nine_slice_slider_handle_border_y = 5 + automated_button_clicks = 0 + is_hidden = true +} + diff --git a/tools/branding/build.py b/tools/branding/build.py new file mode 100644 index 0000000..a1b97a3 --- /dev/null +++ b/tools/branding/build.py @@ -0,0 +1,256 @@ +"""Brand files of Create RP: wordmark, icons, banners and the FancyMenu title-screen assets. + + python tools/branding/build.py [emblem_raw.png] + +Everything is drawn from three sources: Minecraft's own pixel font and block textures (read from the jars, not +stored here), the key art illustration (branding/art/keyart.png) and, if given, a raw emblem picture that is +snapped to a coarse pixel grid. Output goes to branding/ next to this repo's images. +""" +import io +import math +import sys +import zipfile +from pathlib import Path + +import numpy as np +from PIL import Image, ImageEnhance, ImageFilter + +ROOT = Path(__file__).resolve().parent.parent.parent +sys.path.insert(0, str(ROOT / 'tools' / 'signs')) +from render import Font # noqa: E402 (the pixel font reader made for the building signs) + +OUT = ROOT / 'branding' +NAME = 'CREATE RP' +TAGLINE = 'ДЕРЖАВА ПАРИ Й ШЕСТЕРЕНЬ' +ADDRESS = 'create.fulldroper.ks.ua' + +# palette: brass and brick, as the state quarter is built +INK = (38, 24, 16) # outlines +CREAM = (243, 229, 196) # small text +BRICK = (176, 78, 58) # the red of the state's brick buildings +BRASS = [(104, 68, 26), (168, 116, 42), (217, 164, 65), (245, 205, 110)] # dark → light + + +def texture(jar: zipfile.ZipFile, path: str) -> np.ndarray: + return np.asarray(Image.open(io.BytesIO(jar.read(path))).convert('RGB'))[:16, :16] + + +def mask_of(font: Font, text: str, bold: bool) -> np.ndarray: + """The text as font pixels; bold is Minecraft's own bold: the glyph drawn twice, one pixel apart.""" + parts = [] + for c in text: + g = np.zeros((12, 3), bool) if c == ' ' else font.glyphs[c] + if bold and c != ' ': + g = np.pad(g, ((0, 0), (0, 1))) | np.pad(g, ((0, 0), (1, 0))) + parts += [g, np.zeros((12, 1), bool)] + m = np.hstack(parts[:-1]) + rows = np.nonzero(m.any(axis=1))[0] + return m[rows.min():rows.max() + 1] + + +def shift(m: np.ndarray, dy: int, dx: int) -> np.ndarray: + out = np.zeros_like(m) + h, w = m.shape + out[max(dy, 0):h + min(dy, 0), max(dx, 0):w + min(dx, 0)] = m[max(-dy, 0):h + min(-dy, 0), max(-dx, 0):w + min(-dx, 0)] + return out + + +def lettering(mask: np.ndarray, fill, scale: int, depth: int = 1, outline: bool = True) -> Image.Image: + """Letters made of whole texels: lit from the top left, a dark side `depth` font pixels deep, an ink outline.""" + pad = 1 + depth + m = np.pad(mask, pad) + h, w = m.shape + yy, xx = np.mgrid[0:h, 0:w] + if isinstance(fill, np.ndarray): + colour = fill[yy % fill.shape[0], xx % fill.shape[1]].astype(np.float32) + else: + colour = np.broadcast_to(np.array(fill, np.float32), (h, w, 3)).copy() + colour[m & ~shift(m, 1, 0)] *= 1.18 # top edge catches the light + colour[m & ~shift(m, 0, 1)] *= 1.08 # left edge a little + colour[m & ~shift(m, -1, 0)] *= 0.80 # bottom edge in shade + + side = np.zeros_like(m) + for d in range(1, depth + 1): + side |= shift(m, d, d) + side &= ~m + body = m | side + edge = np.zeros_like(m) + if outline: + for dy in (-1, 0, 1): + for dx in (-1, 0, 1): + edge |= shift(body, dy, dx) + edge &= ~body + + out = np.zeros((h, w, 4), np.float32) + out[..., :3] = INK + out[side, :3] = np.array(fill.reshape(-1, 3).mean(axis=0) if isinstance(fill, np.ndarray) else fill, np.float32) * 0.45 + out[m, :3] = colour[m] + out[body | edge, 3] = 255 + img = np.clip(out, 0, 255).astype(np.uint8) + return Image.fromarray(np.repeat(np.repeat(img, scale, 0), scale, 1), 'RGBA') + + +def stack(images, gap: int, align: str = 'center') -> Image.Image: + w = max(i.width for i in images) + h = sum(i.height for i in images) + gap * (len(images) - 1) + out = Image.new('RGBA', (w, h), (0, 0, 0, 0)) + y = 0 + for i in images: + out.alpha_composite(i, ((w - i.width) // 2 if align == 'center' else 0, y)) + y += i.height + gap + return out + + +def beside(images, gap: int) -> Image.Image: + h = max(i.height for i in images) + out = Image.new('RGBA', (sum(i.width for i in images) + gap * (len(images) - 1), h), (0, 0, 0, 0)) + x = 0 + for i in images: + out.alpha_composite(i, (x, h - i.height)) + x += i.width + gap + return out + + +def gear(n: int, teeth: int = 8) -> Image.Image: + """A brass cogwheel on an n x n pixel grid: the simple mark for icons too small for the emblem.""" + ss = 8 + c = (n * ss - 1) / 2 + yy, xx = np.mgrid[0:n * ss, 0:n * ss] + x, y = (xx - c) / (n * ss / 2), (yy - c) / (n * ss / 2) + r = np.hypot(x, y) + shape = r < 0.70 + for k in range(teeth): # straight-sided teeth: the same width on the axes and on the diagonals + t = 2 * math.pi * k / teeth + along, across = x * math.cos(t) + y * math.sin(t), -x * math.sin(t) + y * math.cos(t) + shape |= (np.abs(across) < 0.15) & (along > 0.5) & (along < 0.96) + shape &= r > 0.30 + cover = shape.reshape(n, ss, n, ss).mean(axis=(1, 3)) + m = cover >= 0.5 + light = ((xx - c) * -0.7 + (yy - c) * -0.7).reshape(n, ss, n, ss).mean(axis=(1, 3)) / (n * ss / 2) # lit from the top left + tone = np.clip(np.round(1.6 + light * 1.6), 0, 3).astype(int) + rim = m & ~(shift(m, 1, 0) & shift(m, -1, 0) & shift(m, 0, 1) & shift(m, 0, -1)) + out = np.zeros((n, n, 4), np.uint8) + out[m, :3] = np.array(BRASS)[tone][m] + out[rim, :3] = BRASS[0] if n > 16 else BRASS[1] + out[m, 3] = 255 + return Image.fromarray(out, 'RGBA') + + +def on_plate(mark: Image.Image, size: int, plate=(110, 52, 40)) -> Image.Image: + """An icon: the mark on a brick-red square with a dark frame (for places that show no transparency).""" + n = mark.width + grid = n + 4 + out = np.zeros((grid, grid, 4), np.uint8) + out[..., :3] = plate + out[..., 3] = 255 + out[0, :, :3] = out[-1, :, :3] = out[:, 0, :3] = out[:, -1, :3] = INK + base = Image.fromarray(out, 'RGBA') + base.alpha_composite(mark, (2, 2)) + return base.resize((size, size), Image.NEAREST) + + +def pixelate(raw: Image.Image, grid: int) -> Image.Image: + """A generated emblem snapped to a grid x grid picture with a hard alpha edge, so it sits beside pixel lettering.""" + im = raw.convert('RGBA') + a = np.asarray(im)[..., 3] + ys, xs = np.nonzero(a > 40) + im = im.crop((xs.min(), ys.min(), xs.max() + 1, ys.max() + 1)) + side = max(im.size) + sq = Image.new('RGBA', (side, side), (0, 0, 0, 0)) + sq.alpha_composite(im, ((side - im.width) // 2, (side - im.height) // 2)) + small = np.asarray(sq.resize((grid, grid), Image.BOX)).copy() + solid = small[..., 3] >= 128 + rgb = Image.fromarray(small[..., :3], 'RGB').quantize(64, method=Image.MEDIANCUT).convert('RGB') + small[..., :3] = np.asarray(rgb) + small[..., 3] = np.where(solid, 255, 0) + small[~solid, :3] = INK + return Image.fromarray(small, 'RGBA') + + +def cover(im: Image.Image, w: int, h: int, focus_y: float = 0.5) -> Image.Image: + s = max(w / im.width, h / im.height) + big = im.resize((round(im.width * s), round(im.height * s)), Image.LANCZOS) + x = (big.width - w) // 2 + y = round((big.height - h) * focus_y) + return big.crop((x, y, x + w, y + h)) + + +def shade(im: Image.Image, top: float, bottom: float) -> Image.Image: + """Darkens the picture with a vertical gradient (1 = untouched), so light lettering reads on it.""" + a = np.asarray(im.convert('RGB')).astype(np.float32) + g = np.linspace(top, bottom, a.shape[0], dtype=np.float32)[:, None, None] + return Image.fromarray(np.clip(a * g, 0, 255).astype(np.uint8), 'RGB').convert('RGBA') + + +def fit(im: Image.Image, max_w: int, max_h: int) -> Image.Image: + """Pixel art is only ever resized by whole factors.""" + k = max(1, min(max_w // im.width, max_h // im.height)) + return im.resize((im.width * k, im.height * k), Image.NEAREST) + + +def main() -> None: + mc_jar, create_jar, key_art = sys.argv[1], sys.argv[2], Path(sys.argv[3]) + emblem_raw = Path(sys.argv[4]) if len(sys.argv) > 4 else None + with zipfile.ZipFile(mc_jar) as mc, zipfile.ZipFile(create_jar) as cr: + font = Font(mc) + brass = texture(cr, 'assets/create/textures/block/brass_block.png') + + for d in ('logo', 'icons', 'banners', 'menu'): + (OUT / d).mkdir(parents=True, exist_ok=True) + + # --- wordmark: CREATE in brass, RP in brick red, the motto underneath ------------------------- + def wordmark(s: int) -> Image.Image: + return beside([lettering(mask_of(font, 'CREATE', True), brass, s, depth=1), + lettering(mask_of(font, 'RP', True), BRICK, s, depth=1)], gap=s * 2) + + def motto(s: int, colour=CREAM) -> Image.Image: + return lettering(mask_of(font, TAGLINE, False), colour, s, depth=0) + + def mono(s: int, colour) -> Image.Image: + return lettering(mask_of(font, NAME, True), colour, s, depth=0, outline=False) + + wordmark(12).save(OUT / 'logo' / 'wordmark.png') + stack([wordmark(12), motto(4)], gap=20).save(OUT / 'logo' / 'logo.png') + mono(12, (255, 255, 255)).save(OUT / 'logo' / 'wordmark-white.png') + mono(12, INK).save(OUT / 'logo' / 'wordmark-dark.png') + + # --- marks and icons -------------------------------------------------------------------------- + emblem = pixelate(Image.open(emblem_raw), 128) if emblem_raw and emblem_raw.exists() else None + if emblem: + emblem.resize((512, 512), Image.NEAREST).save(OUT / 'logo' / 'emblem.png') + gear(32).resize((512, 512), Image.NEAREST).save(OUT / 'logo' / 'gear.png') + on_plate(gear(28), 64).save(OUT / 'icons' / 'server-icon.png') # Minecraft server list: exactly 64x64 + on_plate(gear(28), 512).save(OUT / 'icons' / 'avatar-512.png') # Gitea, Discord, the modpack + gear(16).save(OUT / 'icons' / 'favicon-16x16.png') # game window icon + gear(32).save(OUT / 'icons' / 'favicon-32x32.png') + + # --- banners ---------------------------------------------------------------------------------- + art = Image.open(key_art).convert('RGB') + mark = emblem if emblem else gear(32) + + def banner(w: int, h: int, name: str, extra: str = '', focus_y: float = 0.5) -> None: + base = shade(cover(art, w, h, focus_y), 0.55, 0.85) + logo = fit(wordmark(1), int(w * 0.62), int(h * 0.26)) + s = logo.width // wordmark(1).width + lines = [logo, fit(motto(1), int(w * 0.62), max(8, s * 4))] + if extra: + lines.append(fit(lettering(mask_of(font, extra, False), BRASS[3], 1, depth=0), int(w * 0.5), max(8, s * 4))) + block = stack(lines, gap=max(6, s * 2)) + base.alpha_composite(block, ((w - block.width) // 2, int(h * 0.10))) + addr = fit(lettering(mask_of(font, ADDRESS, False), CREAM, 1, depth=0), int(w * 0.45), max(8, s * 3)) + base.alpha_composite(addr, ((w - addr.width) // 2, h - addr.height - int(h * 0.06))) + base.convert('RGB').save(OUT / 'banners' / name, quality=92) + + banner(960, 540, 'discord-banner.png') + banner(1280, 720, 'launch.png', extra='ВІДКРИТТЯ СЕРВЕРА') + banner(1200, 630, 'invite.png', extra='ПРИЄДНУЙСЯ') + banner(1280, 320, 'wiki-cover.png', focus_y=0.55) + + # --- FancyMenu: title screen background, the logo it shows, window icons ------------------------- + shade(cover(art, 1920, 1080), 0.80, 0.92).convert('RGB').save(OUT / 'menu' / 'background.png') + stack([wordmark(8), motto(3)], gap=12).save(OUT / 'menu' / 'logo.png') + print('done:', ', '.join(sorted(str(p.relative_to(OUT)).replace('\\', '/') for p in OUT.rglob('*.png')))) + + +if __name__ == '__main__': + main() diff --git a/tools/branding/fancymenu.py b/tools/branding/fancymenu.py new file mode 100644 index 0000000..aceb463 --- /dev/null +++ b/tools/branding/fancymenu.py @@ -0,0 +1,50 @@ +"""Writes the FancyMenu configuration of the Create RP title screen into a game's config folder. + + python tools/branding/fancymenu.py e.g. the client pack's config/ or a profile's config/ + +Layout: the key art as the background, our logo instead of Minecraft's, one wide button that joins the server, +then the usual buttons. The layout file itself is branding/menu/title_screen_layout.txt; this script only copies it +with the pictures and switches the window title, the window icon and the title-screen customisation on. +""" +import re +import shutil +import sys +from pathlib import Path + +ROOT = Path(__file__).resolve().parent.parent.parent +MENU, ICONS = ROOT / 'branding' / 'menu', ROOT / 'branding' / 'icons' +WINDOW_TITLE = 'Create RP' + + +def option(text: str, key: str, value: str) -> str: + pattern = re.compile(r"^(\w:" + re.escape(key) + r" = ')[^']*(';)", re.M) + if not pattern.search(text): + raise SystemExit('FancyMenu option not found: ' + key) + return pattern.sub(lambda m: m.group(1) + value + m.group(2), text) + + +def main() -> None: + fm = Path(sys.argv[1]) / 'fancymenu' + (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') + for icon in ('favicon-16x16.png', 'favicon-32x32.png'): + shutil.copyfile(ICONS / icon, fm / 'assets' / icon) + shutil.copyfile(MENU / 'title_screen_layout.txt', fm / 'customization' / 'title_screen_layout.txt') + (fm / 'customizablemenus.txt').write_text( + 'type = customizablemenus\n\nnet.minecraft.client.gui.screens.TitleScreen {\n}\n\n', encoding='utf-8') + + options = (fm / 'options.txt').read_text(encoding='utf-8') + options = option(options, 'custom_window_title', WINDOW_TITLE) + options = option(options, 'show_custom_window_icon', 'true') + options = option(options, 'custom_window_icon_16', '/config/fancymenu/assets/favicon-16x16.png') + options = option(options, 'custom_window_icon_32', '/config/fancymenu/assets/favicon-32x32.png') + options = option(options, 'custom_window_icon_macos', '') + options = option(options, 'global_background_panorama', '') + (fm / 'options.txt').write_text(options, encoding='utf-8') + print('title screen installed into', fm) + + +if __name__ == '__main__': + main()