mirror of
https://git.stillkill.net/MinecraftLeak/MinecraftLegends.git
synced 2026-10-22 13:22:20 +01:00
316 lines
8.1 KiB
JSON
316 lines
8.1 KiB
JSON
/********************************************************
|
|
+* (c) Mojang. All rights reserved *
|
|
+* (c) Microsoft. All rights reserved. *
|
|
+*********************************************************/
|
|
|
|
{
|
|
"namespace": "authentication",
|
|
|
|
|
|
//---------------------------------------------------------------------------
|
|
// Common
|
|
//---------------------------------------------------------------------------
|
|
|
|
"action_button@common_buttons.light_text_button": {
|
|
"$pressed_button_name": "button.action",
|
|
"anchor_from": "bottom_middle",
|
|
"anchor_to": "bottom_middle",
|
|
"size": [ "200px", "30px" ],
|
|
"offset": [ 0, -12 ],
|
|
"$button_text": "authentication.tryagain",
|
|
"bindings": [
|
|
{
|
|
"binding_name": "#button_visible",
|
|
"binding_name_override": "#visible"
|
|
}
|
|
]
|
|
},
|
|
|
|
"title_label@authentication.generic_label": {
|
|
"type": "label",
|
|
"anchor_from": "top_middle",
|
|
"anchor_to": "top_middle",
|
|
"offset": [ 15, 15 ],
|
|
"size": [ "90%", "default" ],
|
|
"text": "#authentication_message",
|
|
"layer": 1,
|
|
"color": "$body_text_color",
|
|
"bindings": [
|
|
{
|
|
"binding_name": "#authentication_message"
|
|
},
|
|
{
|
|
"binding_name": "(not #eula_visible)",
|
|
"binding_name_override": "#visible"
|
|
}
|
|
]
|
|
},
|
|
|
|
"eula_hyperlink@common_buttons.hyperlink_button": {
|
|
"anchor_from": "left_middle",
|
|
"anchor_to": "left_middle",
|
|
"size": [ 200, 20 ],
|
|
"offset": [ 5, 0 ],
|
|
"$button_text": "eula.hyperlink",
|
|
"property_bag": {
|
|
"#hyperlink": "http://education.minecraft.net/eula"
|
|
}
|
|
},
|
|
|
|
"eula_label": {
|
|
"type": "label",
|
|
"color": "$body_text_color",
|
|
"text": "eula.intro",
|
|
"size": [ "100%", "default" ]
|
|
},
|
|
|
|
"eula_panel": {
|
|
"anchor_from": "top_middle",
|
|
"anchor_to": "top_middle",
|
|
"type": "stack_panel",
|
|
"orientation": "vertical",
|
|
"size": [ "90%", "100%c" ],
|
|
"offset": [ 15, 10 ],
|
|
"controls": [
|
|
{
|
|
"intro@authentication.eula_label": {
|
|
"text": "eula.intro"
|
|
}
|
|
},
|
|
{
|
|
"eula_link_centered@common.empty_panel": {
|
|
// Allow button to be centered and padded a bit
|
|
"size": [ "100%", "100%c + 30px" ],
|
|
"controls": [
|
|
{
|
|
"eula_link@authentication.eula_hyperlink": {
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"pad_accept@common.empty_panel": {
|
|
"size": [ "100%", 15 ]
|
|
}
|
|
},
|
|
{
|
|
"accept_prompt@authentication.eula_label": {
|
|
"text": "eula.callToAction"
|
|
}
|
|
},
|
|
{
|
|
"accept_button_centered@common.empty_panel": {
|
|
"size": [ "100%", "100%c + 30px" ],
|
|
"controls": [
|
|
{
|
|
"accept_button@common_buttons.light_text_button": {
|
|
"$pressed_button_name": "button.action",
|
|
"anchor_from": "left_middle",
|
|
"anchor_to": "left_middle",
|
|
"offset": [ 5, 0 ],
|
|
"size": [ 200, 30 ],
|
|
"$button_text": "eula.acceptButton"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"bindings": [
|
|
{
|
|
"binding_name": "#eula_visible",
|
|
"binding_name_override": "#visible"
|
|
}
|
|
]
|
|
},
|
|
|
|
"title_panel": {
|
|
"type": "panel",
|
|
"size": [ "90%", "90%" ],
|
|
"offset": [ 1, 0 ],
|
|
"controls": [
|
|
{ "eula_panel@authentication.eula_panel": { } },
|
|
{ "title_label@title_label": { } }
|
|
]
|
|
},
|
|
|
|
// -----------------------------------------------
|
|
//
|
|
// screen
|
|
//
|
|
// -----------------------------------------------
|
|
"screen_common": {
|
|
"button_mappings": [
|
|
{
|
|
"from_button_id": "button.menu_cancel",
|
|
"mapping_type": "global"
|
|
},
|
|
{
|
|
"from_button_id": "button.menu_up",
|
|
"mapping_type": "global",
|
|
"scope": "view"
|
|
},
|
|
{
|
|
"from_button_id": "button.menu_down",
|
|
"mapping_type": "global",
|
|
"scope": "view"
|
|
},
|
|
{
|
|
"from_button_id": "button.menu_left",
|
|
"mapping_type": "global",
|
|
"scope": "view"
|
|
},
|
|
{
|
|
"from_button_id": "button.menu_right",
|
|
"mapping_type": "global",
|
|
"scope": "view"
|
|
}
|
|
]
|
|
},
|
|
|
|
// Root panel all others parented to
|
|
"root_panel": {
|
|
"type": "panel",
|
|
"size": "$modal_screen_size",
|
|
"layer": 1,
|
|
"anchor_from": "center",
|
|
"anchor_to": "center"
|
|
},
|
|
|
|
"screen@common.base_screen": {
|
|
"$screen_content": "authentication.authentication_screen_content"
|
|
},
|
|
|
|
"authentication_screen_content": {
|
|
"type": "panel",
|
|
"layer": 1,
|
|
"anchor_from": "center",
|
|
"anchor_to": "center",
|
|
"controls": [
|
|
{
|
|
"dialog_background_hollow_4@common.dialog_background_hollow_4": {
|
|
"size": [ "80%", "80%" ],
|
|
"bindings": [
|
|
{
|
|
"binding_name": "#background_visible",
|
|
"binding_name_override": "#visible"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"background_content": {
|
|
"type": "panel",
|
|
"layer": 1,
|
|
"size": [ "80%", "80%" ],
|
|
"controls": [
|
|
{
|
|
"control": {
|
|
"type": "panel",
|
|
"size": [ "95%", "95%" ],
|
|
"controls": [
|
|
{ "title_panel@authentication.title_panel": { } },
|
|
{ "action_button@authentication.action_button": { } }
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"popup_dialog_factory": {
|
|
"type": "factory",
|
|
"control_ids": {
|
|
"trial_info": "@authentication.popup_dialog__trial_info"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
|
|
"popup_dialog__trial_info@popup_dialog.popup_dialog": {
|
|
"size": [ 300, 200 ],
|
|
"$fill_alpha": 1.0,
|
|
"controls": [
|
|
{
|
|
"background_with_buttons@common.common_panel": {
|
|
"$show_close_button": false,
|
|
"$dialog_background": "dialog_background_hollow_2"
|
|
}
|
|
},
|
|
{ "popup_title@popup_title": { } },
|
|
{ "popup_message@popup_message": { } },
|
|
{
|
|
"close_button@popup_button": {
|
|
"anchor_from": "bottom_middle",
|
|
"anchor_to": "bottom_middle",
|
|
"size": [ 100, 20 ]
|
|
}
|
|
},
|
|
{ "popup_message_student@popup_message_student": { } },
|
|
{ "popup_hyperlink@authentication.popup_hyperlink": { } }
|
|
]
|
|
},
|
|
|
|
"popup_title": {
|
|
"type": "label",
|
|
"anchor_from": "top_middle",
|
|
"anchor_to": "top_middle",
|
|
"layer": 1,
|
|
"offset": [ 0, 8 ],
|
|
"color": "$title_text_color",
|
|
"size": [ "default", 20 ],
|
|
"text": "authentication.trialMessageTitle"
|
|
},
|
|
|
|
"popup_message": {
|
|
"type": "label",
|
|
"text": "#popup_text",
|
|
"layer": 1,
|
|
"anchor_from": "top_middle",
|
|
"anchor_to": "top_middle",
|
|
"offset": [ 5, 30 ],
|
|
"color": "$body_text_color",
|
|
"size": [ 270, "default" ],
|
|
"bindings": [
|
|
{
|
|
"binding_name": "#popup_text"
|
|
}
|
|
]
|
|
},
|
|
|
|
"popup_message_student": {
|
|
"type": "label",
|
|
"text": "authentication.clickToPurchaseMessage",
|
|
"layer": 1,
|
|
"anchor_from": "bottom_middle",
|
|
"anchor_to": "bottom_middle",
|
|
"offset": [ 0, 80 ],
|
|
"color": "$body_text_color",
|
|
"size": [ "90%", "90%" ],
|
|
"bindings": [
|
|
{
|
|
"binding_name": "#popup_message_student_visible",
|
|
"binding_name_override": "#visible"
|
|
}
|
|
]
|
|
},
|
|
|
|
"popup_hyperlink@common_buttons.hyperlink_button": {
|
|
"anchor_from": "bottom_middle",
|
|
"anchor_to": "bottom_middle",
|
|
"size": [ 240, 20 ],
|
|
"offset": [ 0, -60 ],
|
|
"$button_text_binding_type": "global",
|
|
"$button_text": "#hyperlink_prompt_text"
|
|
},
|
|
|
|
"popup_button@common_buttons.light_text_button": {
|
|
"$pressed_button_name": "button.close_dialog",
|
|
"$button_text": "gui.ok",
|
|
"anchor_from": "bottom_middle",
|
|
"anchor_to": "bottom_middle",
|
|
"offset": [ 0, -12 ]
|
|
}
|
|
} |