Initial commit

This commit is contained in:
Stillkill committed 2026-03-08 15:30:46 -05:00
commit c630089742
4782 files changed
+178521

No files matched your search

+55
View File
@@ -0,0 +1,55 @@
{
// Alphabetical order please :)
"ui_defs": [
"ui/achievement_screen.json",
"ui/anvil_screen.json",
"ui/brewing_stand_screen.json",
"ui/chest_screen.json",
"ui/debug_screen.json",
"ui/disconnect_screen.json",
"ui/environment_screen.json",
"ui/achievement_screen.json",
"ui/furnace_screen.json",
"ui/gamepad_layout_screen.json",
"ui/holographic_postrender_screen.json",
"ui/hud_screen.json",
"ui/inventory_screen.json",
"ui/invite_screen.json",
"ui/language_choice_screen.json",
"ui/modal_screen.json",
"ui/pause_screen_trial.json",
"ui/play_screen.json",
"ui/pocket_redstone.json",
"ui/popup_dialog.json",
"ui/portfolio_screen.json",
"ui/progress_screen.json",
"ui/redstone_screen.json",
"ui/realms_common.json",
"ui/realms_create.json",
"ui/realms_invitation.json",
"ui/realms_invitation_shell.json",
"ui/realms_pending_invitations.json",
"ui/realms_settings_screen.json",
"ui/resource_packs_screen.json",
"ui/resource_pack_purchase_screen.json",
"ui/settings_sections/realms_world_section.json",
"ui/settings_sections/settings_common.json",
"ui/skin_pack_purchase_screen.json",
"ui/skin_picker_screen.json",
"ui/start_screen.json",
"ui/store_screen.json",
"ui/toast_screen.json",
"ui/trial_upsell_screen.json",
"ui/ui_common.json",
"ui/ui_common_classic.json",
"ui/ui_holo_cursor.json",
"ui/vr_alignscreen.json",
"ui/vr_scheme_screen.json",
"ui/xbl_login_screen.json",
"ui/xbl_first_launch.json",
"ui/xbl_failed.json",
"ui/xbl_optional_signin.json",
"ui/horse_screen.json",
"ui/horse_screen_pocket.json"
]
}
File diff suppressed because it is too large. Load diff
+335
View File
@@ -0,0 +1,335 @@
/********************************************************
+* (c) Mojang. All rights reserved *
+* (c) Microsoft. All rights reserved. *
+*********************************************************/
{
"namespace": "anvil",
//---------------------------------------------------------------------------
// #region common items
//---------------------------------------------------------------------------
"generic_label": {
"type": "label",
"size": [ 1, 1 ],
"anchor_from": "top_left",
"anchor_to": "top_left",
"alignment": "top_left",
"text": "???",
"color": [ 0.25, 0.25, 0.25, 1.0 ],
"layer": 1
},
// #endregion
//---------------------------------------------------------------------------
// #region icon and text area (top quarter of screen)
//---------------------------------------------------------------------------
"anvil_icon": {
"type": "image",
"anchor_from": "top_left",
"anchor_to": "top_left",
"texture": "gui/newgui/anvil-hammer.png",
"size": [ 30, 30 ],
"uv": [ 0, 0 ],
"uv_size": [ 15, 15 ],
"nineslice_size": 0.0,
"layer": 1
},
"title_label@anvil.generic_label": {
"anchor_from": "bottom_left", // the parent
"anchor_to": "bottom_left", // this control
"alignment": "left_middle",
"text": "container.repair"
},
// panel to position the icon
"anvil_icon_panel": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"controls": [
{ "@anvil.anvil_icon": { } }
]
},
"text_edit_control@common.text_edit_box": {
"anchor_from": "top_left", // the parent
"anchor_to": "top_left", // this control
"property_bag": {
"#property_field": "#item_name"
},
"max_length": 30,
"$text_edit_binding_name": "#text_box_item_name"
},
// panel to position the top quarter of screen
"icon_and_text_panel": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ "100%", "40%" ],
"offset": [ 0, "5%" ],
"controls": [
{ "@anvil.anvil_icon_panel": { } },
{ "@anvil.anvil_title_and_text_panel": { } }
]
},
// panel for the title label
"title_panel": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ "100%", "20%" ],
"offset": [ 1, 0 ],
"controls": [
{ "@anvil.title_label": { } }
]
},
// panel for the text edit box
"text_edit_panel": {
"type": "panel",
"anchor_from": "bottom_left",
"anchor_to": "bottom_left",
"size": [ "100%", "70%" ],
"offset": [0, 2],
"controls": [
{ "@anvil.text_edit_control": { } }
]
},
// panel to position title label and text edit control
"anvil_title_and_text_panel": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ "80%", "100%" ],
"offset": [ "20%", 0 ],
"controls": [
{ "@anvil.title_panel": { } },
{ "@anvil.text_edit_panel": { } }
]
},
//#endregion
//---------------------------------------------------------------------------
// #region recipe (input, material and results) area (2nd quarter of screen)
//---------------------------------------------------------------------------
"plus_sign_icon": {
"type": "image",
"texture": "gui/newgui/anvil-plus.png",
"size": [ 13, 13 ],
"uv": [ 0, 0 ],
"uv_size": [ 13, 13 ]
},
"arrow_icon": {
"type": "image",
"texture": "gui/newgui/anvil-arrow.png",
"size": [ 18, 12 ],
"uv": [ 0, 0 ],
"uv_size": [ 22, 15 ]
},
"cross_out_icon": {
"type": "image",
"texture": "gui/newgui/anvil-crossout.png",
"size": [ 18, 12 ],
"uv": [ 0, 0 ],
"uv_size": [ 15, 15 ],
"bindings": [
{
"binding_name": "#cross_out_icon",
"binding_name_override": "#visible"
}
]
},
//#endregion
"anvil_item_slot": {
"type": "panel",
"controls":[
{
"@common.container_item": {
"anchor_to": "center",
"anchor_from": "center"
}
}
]
},
"recipe_grid": {
"type": "grid",
"size": [ "83.5%", "90%" ],
"anchor_from": "center",
"anchor_to": "center",
"grid_dimensions": [ 5, 1 ],
"controls": [
{
"input_item_slot@anvil_item_slot": {
"grid_position": [ 0, 0 ],
"$item_collection_name": "anvil_input_items"
}
},
{
"plus": {
"type": "panel",
"grid_position": [ 1, 0 ],
"controls": [
{ "@anvil.plus_sign_icon": { } }
]
}
},
{
"material_item_slot@anvil_item_slot": {
"grid_position": [ 2, 0 ],
"$item_collection_name": "anvil_material_items"
}
},
{
"yields": {
"type": "panel",
"grid_position": [ 3, 0 ],
"controls": [
{ "@anvil.arrow_icon": { } },
{
"@anvil.cross_out_icon": {
"layer": 1
}
}
]
}
},
{
"result_item_slot@anvil_item_slot": {
"grid_position": [ 4, 0 ],
"$item_collection_name": "anvil_result_items"
}
}
]
},
"cost_label@anvil.generic_label": {
"size": [ 1, 1 ],
"shadow": true,
"anchor_from": "bottom_right",
"anchor_to": "bottom_right",
"offset": [ 0, 0 ],
"alignment": "bottom_right",
"color": "#ff00ff",
"text": "#text"
},
"recipe_panel": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ "100%", "60%" ],
"offset": [ 0, "40%" ],
"controls": [
{ "@anvil.recipe_grid": { } },
{
"@anvil.cost_label": {
"color": [ 1.0, 0.37, 0.37, 1.0 ],
"bindings": [
{
"binding_name": "#cost_text",
"binding_name_override": "#text",
"binding_condition": "visible"
},
{
"binding_name": "#cost_text_red",
"binding_name_override": "#visible"
}
]
}
},
{
"@anvil.cost_label": {
"color": [ 0.5, 1.0, 0.125, 1.0 ],
"bindings": [
{
"binding_name": "#cost_text",
"binding_name_override": "#text",
"binding_condition": "visible"
},
{
"binding_name": "#cost_text_green",
"binding_name_override": "#visible"
}
]
}
}
]
},
// #endregion
//---------------------------------------------------------------------------
// #region inventory area
//---------------------------------------------------------------------------
"inventory_label@anvil.generic_label": {
"offset": [ 0, 67 ],
"text": "container.inventory"
},
// #endregion
//---------------------------------------------------------------------------
// #region screen
//---------------------------------------------------------------------------
"top_half_panel": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ "100% - 14px", "50% - 14px" ],
"offset": [ 7, 7 ],
"controls": [
{ "@anvil.inventory_label": { } },
{ "@anvil.icon_and_text_panel": { } },
{ "@anvil.recipe_panel": { } }
]
},
"anvil_screen@common.inventory_screen_common": {
"controls": [
{ "@common.container_gamepad_helpers": { } },
{ "@common.screen_background": { } },
{
"@common.root_panel": {
"layer": 1,
"controls": [
{ "@common.input_panel": { } },
{ "@common.common_panel": { } },
{
"anvil_screen_inventory": {
"type": "panel",
"layer": 5,
"controls": [
{ "@anvil.top_half_panel": { } },
{ "@common.inventory_panel_bottom_half": { } },
{ "hotbar_grid@common.hotbar_grid_template": { } },
{ "@common.inventory_take_progress_icon_button": { } }
]
}
},
{ "@common.inventory_selected_icon_button": { } }
]
}
}
]
}
}
// #endregion
+245
View File
@@ -0,0 +1,245 @@
/********************************************************
+* (c) Mojang. All rights reserved *
+* (c) Microsoft. All rights reserved. *
+*********************************************************/
{
"namespace": "brewing_stand",
//-----------------------------------------------------------
// Images
//-----------------------------------------------------------
"brewing_pipes": {
"type": "image",
"layer": 2,
"texture": "gui/spritesheet2.png",
"anchor_from": "center",
"anchor_to": "center",
"size": [ 30, 20 ],
"uv": [ 59, 1 ],
"uv_size": [ 30, 20 ]
},
"bottle_empty_image": {
"type": "image",
"texture": "gui/spritesheet2.png",
"layer": 2,
"offset": [ 1, -1 ],
"size": [ 16, 16 ],
"uv": [ 42, 0 ],
"uv_size": [ 16, 16 ],
"anchor_from": "center",
"anchor_to": "center",
"bindings": [
{
"binding_name": "#empty_bottle_image_visible",
"binding_name_override": "#visible",
"binding_type": "collection",
"binding_collection_name": "$item_collection_name"
}
]
},
"bubbles_empty_image": {
"type": "image",
"texture": "gui/spritesheet2.png",
"layer": 2,
"offset": [ -16, -15 ],
"size": [ 12, 29 ],
"uv": [ 0, 0 ],
"uv_size": [ 12, 29 ],
"anchor_from": "center",
"anchor_to": "center"
},
"bubbles_full_image": {
"type": "image",
"texture": "gui/spritesheet2.png",
"layer": 3,
"offset": [ -16, -15 ],
"size": [ 12, 29 ],
"uv": [ 12, 0 ],
"uv_size": [ 12, 29 ],
"nineslice_size": 0.0,
"clip_direction": "down",
"bindings": [
{
"binding_name": "#brewing_bubbles_ratio",
"binding_name_override": "#clip_ratio",
"binding_condition": "visible"
}
]
},
"brewing_arrow_empty_image": {
"type": "image",
"layer": 1,
"texture": "gui/spritesheet2.png",
"offset": [ 15, -13 ],
"anchor_from": "center",
"anchor_to": "center",
"size": [ 9, 28 ],
"uv": [ 24, 0 ],
"uv_size": [ 9, 28 ]
},
"brewing_arrow_full_image": {
"type": "image",
"layer": 3,
"texture": "gui/spritesheet2.png",
"anchor_from": "center",
"anchor_to": "center",
"offset": [ 15, -13 ],
"size": [ 9, 28 ],
"uv": [ 33, 0 ],
"uv_size": [ 9, 28 ],
"nineslice_size": 0.0,
"clip_direction": "up",
"bindings": [
{
"binding_name": "#brewing_arrow_ratio",
"binding_name_override": "#clip_ratio",
"binding_condition": "visible"
}
]
},
//-----------------------------------------------------------
// Screen
//-----------------------------------------------------------
"brewing_label": {
"type": "label",
"size": [ 41, 7 ],
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"alignment": "center",
"text": "item.brewing_stand.name",
"color": [ 0.25, 0.25, 0.25, 1.0 ],
"layer": 2
},
"brewingstand_output_item@common.container_item": {
"size": [ 18, 18 ],
"$cell_overlay_ref": "brewing_stand.bottle_empty_image",
"$item_collection_name": "brewing_result_items"
},
"brewing_output_slots": {
"type": "grid",
"size": [ 54, 18 ],
"offset": [ 0, 18 ],
"grid_dimensions": [ 3, 1 ],
"collection_name": "brewing_result_items",
"controls": [
{
"left_offset": {
"type": "panel",
"grid_position": [ 0, 0 ],
"controls": [
{
"output_grid_item1@brewing_stand.brewingstand_output_item": {
"offset": [ -5, -7 ]
}
}
]
}
},
{
"output_grid_item2@brewing_stand.brewingstand_output_item": {
"grid_position": [ 1, 0 ]
}
},
{
"right_offset": {
"type": "panel",
"grid_position": [ 2, 0 ],
"controls": [
{
"output_grid_item3@brewing_stand.brewingstand_output_item": {
"offset": [ 5, -7 ]
}
}
]
}
}
]
},
"brewing_input_slot": {
"type": "panel",
"size": [ 18, 18 ],
"offset": [ 0, -18 ],
"controls": [
{
"input_grid": {
"type": "grid",
"grid_dimensions": [ 1, 1 ],
"controls": [
{
"input_grid_item@common.container_item": {
"grid_position": [ 0, 0 ],
"$item_collection_name": "brewing_input_item"
}
}
]
}
}
]
},
"brewing_panel_top_half": {
"type": "panel",
"size": [ "100%", "50% - 12px" ],
"offset": [ 0, 7 ],
"anchor_to": "top_middle",
"anchor_from": "top_middle",
"controls": [
{ "@brewing_label": { } },
{ "@brewing_stand_pictogram": { } }
]
},
"brewing_stand_pictogram": {
"type": "panel",
"size": [ "40%", "80%" ],
"controls": [
{ "@brewing_input_slot": { } },
{ "@brewing_output_slots": { } },
{ "@brewing_arrow_empty_image": { } },
{ "@brewing_arrow_full_image": { } },
{ "@bubbles_empty_image": { } },
{ "@bubbles_full_image": { } },
{ "@brewing_pipes": { } }
]
},
"brewing_stand_screen@common.inventory_screen_common": {
"controls": [
{ "@common.container_gamepad_helpers": { } },
{ "@common.screen_background": { } },
{
"@common.root_panel": {
"layer": 1,
"controls": [
{ "@common.input_panel": { } },
{ "@common.common_panel": { } },
{
"furnace_screen_inventory": {
"type": "panel",
"layer": 5,
"controls": [
{ "@brewing_stand.brewing_panel_top_half": { } },
{ "@common.inventory_panel_bottom_half_with_label": { } },
{ "hotbar_grid@common.hotbar_grid_template": { } },
{ "@common.inventory_take_progress_icon_button": { } }
]
}
},
{ "@common.inventory_selected_icon_button": { } }
]
}
}
]
}
}
+158
View File
@@ -0,0 +1,158 @@
/********************************************************
+* (c) Mojang. All rights reserved *
+* (c) Microsoft. All rights reserved. *
+*********************************************************/
{
"namespace": "chest",
////---------------------------------------------------------------------------
//// #slot region area
////---------------------------------------------------------------------------
"chest_label": {
"type": "label",
"size": [ 1, 1 ],
"offset": [ 7, 0 ],
"anchor_from": "top_left",
"anchor_to": "top_left",
"alignment": "top_left",
"text": "container.chest",
"color": [ 0.25, 0.25, 0.25, 1.0 ],
"layer": 2
},
"large_chest_label@chest_label": {
"text": "container.chestDouble"
},
"chest_grid_item@common.container_item": {
"$item_collection_name": "container_items"
},
"small_chest_grid": {
"type": "grid",
"size": [ 162, 54 ],
"anchor_from": "top_left",
"anchor_to": "top_left",
"grid_dimensions": [ 9, 3 ],
"grid_item_template": "chest_grid_item",
"collection_name": "container_items"
},
"large_chest_grid": {
"type": "grid",
"size": [ 162, 108 ],
"anchor_from": "top_left",
"anchor_to": "top_left",
"grid_dimensions": [ 9, 6 ],
"grid_item_template": "chest_grid_item",
"collection_name": "container_items"
},
//// #endregion
////---------------------------------------------------------------------------
//// #region chest area
////---------------------------------------------------------------------------
"small_chest_panel_top_half": {
"type": "panel",
"size": [ "100%", "50%" ],
"offset": [ 0, 7 ],
"anchor_to": "top_left",
"anchor_from": "top_left",
"controls": [
{ "@chest_label": { } },
{
"@small_chest_grid": {
"offset": [ 7, 9 ]
}
}
]
},
"large_chest_panel_top_half": {
"type": "panel",
"size": [ "100%", 132 ],
"offset": [ 0, 7 ],
"anchor_to": "top_left",
"anchor_from": "top_left",
"controls": [
{ "@large_chest_label": { } },
{
"@large_chest_grid": {
"offset": [ 7, 9 ]
}
}
]
},
//// #endregion
////---------------------------------------------------------------------------
//// #region screen
////---------------------------------------------------------------------------
"small_chest_screen@common.inventory_screen_common": {
"controls": [
{ "@common.container_gamepad_helpers": { } },
{ "@common.screen_background": { } },
{
"@common.root_panel": {
"layer": 1,
"controls": [
{ "@common.input_panel": { } },
{ "@common.common_panel": { } },
{
"chest_panel": {
"type": "panel",
"layer": 5,
"controls": [
{ "@chest.small_chest_panel_top_half": { } },
{ "@common.inventory_panel_bottom_half_with_label": { } },
{ "hotbar_grid@common.hotbar_grid_template": { } },
{ "@common.inventory_take_progress_icon_button": { } }
]
}
},
{ "@common.inventory_selected_icon_button": { } }
]
}
}
]
},
"large_chest_screen@common.inventory_screen_common": {
"controls": [
{ "@common.container_gamepad_helpers": { } },
{ "@common.screen_background": { } },
{
"@common.root_panel": {
"size": [ 176, 220 ],
"layer": 1,
"controls": [
{ "@common.input_panel": { } },
{ "@common.common_panel": { } },
{
"chest_panel": {
"type": "panel",
"layer": 5,
"controls": [
{ "@chest.large_chest_panel_top_half": { } },
{ "@common.inventory_panel_bottom_half_with_label": { } },
{ "hotbar_grid@common.hotbar_grid_template": { } },
{ "@common.inventory_take_progress_icon_button": { } }
]
}
},
{ "@common.inventory_selected_icon_button": { } }
]
}
}
]
}
}
// #endregion
+20
View File
@@ -0,0 +1,20 @@
{
"namespace": "debug_screen",
"special_render": {
"type": "custom",
"renderer": "debug_screen_renderer"
},
"debug_screen@common.base_screen": {
"send_telemetry": false,
"screen_not_flushable": true,
"render_game_behind": true,
"is_showing_menu": false,
"is_modal": true,
"should_steal_mouse": false,
"render_only_when_topmost": false,
"screen_draws_last": true,
"$screen_content": "debug_screen.special_render"
}
}
+174
View File
@@ -0,0 +1,174 @@
{
"namespace": "disconnect",
"disconnect_screen_text": {
"type": "label",
"anchor_to": "center",
"anchor_from": "center",
"layer": 2,
"alignment": "center",
"shadow": false
},
"disconnect_text@disconnect.disconnect_screen_text": {
"offset": [ 0, -25 ],
"text": "#disconnect_text",
"wrap": true,
"bindings": [
{ "binding_name": "#disconnect_text" }
]
},
"disconnect_title_text@disconnect.disconnect_screen_text": {
"offset": [ 0, -10 ],
"text": "#title_text",
"wrap": true,
"bindings": [
{
"binding_name": "#title_text",
"binding_condition": "visible"
}
]
},
"title_panel": {
"type": "panel",
"size": [ "100%", "100%" ],
"anchor_from": "center",
"anchor_to": "center",
"controls": [
{
"@disconnect.disconnect_title_text": { }
},
{
"@disconnect.disconnect_text": { }
}
]
},
"ok_button_text@disconnect.disconnect_screen_text": {
"type": "label",
"layer": 4,
"alignment": "center",
"text": "gui.ok",
"shadow": false
},
"ok_button@common.button": {
"$pressed_button_name": "button.menu_exit",
"size": [ 128, 26 ],
"offset": [ 0, 21 ],
"controls": [
{
"default@$button_state_default_base": {
"controls": [
{
"@disconnect.ok_button_text": {
"color": [ 1.0, 1.0, 1.0, 1.0 ]
}
}
]
}
},
{
"hover@$button_state_hover_base": {
"controls": [
{
"@disconnect.ok_button_text": {
"color": [ 1.0, 1.0, 0.0, 1.0 ]
}
}
]
}
},
{
"pressed@$button_state_pressed_base": {
"controls": [
{
"@disconnect.ok_button_text": {
"color": [ 1.0, 1.0, 0.0, 1.0 ],
"alpha": 0.65
}
}
]
}
}
]
},
"button_panel": {
"type": "panel",
"size": [ "100%", "100%" ],
"anchor_from": "center",
"anchor_to": "center",
"controls": [
{
"@disconnect.ok_button": { }
}
]
},
"gamepad_helpers": {
"type": "panel",
"size": [ 100, 10 ],
"offset": [ 0, "45%" ],
"controls": [
{
"@common.gamepad_helper_a": {
"size": [ "50%", "100%" ],
"offset": [ 0, "2%" ],
"anchor_from": "center",
"anchor_to": "center"
}
}
]
},
"disconnect_screen@common.base_screen": {
"button_mappings": [
{
"from_button_id": "button.menu_cancel",
"to_button_id": "button.menu_exit",
"mapping_type": "global"
}
],
"$screen_content": "disconnect.disconnect_screen_content"
},
"disconnect_screen_content": {
"type": "panel",
"variables": [
{
"requires": "$desktop_screen",
"$button_state_default_base": "common.button_state_default",
"$button_state_hover_base": "common.button_state_hover",
"$button_state_pressed_base": "common.button_state_pressed",
"$render_dirt_bg": true
},
{
"requires": "$pocket_screen",
"$button_state_default_base": "common-classic.button_state_default",
"$button_state_hover_base": "common-classic.button_state_hover",
"$button_state_pressed_base": "common-classic.button_state_pressed",
"$render_dirt_bg": true
}
],
"controls": [
{
"@common.dirt_background": {
"visible": "$render_dirt_bg"
}
},
{
"@disconnect.title_panel": { }
},
{
"@disconnect.gamepad_helpers": { }
},
{
"@disconnect.button_panel": { }
}
]
}
}
+394
View File
@@ -0,0 +1,394 @@
/********************************************************
+* (c) Mojang. All rights reserved *
+* (c) Microsoft. All rights reserved. *
+*********************************************************/
{
"namespace": "enchanting",
"enchanting_image": {
"type": "image",
"texture": "gui/enchanting_table.png"
},
"lapis_image@enchanting_image": {
"anchor_to": "top_left",
"anchor_from": "top_left",
"layer": 4,
"offset": [ 1, 1 ],
"size": [ 16, 16 ],
"uv": [ 0, 90 ],
"uv_size": [ 16, 16 ]
},
"dust_image@enchanting_image": {
"anchor_to": "top_left",
"anchor_from": "top_left",
"size": [ 12, 9 ],
"uv_size": [ 13, 11 ],
"bindings": [
{
"binding_name": "$visibility_binding_name",
"binding_name_override": "#visible",
"binding_collection_name": "#enchant_buttons",
"binding_type": "collection"
}
]
},
"dust_image_selectable@dust_image": {
"uv": "$uvs",
"layer": 9,
"$visibility_binding_name": "#selectable_dust_is_visible"
},
"dust_image_unselectable@dust_image": {
"uv": "$uvus",
"layer": 8,
"$visibility_binding_name": "#unselectable_dust_is_visible"
},
"dust_template": {
"type": "panel",
"controls": [
{ "@dust_image_selectable": { } },
{ "@dust_image_unselectable": { } }
]
},
"dust_panel": {
"type": "grid",
"grid_dimensions": [ 1, 3 ],
"layer": 5,
"collection_name": "#enchant_buttons",
"controls": [
{
"a@dust_template": {
"grid_position": [ 0, 0 ],
"$uvs": [ 52, 2 ],
"$uvus": [ 52, 19 ]
}
},
{
"b@dust_template": {
"grid_position": [ 0, 1 ],
"$uvs": [ 68, 2 ],
"$uvus": [ 68, 19 ]
}
},
{
"c@dust_template": {
"grid_position": [ 0, 2 ],
"$uvs": [ 83, 2 ],
"$uvus": [ 83, 19 ]
}
}
]
},
"background_with_hover_text@enchanting_image": {
"controls": [
{
"hover_text@common.hover_text": {
"bindings": [
{
"binding_name": "#hover_text",
"binding_collection_name": "#enchant_buttons",
"binding_type": "collection"
}
]
}
}
]
},
"dark_background@enchanting_image": {
"uv": [ 0, 52 ],
"uv_size": [ 108, 19 ]
},
"dark_background_with_hover_text@background_with_hover_text": {
"uv": [ 0, 52 ],
"uv_size": [ 108, 19 ]
},
"active_background@enchanting_image": {
"uv": [ 0, 33 ],
"uv_size": [ 108, 19 ]
},
"active_background_with_hover_text@background_with_hover_text": {
"uv": [ 0, 71 ],
"uv_size": [ 108, 19 ]
},
"enchant_runes": {
"type": "label",
"shadow": false,
"layer": 1,
"wrap": true,
"alignment": "top_left",
"anchor_to": "top_left",
"anchor_from": "top_left",
"text": "#runes",
"offset": [ 18, 2 ],
"size": [ 84, 18 ],
"font_type": "rune",
"bindings": [
{
"binding_collection_name": "#enchant_buttons",
"binding_name": "#runes",
"binding_type": "collection"
}
]
},
"enchant_cost": {
"type": "label",
"shadow": true,
"offset": [ -2, -2 ],
"layer": 1,
"anchor_from": "bottom_right",
"anchor_to": "bottom_right",
"alignment": "bottom_right",
"text": "#cost",
"bindings": [
{
"binding_name": "#cost",
"binding_collection_name": "#enchant_buttons",
"binding_type": "collection"
}
]
},
"success_runes@enchant_runes": {
"color": [ 0.54, 0.37, 0.36, 1.0 ]
},
"fail_runes@enchant_runes": {
"color": [ 0.408, 0.368, 0.29, 1.0 ]
},
"success_cost@enchant_cost": {
"color": [ 0.5, 1.0, 0.125 ]
},
"fail_cost@enchant_cost": {
"color": [ 0.54, 0.37, 0.36 ]
},
"enchanting_label": {
"type": "label",
"size": [ 41, 7 ],
"offset": [ 12, 0 ],
"anchor_from": "top_left",
"anchor_to": "top_left",
"alignment": "center",
"text": "container.enchant",
"color": [ 0.25, 0.25, 0.25, 1.0 ],
"layer": 2
},
"enchanting_grid_item": {
"type": "panel",
"size": [ 18, 18 ],
"anchor_from": "top_left",
"anchor_to": "top_left"
},
"base_button@common.button": {
"size": [ "100%", "100%" ],
"bindings": [
{
"binding_name": "$visibility_binding_name",
"binding_name_override": "#visible",
"binding_collection_name": "#enchant_buttons",
"binding_type": "collection"
},
{
"binding_type": "collection_details",
"binding_collection_name": "#enchant_buttons"
}
]
},
"unselectable_button@base_button": {
"$visibility_binding_name": "#unselectable_button_visibility",
"sound_volume": 0.0,
"layer": 1,
"button_mappings": [ ],
"controls": [
{ "default@dark_background": { } },
{ "hover@dark_background_with_hover_text": { } },
{ "pressed@dark_background": { } },
{ "rune_text@fail_runes": { } },
{ "enchant_cost@fail_cost": { } }
]
},
"selectable_button@base_button": {
"$visibility_binding_name": "#selectable_button_visibility",
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "button.menu_ok",
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_ok",
"to_button_id": "button.menu_ok",
"mapping_type": "focused"
}
],
"controls": [
{ "default@active_background": { } },
{ "hover@active_background_with_hover_text": { } },
{ "pressed@dark_background": { } },
{ "rune_text@fail_runes": { } },
{ "enchant_cost@success_cost": { } }
]
},
"enchant_button_panel": {
"type": "panel",
"size": [ "100%", "33.333333%" ],
"layer": 7,
"controls": [
{ "@dark_background": { } },
{ "@unselectable_button": { } },
{ "@selectable_button": { } }
]
},
"enchanting_panel_top_half": {
"type": "panel",
"size": [ "100%", "50% - 12px" ],
"offset": [ 0, 7 ],
"anchor_to": "top_left",
"anchor_from": "top_left",
"controls": [
{ "@enchanting_label": { } },
{
"enchanting_book": {
"type": "custom",
"renderer": "enchanting_book_renderer",
"size": [ 40, 40 ],
"layer": 15,
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"offset": [ 32, 7 ],
"bindings": [
{
"binding_name": "#open",
"binding_type": "global"
}
]
}
},
{
"item_grid": {
"type": "grid",
"grid_dimensions": [ 1, 1 ],
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"offset": [ 13, 14 ],
"size": [18, 18],
"collection_name": "enchanting_input_items",
"controls": [
{
"item_slot@common.container_item": {
"grid_position": [ 0, 0 ],
"$item_collection_name": "enchanting_input_items"
}
}
]
}
},
{
"lapis_grid": {
"type": "grid",
"grid_dimensions": [ 1, 1 ],
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"offset": [ 33, 14 ],
"size": [18, 18],
"collection_name": "enchanting_lapis_items",
"controls": [
{
"lapis@common.container_item": {
"grid_position": [ 0, 0 ],
"$cell_overlay_ref": "enchanting.lapis_image",
"$item_collection_name": "enchanting_lapis_items"
}
}
]
}
},
{
"grid_panel": {
"type": "panel",
"anchor_from": "right_middle",
"anchor_to": "right_middle",
"offset": [ -8, 2 ],
"size": [ "65%-8px", "80%+4px" ],
"controls": [
{
"indent@common.cell_image": {
"size": [ "100%+2px", "100%+2px" ]
}
},
{
"@dust_panel": {
"anchor_from": "top_left",
"anchor_to": "top_left",
"layer": 4
}
},
{
"enchantments_grid": {
"type": "grid",
"collection_name": "#enchant_buttons",
"size": [ "100%", "100%" ],
"layer": 2,
"anchor_from": "center",
"anchor_to": "center",
"grid_dimensions": [ 1, 3 ],
"grid_item_template": "enchanting.enchant_button_panel"
}
}
]
}
}
]
},
"enchanting_screen@common.inventory_screen_common": {
"controls": [
{ "@common.screen_background": { } },
{ "@common.container_gamepad_helpers": { } },
{
"@common.root_panel": {
"layer": 1,
"controls": [
{ "@common.input_panel": { } },
{ "@common.common_panel": { } },
{
"enchanting_screen_inventory": {
"type": "panel",
"layer": 5,
"controls": [
{ "@enchanting.enchanting_panel_top_half": { } },
{ "@common.inventory_panel_bottom_half_with_label": { } },
{ "hotbar_grid@common.hotbar_grid_template": { } },
{ "@common.inventory_take_progress_icon_button": { } }
]
}
},
{ "@common.inventory_selected_icon_button": { } }
]
}
}
]
}
}
+132
View File
@@ -0,0 +1,132 @@
/********************************************************
+* (c) Mojang. All rights reserved *
+* (c) Microsoft. All rights reserved. *
+*********************************************************/
{
"namespace": "environment",
// -----------------------------------------------
//
// Screen Window and Border
//
// -----------------------------------------------
"main_content_panel": {
"type": "panel",
"size": [ "100%", "100%" ],
"anchor_to": "top_left",
"anchor_from": "top_left",
"controls": [
{
"@common.scrolling_panel": {
"anchor_to": "top_left",
"anchor_from": "top_left",
"$show_background": false,
"size": [ "100%", "100%" ],
"$scrolling_content": "environment.inside_header_panel",
"$scroll_track_size": [ 3, "100% - 4px" ],
"$scroll_track_offset": [ -1, 2 ],
"$scroll_box_size": [ 5, "100% - 4px" ],
"$scroll_box_offset": [ 0, 2 ],
"$scrolling_pane_size": [ "100% - 4px", "100%" ],
"$scrolling_pane_offset": [ 2, 0 ]
}
}
]
},
"inside_header_panel": {
"type": "panel",
"size": [ "100%", "100%" ],
"anchor_from": "top_left",
"anchor_to": "top_left",
"controls": [
{
"@common.slider": {
"size": [ "80%", "10px" ],
"$slider_steps": 4,
"$option_label": "fish",
"$slider_name": "crap_slider"
// "$slider_value_binding_name": "#world_difficulty"
// "$label_bindings":
// [
// {
// "binding_name": "#difficulty_slider_label"
// }
// ]
}
},
{
"padding_indent2": {
"type": "panel",
"size": [ "100%", "100%" ]
}
}
]
},
// -----------------------------------------------
//
// screen
//
// -----------------------------------------------
"environment_screen@common.base_screen": {
"button_mappings": [
{
"from_button_id": "button.menu_cancel",
"to_button_id": "button.menu_exit",
"mapping_type": "global"
},
{
"from_button_id": "button.menu_up",
"to_button_id": "button.menu_up",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_down",
"to_button_id": "button.menu_down",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_left",
"to_button_id": "button.menu_left",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_right",
"to_button_id": "button.menu_right",
"mapping_type": "global",
"scope": "view"
}
],
"$screen_content": "environment.environment_screen_content"
},
"environment_screen_content": {
"type": "panel",
"controls": [
{
"root_panel": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"controls": [
{
"main_panel@realms_common.main_panel_no_bottom": {
"size": "$achievement_screen_size",
"offset": [ 0, 0 ],
"$text_name": "Environment",
"$child_control": "environment.main_content_panel"
}
}
]
}
}
]
}
}
+224
View File
@@ -0,0 +1,224 @@
{
"namespace": "furnace",
//---------------------------------------------------------------------------
// Furnace
//---------------------------------------------------------------------------
"flame_panel": {
"type": "panel",
"size": [ 13, 13 ],
"offset": [ -21, 0 ],
"controls": [
{
"@furnace.flame_empty_image": { }
},
{
"@furnace.flame_full_image": { }
}
]
},
"furnace_arrow_empty_image": {
"type": "image",
"layer": 1,
"texture": "gui/spritesheet.png",
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ 22, 15 ],
"uv": [ 73, 20 ],
"uv_size": [ 22, 15 ]
},
"furnace_arrow_full_image": {
"type": "image",
"layer": 3,
"texture": "gui/spritesheet.png",
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ 22, 15 ],
"uv": [ 73, 36 ],
"uv_size": [ 22, 15 ],
"nineslice_size": 0.0,
"clip_direction": "left",
"bindings": [
{
"binding_name": "#furnace_arrow_ratio",
"binding_name_override": "#clip_ratio",
"binding_condition": "visible"
}
]
},
"flame_empty_image": {
"type": "image",
"texture": "gui/spritesheet.png",
"layer": 2,
"uv": [ 41, 21 ],
"uv_size": [ 13, 13 ]
},
"flame_full_image": {
"type": "image",
"texture": "gui/spritesheet.png",
"layer": 3,
"uv": [ 57, 21 ],
"uv_size": [ 13, 13 ],
"nineslice_size": 0.0,
"clip_direction": "down",
"bindings": [
{
"binding_name": "#furnace_flame_ratio",
"binding_name_override": "#clip_ratio",
"binding_condition": "visible"
}
]
},
//---------------------------------------------------------------------------
// Screens
//---------------------------------------------------------------------------
"furnace_label": {
"type": "label",
"size": [ 41, 7 ],
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"alignment": "center",
"text": "container.furnace",
"color": [ 0.25, 0.25, 0.25, 1.0 ],
"layer": 2
},
"furnace_input_panel": {
"type": "panel",
"size": [ "50%", "100%" ],
"anchor_from": "top_left",
"anchor_to": "top_left",
"controls": [
{
"panel": {
"type": "panel",
"size": [ 16, 16 ],
"anchor_from": "right_middle",
"anchor_to": "right_middle",
"controls": [
{ "@furnace_ingredient_panel": { } },
{ "@flame_panel": { } },
{ "@furnace_fuel_panel": { } }
]
}
}
]
},
"furnace_ingredient_panel": {
"type": "panel",
"size": [ 18, 18 ],
"offset": [ -20, -19 ],
"anchor_from": "right_middle",
"anchor_to": "right_middle",
"controls": [
{
"ingredient_item@common.container_item": {
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"$item_collection_name": "furnace_ingredient_items"
}
}
]
},
"furnace_fuel_panel": {
"type": "panel",
"size": [ 18, 18 ],
"offset": [ -20, 19 ],
"anchor_from": "right_middle",
"anchor_to": "right_middle",
"controls": [
{
"fuel_item@common.container_item": {
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"$item_collection_name": "furnace_fuel_items",
"$focus_override_right": "furnace_output"
}
}
]
},
"furnace_output_panel": {
"type": "panel",
"size": [ "50%", "100%" ],
"anchor_from": "top_right",
"anchor_to": "top_right",
"controls": [
{
"output_item@common.container_item": {
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"size": [ 26, 26 ],
"$cell_image_size": [ 26, 26 ],
"offset": [ 20, 0 ],
"$item_collection_name": "furnace_output_items",
"$focus_id": "furnace_output"
}
}
]
},
"furnace_panel_top_half": {
"type": "panel",
"size": [ "100%", "50% - 12px" ],
"offset": [ 0, 7 ],
"anchor_to": "top_left",
"anchor_from": "top_left",
"controls": [
{ "@furnace_label": { } },
{ "input@furnace_input_panel": { } },
{
"@furnace_arrow_empty_image": {
"anchor_to": "center",
"anchor_from": "center"
}
},
{
"@furnace_arrow_full_image": {
"anchor_to": "center",
"anchor_from": "center"
}
},
{ "output@furnace_output_panel": { } }
]
},
"furnace_screen@common.inventory_screen_common": {
"controls": [
{ "@common.container_gamepad_helpers": { } },
{ "@common.screen_background": { } },
{
"@common.root_panel": {
"layer": 1,
"controls": [
{ "@common.input_panel": { } },
{ "@common.common_panel": { } },
{
"furnace_screen_inventory": {
"type": "panel",
"layer": 5,
"controls": [
{ "@furnace.furnace_panel_top_half": { } },
{ "@common.inventory_panel_bottom_half_with_label": { } },
{ "hotbar_grid@common.hotbar_grid_template": { } },
{ "@common.inventory_take_progress_icon_button": { } }
]
}
},
{ "@common.inventory_selected_icon_button": { } }
]
}
}
]
}
}
+687
View File
@@ -0,0 +1,687 @@
{
"namespace": "gamepad_layout",
//---------------------------------------------------------------------------
// Common
//---------------------------------------------------------------------------
"dark_thin_button": {
"type": "image",
"nineslice_size": 4.0,
"texture": "gui/newgui/play_screen/DarkButtonThinStroke1.png",
"uv": [ 0, 0 ],
"uv_size": [ 7, 7 ],
"layer": 3
},
"normal_stroke_button": {
"type": "image",
"nineslice_size": 4.0,
"texture": "gui/newgui/play_screen/NormalButtonStroke.png",
"uv": [ 0, 0 ],
"uv_size": [ 12, 12 ],
"layer": 3
},
"normal_thin_button": {
"type": "image",
"nineslice_size": 4.0,
"texture": "gui/newgui/play_screen/NormalButtonThinNewBevel.png",
"uv": [ 0, 0 ],
"uv_size": [ 8, 8 ],
"layer": 3
},
"hover_thin_stroke_button": {
"type": "image",
"nineslice_size": 4.0,
"texture": "gui/newgui/play_screen/HoverButtonThinStroke.png",
"uv": [ 0, 0 ],
"uv_size": [ 7, 7 ],
"layer": 3
},
"hover_thin_button": {
"type": "image",
"nineslice_size": 4.0,
"texture": "gui/newgui/play_screen/HoverButtonThinNewBevel2.png",
"uv": [ 0, 0 ],
"uv_size": [ 8, 8 ],
"layer": 3
},
"indent": {
"type": "image",
"nineslice_size": 3.0,
"texture": "gui/newgui/play_screen/Indent2.png",
"uv": [ 0, 0 ],
"uv_size": [ 5, 5 ],
"layer": 3
},
//---------------------------------------------------------------------------
// Text
//---------------------------------------------------------------------------
"gamepad_action_text": {
"type": "label",
"shadow": true,
"layer": 5,
"alignment": "center"
},
"actions@gamepad_action_text": {
"text": "controllerLayoutScreen.actions",
"offset": [ "23%", "8%" ],
"alignment": "top_left"
},
"bindings@gamepad_action_text": {
"text": "controllerLayoutScreen.bindings",
"offset": [ "-20%", "8%" ],
"alignment": "top_right"
},
"header@gamepad_action_text": {
"text": "options.controllerLayout",
"offset": [ 0, "2%" ],
"alignment": "top_middle"
},
"gamepad_action@gamepad_action_text": {
"text": "#action",
"bindings": [
{
"binding_name": "#action",
"binding_type": "collection",
"binding_condition": "visible",
"binding_collection_name": "gamepad_action_items"
}
]
},
"gamepad_binding@gamepad_action_text": {
"text": "#binding",
"bindings": [
{
"binding_name": "#binding",
"binding_type": "collection",
"binding_condition": "visible",
"binding_collection_name": "gamepad_action_items"
}
]
},
"confirmation_text@gamepad_action_text": {
"text": "#confirmation",
"offset": [ 0, "-5%" ],
"wrap": true,
"bindings": [
{
"binding_name": "#confirmation",
"binding_condition": "visible"
}
]
},
//---------------------------------------------------------------------------
// Buttons
//---------------------------------------------------------------------------
"back_button@common.button": {
"$pressed_button_name": "button.menu_exit",
"size": [ "33%-2px", "100%" ],
"offset": [ -1, 0 ],
"anchor_to": "bottom_right",
"anchor_from": "bottom_right",
"layer": 4,
"controls": [
{
"default@normal_thin_button": {
"controls": [
{
"back_button_text@common.button_text": {
"text": "controllerLayoutScreen.cancel"
}
}
]
}
},
{
"hover@hover_thin_button": {
"controls": [
{
"back_button_text@common.button_text": {
"text": "controllerLayoutScreen.cancel",
"color": [ 1.0, 1.0, 0.2 ]
}
}
]
}
},
{
"pressed@normal_thin_button": {
"controls": [
{
"back_button_text@common.button_text": {
"text": "controllerLayoutScreen.cancel",
"color": [ 1.0, 1.0, 0.2 ],
"alpha": 0.65
}
}
]
}
}
]
},
"accept_button@common.button": {
"$pressed_button_name": "button.menu_save_and_exit",
"size": [ "33%-2px", "100%" ],
"offset": [ 1, 0 ],
"anchor_to": "bottom_left",
"anchor_from": "bottom_left",
"layer": 4,
"controls": [
{
"default@normal_thin_button": {
"controls": [
{
"accept_button_text@common.button_text": {
"text": "controllerLayoutScreen.save"
}
}
]
}
},
{
"hover@hover_thin_button": {
"controls": [
{
"accept_button_text@common.button_text": {
"text": "controllerLayoutScreen.save",
"color": [ 1.0, 1.0, 0.2 ]
}
}
]
}
},
{
"pressed@normal_thin_button": {
"controls": [
{
"accept_button_text@common.button_text": {
"text": "controllerLayoutScreen.save",
"color": [ 1.0, 1.0, 0.2 ],
"alpha": 0.65
}
}
]
}
}
]
},
"reset_button@common.button": {
"$pressed_button_name": "button.menu_reset_default",
"size": [ "33%-2px", "100%" ],
"offset": [ 0, 0 ],
"anchor_to": "bottom_middle",
"anchor_from": "bottom_middle",
"layer": 4,
"controls": [
{
"default@normal_thin_button": {
"controls": [
{
"accept_button_text@common.button_text": {
"text": "controls.reset"
}
}
]
}
},
{
"hover@hover_thin_button": {
"controls": [
{
"accept_button_text@common.button_text": {
"text": "controls.reset",
"color": [ 1.0, 1.0, 0.2 ]
}
}
]
}
},
{
"pressed@normal_thin_button": {
"controls": [
{
"accept_button_text@common.button_text": {
"text": "controls.reset",
"color": [ 1.0, 1.0, 0.2 ],
"alpha": 0.65
}
}
]
}
}
]
},
"yes_button@common.button": {
"$pressed_button_name": "button.menu_yes",
"size": [ "50%-2px", "100%" ],
"offset": [ 1, 0 ],
"anchor_to": "bottom_left",
"anchor_from": "bottom_left",
"layer": 4,
"controls": [
{
"default@normal_thin_button": {
"controls": [
{
"accept_button_text@common.button_text": {
"text": "gui.yes"
}
}
]
}
},
{
"hover@hover_thin_button": {
"controls": [
{
"accept_button_text@common.button_text": {
"text": "gui.yes",
"color": [ 1.0, 1.0, 0.2 ]
}
}
]
}
},
{
"pressed@normal_thin_button": {
"controls": [
{
"accept_button_text@common.button_text": {
"text": "gui.yes",
"color": [ 1.0, 1.0, 0.2 ],
"alpha": 0.65
}
}
]
}
}
]
},
"no_button@common.button": {
"$pressed_button_name": "button.menu_no",
"size": [ "50%-2px", "100%" ],
"offset": [ -1, 0 ],
"anchor_to": "bottom_right",
"anchor_from": "bottom_right",
"layer": 4,
"controls": [
{
"default@normal_thin_button": {
"controls": [
{
"accept_button_text@common.button_text": {
"text": "gui.no"
}
}
]
}
},
{
"hover@hover_thin_button": {
"controls": [
{
"accept_button_text@common.button_text": {
"text": "gui.no",
"color": [ 1.0, 1.0, 0.2 ]
}
}
]
}
},
{
"pressed@normal_thin_button": {
"controls": [
{
"accept_button_text@common.button_text": {
"text": "gui.no",
"color": [ 1.0, 1.0, 0.2 ],
"alpha": 0.65
}
}
]
}
}
]
},
"bottom_buttons": {
"type": "panel",
"anchor_to": "bottom_middle",
"anchor_from": "bottom_middle",
"size": [ "100%-6px", "15%" ],
"offset": [ 0, -4 ],
"controls": [
{ "accept@accept_button": { } },
{ "reset@reset_button": { } },
{ "back@back_button": { } }
]
},
"cda_button_buttons": {
"type": "panel",
"anchor_to": "bottom_middle",
"anchor_from": "bottom_middle",
"size": [ "100%-6px", "25%" ],
"offset": [ 0, -4 ],
"controls": [
{ "yes@yes_button": { } },
{ "no@no_button": { } }
]
},
"gamepad_action_item_button_default_state": {
"type": "panel",
"size": [ "60%-1px", 25 ],
"anchor_from": "top_left",
"anchor_to": "top_left",
"layer": 4,
"controls": [
{ "action_bg@normal_thin_button": { } },
{ "action_text@gamepad_action": { } }
]
},
"gamepad_action_item_button_hover_state": {
"type": "panel",
"layer": 4,
"anchor_from": "top_left",
"anchor_to": "top_left",
"controls": [
{ "action_bg@hover_thin_stroke_button": { } },
{
"action_text@gamepad_action": {
"color": [ 1.0, 1.0, 0.2 ]
}
}
]
},
"gamepad_binding_button_hover_state": {
"type": "panel",
"layer": 4,
"anchor_from": "top_right",
"anchor_to": "top_right",
"controls": [
{ "binding_bg@hover_thin_stroke_button": { } },
{
"binding_text@gamepad_binding": {
"color": [ 1.0, 1.0, 0.2 ]
}
}
]
},
"gamepad_binding_button_default_state": {
"type": "panel",
"layer": 4,
"anchor_from": "top_right",
"anchor_to": "top_right",
"controls": [
{ "binding_bg@dark_thin_button": { } },
{ "binding_text@gamepad_binding": { } }
]
},
"gamepad_action_item_button@common.button": {
"$pressed_button_name": "button.menu_binding_start",
"size": [ "60%-1px", 25 ],
"anchor_from": "top_left",
"anchor_to": "top_left",
"bindings": [
{
"binding_type": "collection_details",
"binding_condition": "visible",
"binding_collection_name": "gamepad_action_items"
}
],
"controls": [
{ "default@gamepad_action_item_button_default_state": { } },
{ "hover@gamepad_action_item_button_hover_state": { } },
{ "pressed@gamepad_action_item_button_hover_state": { } }
]
},
"gamepad_binding_button@common.button": {
"$pressed_button_name": "button.menu_binding_start",
"size": [ "40%-1px", 25 ],
"anchor_from": "top_right",
"anchor_to": "top_right",
"bindings": [
{
"binding_type": "collection_details",
"binding_condition": "visible",
"binding_collection_name": "gamepad_action_items"
}
],
"controls": [
{ "default@gamepad_binding_button_default_state": { } },
{ "hover@gamepad_binding_button_hover_state": { } },
{ "pressed@gamepad_binding_button_hover_state": { } }
]
},
//---------------------------------------------------------------------------
// Grid Items
//---------------------------------------------------------------------------
"gamepad_action_items": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ "100%", 26 ],
"controls": [
{ "action_panel@gamepad_action_item_button_default_state": { } },
{ "binding_button@gamepad_binding_button": { } }
]
},
"gamepad_action_grid": {
"type": "grid",
"grid_item_template": "gamepad_action_items",
"grid_dimension_binding": "#gamepad_action_item_grid_dimension",
"collection_name": "gamepad_action_items",
"anchor_to": "top_left",
"anchor_from": "top_left",
"size": [ "100%", "default" ],
"bindings": [
{
"binding_name": "#gamepad_action_item_grid_dimension",
"binding_condition": "visible"
}
]
},
"gamepad_action_grid_layout": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ "100% - 4px", "100%c + 4px" ],
"offset": [ 2, 2 ],
"layer": 1,
"controls": [
{
"@gamepad_layout.gamepad_action_grid": { }
}
]
},
//---------------------------------------------------------------------------
// Panels
//---------------------------------------------------------------------------
"root_panel_common": {
"type": "panel",
"anchor_to": "top_middle",
"anchor_from": "top_middle",
"size": [ "100%", "100%" ],
"controls": [
{ "root_button@normal_stroke_button": { "layer": 1 } },
{ "header_text@header": { } },
{ "bindings_text@bindings": { } },
{ "actions_text@actions": { } },
{ "root_edit_panel@gamepad_edit_panel": { } },
{ "root_bottom_buttons@bottom_buttons": { "layer": 2 } },
{ "input_siphon@ghost_binding": { "visible": false } }
],
"bindings": [
{
"binding_name": "#root_visible",
"binding_name_override": "#visible"
}
]
},
"cda_panel": {
"type": "panel",
"anchor_to": "center",
"anchor_from": "center",
"size": [ "70%", "60%" ],
"controls": [
{ "bg@normal_stroke_button": { } },
{ "cda_text@confirmation_text": { } },
{ "test_buttons@cda_button_buttons": { } }
],
"bindings": [
{
"binding_name": "#cda_visible",
"binding_name_override": "#visible"
}
]
},
"gamepad_action_binding": {
"type": "panel",
"anchor_to": "top_right",
"anchor_from": "top_right",
"size": [ "50%", 25 ],
"offset": [ 0, 2 ],
"controls": [
{ "binding_bg@dark_thin_button": { } },
{ "binding_txt@gamepad_binding": { } }
]
},
"gamepad_edit_panel": {
"type": "panel",
"anchor_to": "top_middle",
"anchor_from": "top_middle",
"size": [ "100%-14px", "68%" ],
"offset": [ 0, "15%" ],
"controls": [
{
"scroll_area_panel": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ "100%", "100%" ],
"offset": [ 0, -6 ],
"controls": [
{
"scroll_section": {
"type": "panel",
"controls": [
{
"@common.scrolling_panel": {
"$scrolling_pane_size": [ "100%", "100%" ],
"$scrolling_content": "gamepad_layout.gamepad_action_grid_layout"
}
}
]
}
}
]
}
}
]
},
"ghost_binding": {
"type": "input_panel",
"button_mappings": [
{
"from_button_id": "any",
"mapping_type": "global"
}
],
"bindings": [
{
"binding_name": "#binding_state",
"binding_name_override": "#visible"
}
]
},
//---------------------------------------------------------------------------
// Screen
//---------------------------------------------------------------------------
"gamepad_layout_screen@common.base_screen": {
"controls": [
{ "fade_panel@cda_panel": { } },
{ "root_panel@root_panel_common": { } }
],
"button_mappings": [
{
"from_button_id": "button.menu_cancel",
"to_button_id": "button.menu_exit",
"mapping_type": "global"
},
{
"from_button_id": "button.menu_up",
"to_button_id": "button.menu_up",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_down",
"to_button_id": "button.menu_down",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_left",
"to_button_id": "button.menu_left",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_right",
"to_button_id": "button.menu_right",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_tab_left",
"to_button_id": "button.menu_tab_left",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_tab_right",
"to_button_id": "button.menu_tab_right",
"mapping_type": "global",
"scope": "view"
}
]
}
}
@@ -0,0 +1,20 @@
{
"namespace": "holographic_postrender_screen",
"special_render": {
"type": "custom",
"renderer": "holographic_postrenderer"
},
"holographic_postrender_screen@common.base_screen": {
"send_telemetry": false,
"screen_not_flushable": true,
"render_game_behind": true,
"is_showing_menu": false,
"is_modal": true,
"should_steal_mouse": false,
"render_only_when_topmost": false,
"screen_draws_last": true,
"$screen_content": "holographic_postrender_screen.special_render"
}
}
+210
View File
@@ -0,0 +1,210 @@
{
"namespace": "horse",
//---------------------------------------------------------------------------
// Screens
//---------------------------------------------------------------------------
"horse_screen@common.inventory_screen_common": {
"controls": [
{ "@common.container_gamepad_helpers": { } },
{ "@common.screen_background": { } },
{
"@common.root_panel": {
"layer": 1,
"controls": [
{ "@common.input_panel": { } },
{ "@common.common_panel": { } },
{ "horse_section_label@horse.horse_label": { } },
{ "@horse.inv_panel": { } },
{
"equipment@horse.equip_panel": {
"offset": [ 7, 18 ]
}
},
{
"renderer@horse.horse_renderer": {
"offset": [ 25, 18 ]
}
},
{ "@common.inventory_panel_bottom_half_with_label": { } },
{ "@common.hotbar_grid_template": { } },
{ "@common.inventory_selected_icon_button": { } }
]
}
}
]
},
"renderer_bg": {
"type": "image",
"texture": "gui/spritesheet.png",
"uv": [ 0, 32 ],
"uv_size": [ 8, 8 ],
"nineslice_size": 1.0
},
"overlay_image": {
"type": "image",
"uv": [ 0, 0 ],
"uv_size": [ 16, 16 ],
"alpha": 0.5
},
"saddle_image@horse.overlay_image": {
"texture": "gui/newgui/empty_horse_slot_saddle.png"
},
"armor_image@horse.overlay_image": {
"texture": "gui/newgui/empty_horse_slot_armor.png"
},
"horse_label@common.section_heading_label": {
"anchor_from": "top_left",
"anchor_to": "top_left",
"offset": [ 7, 7 ],
"text": "#text", // is this a hack?
"bindings": [
{
"binding_name": "#horse_name_loc",
"binding_name_override": "#text"
}
]
},
"equip_grid": {
"type": "grid",
"anchor_to": "top_left",
"anchor_from": "top_left",
"collection_name": "horse_equip_items",
"grid_item_template": "@common.container_item",
"grid_dimension_binding": "#equip_grid_dimensions",
"$item_collection_name": "horse_equip_items",
"bindings": [
{
"binding_name": "#equip_grid_dimensions"
}
]
},
"inv_grid": {
"type": "grid",
"anchor_to": "top_left",
"anchor_from": "top_left",
"layer": 3,
"collection_name": "container_items",
"grid_item_template": "@common.container_item",
"grid_dimension_binding": "#inv_grid_dimensions",
"$item_collection_name": "container_items",
"bindings": [
{
"binding_name": "#inv_grid_dimensions"
}
]
},
"inv_bg_panel": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ 90, 54 ],
"layer": 2,
"controls": [
{ "@common.cell_image": { } },
{
"@common.highlight_slot": {
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ "100%-2px", "100%-2px" ],
"offset": [ 1, 1 ],
"layer": 2
}
}
]
},
"equip_panel": {
"type": "panel",
"anchor_to": "top_left",
"anchor_from": "top_left",
"controls": [
{ "@horse.equip_grid": { } },
{
"saddle@horse.saddle_image": {
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ 16, 16 ],
"offset": [ 1, 1 ],
"layer": 4
}
},
{
"armor@horse.armor_image": {
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ 16, 16 ],
"offset": [ 1, 19 ],
"layer": 4,
"bindings": [
{
"binding_name": "#has_armor_slot",
"binding_name_override": "#visible"
}
]
}
}
]
},
"inv_panel": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"offset": [ 79, 18 ],
"controls": [
{ "@horse.inv_bg_panel": { } },
{ "@horse.inv_grid": { } }
]
},
"horse_panel": {
"type": "panel",
"size": [ "100%", "100%" ],
"controls": [
{ "@horse.equip_panel": { } },
{ "@horse.inv_panel": { } }
]
},
"horse_renderer": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ 54, 54 ],
"controls": [
{
"@horse.renderer_bg": {
"layer": 3
}
},
{
"horse_custom": {
"type": "custom",
"renderer": "live_horse_renderer",
"layer": 4,
"anchor_from": "center",
"anchor_to": "center",
"size": [ "30%", "30%" ],
"offset": [ "15%", "40%" ],
"bindings": [
{
"binding_name": "#entity_id"
}
]
}
}
]
}
}
+506
View File
@@ -0,0 +1,506 @@
{
"namespace": "horse_pocket",
//---------------------------------------------------------------------------
// Screens
//---------------------------------------------------------------------------
"flying_item_renderer": {
"type": "custom",
"renderer": "flying_item_renderer",
"layer": 20,
"property_bag": {
"#flying_item_renderer": true
}
},
"horse_screen@common.inventory_screen_common": {
"controls": [
{ "@pocket_redstone.gamepad_helpers": { } },
{ "@common.inventory_selected_icon_button": { } },
{
"@common.root_panel": {
"size": [ "100%-8px", "100%-4px" ],
"layer": 1,
"controls": [
{ "hold_icon@common.inventory_take_progress_icon_button": { "layer": 1 } },
{ "@horse_pocket.flying_item_renderer": { } },
{
"@horse_pocket.background_image": {
"anchor_from": "top_right",
"anchor_to": "top_right",
"size": [ "100%-30px", "100%" ],
"layer": 2
}
},
{ "@horse_pocket.interactive_tabs": { } },
{
"@horse_pocket.close_button": {
"offset": [ 6, 6 ],
"layer": 5
}
},
{
"inventory@horse_pocket.half_screen_inventory": {
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"offset": [ 30, 0 ],
"$container_size": 36,
"$pane_collection": "inventory_items"
}
},
{
"equipment@horse_pocket.equip_middle_screen": {
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"offset": [ 15, 0 ]
}
},
{
"chest_tab": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"visible": false,
"controls": [
{ "@horse_pocket.visual_tabs_chest": { } },
{
"chest@horse_pocket.half_screen_chest": {
"anchor_from": "right_middle",
"anchor_to": "right_middle",
"$container_size": 15,
"$pane_collection": "container_items"
}
}
]
}
},
{
"renderer_tab": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"controls": [
{ "@horse_pocket.visual_tabs_equip": { } },
{
"renderer@horse_pocket.half_screen_renderer": {
"anchor_from": "right_middle",
"anchor_to": "right_middle"
}
}
]
}
}
]
}
}
]
},
"background_image": {
"type": "image",
"texture": "gui/spritesheet.png",
"uv": [ 34, 43 ],
"uv_size": [ 14, 14 ],
"nineslice_size": 4.0
},
"dark_bg": {
"type": "image",
"texture": "gui/gui.png",
"uv": [ 200, 46 ],
"uv_size": [ 16, 16 ],
"nineslice_size": 1.0
},
"renderer_bg": {
"type": "image",
"texture": "gui/spritesheet.png",
"uv": [ 0, 32 ],
"uv_size": [ 8, 8 ],
"nineslice_size": 1.0
},
"saddle_image": {
"type": "image",
"texture": "gui/newgui/empty_horse_slot_saddle.png",
"uv": [ 0, 0 ],
"uv_size": [ 16, 16 ],
"alpha": 0.7
},
"armor_image": {
"type": "image",
"texture": "gui/newgui/empty_horse_slot_armor.png",
"uv": [ 0, 0 ],
"uv_size": [ 16, 16 ],
"alpha": 0.7
},
"panel_outline": {
"type": "image",
"nineslice_size": 1.0,
"texture": "gui/spritesheet.png",
"uv": [ 28, 42 ],
"uv_size": [ 4, 4 ]
},
"close_button_default": {
"type": "image",
"texture": "gui/spritesheet.png",
"uv": [ 60, 0 ],
"uv_size": [ 18, 18 ]
},
"close_button_pressed@close_button_default": {
"uv": [ 78, 0 ]
},
"close_button@common.button": {
"$pressed_button_name": "button.menu_exit",
"size": [ 21, 21 ],
"anchor_from": "top_left",
"anchor_to": "top_left",
"controls": [
{ "default@close_button_default": { } },
{ "hover@close_button_default": { } },
{ "pressed@close_button_pressed": { } }
]
},
"base_grid": {
"type": "grid",
"grid_rescaling_type": "horizontal",
"anchor_to": "top_left",
"anchor_from": "top_left",
"size": [ "100% - 4px", "default" ],
"maximum_grid_items": "$container_size",
"collection_name": "$pane_collection",
"grid_item_template": "common.pocket_ui_container_item",
"$item_collection_name": "$pane_collection"
},
"inventory_grid@horse_pocket.base_grid": { },
"chest_grid@horse_pocket.base_grid": { },
"base_grid_panel": {
"type": "panel",
"size": [ "100%-16px", "100%-16px" ],
"layer": 3,
"controls": [
{ "@panel_outline": { } },
{
"@common.scrolling_panel": {
"$scrolling_pane_size": [ "100%-2px", "100%-2px" ],
"offset": [ 1, 1 ],
"$scroll_track_size": [ "8px", "100%" ],
"$scroll_box_mouse_image_control": "common-classic.button_state_default"
}
},
{ "@dark_bg": { } }
]
},
// these are separated so that grid scrolling is unique to each panel (both would scroll the same panel otherwise)
"inventory_panel@horse_pocket.base_grid_panel": {
"$scrolling_content": "horse_pocket.inventory_grid"
},
"chest_panel@horse_pocket.base_grid_panel": {
"$scrolling_content": "horse_pocket.chest_grid"
},
"half_screen": {
"type": "panel",
"size": [ "50%-32px", "100%" ]
},
"middle_screen": {
"type": "panel",
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"size": [ "32px", "100%" ]
},
"half_screen_inventory@horse_pocket.half_screen": {
"controls": [
{ "@inventory_panel": { } }
]
},
"half_screen_chest@horse_pocket.half_screen": {
"controls": [
{ "@chest_panel": { } }
]
},
"half_screen_renderer@horse_pocket.half_screen": {
"controls": [
{
"@horse_pocket.renderer_bg": {
"size": [ "100%-16px", "100%-16px" ],
"layer": 3
}
},
{
"horse_custom": {
"type": "custom",
"renderer": "live_horse_renderer",
"layer": 4,
"anchor_from": "center",
"anchor_to": "center",
"size": [ "40%", "40%" ],
"offset": [ "20%", "45%" ],
"bindings": [
{
"binding_name": "#entity_id"
}
]
}
}
]
},
// insert spacing between grid items!
"equip_container_item@common.pocket_ui_container_item": {
"size": [ 32, 32 ]
},
"equip_grid": {
"type": "grid",
"collection_name": "horse_equip_items",
"grid_item_template": "@horse_pocket.equip_container_item",
"grid_dimension_binding": "#equip_grid_dimensions",
"$item_collection_name": "horse_equip_items",
"bindings": [
{
"binding_name": "#equip_grid_dimensions"
}
]
},
"equip_middle_screen@horse_pocket.middle_screen": {
"controls": [
{
"equip_grid_panel": {
"type": "panel",
"size": [ 32, 64 ],
"controls": [
{ "@horse_pocket.equip_grid": { } },
{
"centered@horse_pocket.saddle_image": {
"size": [ 16, 16 ],
"layer": 6,
"bindings": [
{
"binding_name": "#sadle_slot_centered",
"binding_name_override": "#visible"
}
]
}
},
{
"offset@horse_pocket.saddle_image": {
"size": [ 16, 16 ],
"offset": [ 0, -16 ],
"layer": 6,
"bindings": [
{
"binding_name": "#has_armor_slot",
"binding_name_override": "#visible"
}
]
}
},
{
"@horse_pocket.armor_image": {
"size": [ 16, 16 ],
"offset": [ 0, 16 ],
"layer": 6,
"bindings": [
{
"binding_name": "#has_armor_slot",
"binding_name_override": "#visible"
}
]
}
}
]
}
}
]
},
"interactive_tabs": {
"type": "panel",
"controls": [
{
"renderer_tab_interactive@common.tab": {
"anchor_from": "bottom_left",
"anchor_to": "bottom_left",
"size": [ 32, 32 ],
"offset": [ 0, -2 ],
"tab_index": 0,
"tab_content": "renderer_tab",
"$tab_button_name": "button.equip_tab"
}
},
{
"chest_tab_interactive@common.tab": {
"anchor_from": "bottom_left",
"anchor_to": "bottom_left",
"size": [ 32, 32 ],
"offset": [ 0, -36 ],
"tab_index": 1,
"tab_content": "chest_tab",
"$tab_button_name": "button.chest_tab",
"bindings": [
{
"binding_name": "#is_chested",
"binding_name_override": "#visible"
}
]
}
}
]
},
"tab_front": {
"type": "image",
"layer": 3,
"texture": "gui/spritesheet.png",
"uv": [ 49, 43 ],
"uv_size": [ 13, 14 ],
"nineslice_size": 4.0
},
"tab_back@horse_pocket.tab_front": {
"layer": 1
},
"close_tab@tab_front": {
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ 32, 32 ]
},
"item_icon_renderer": {
"type": "custom",
"renderer": "inventory_item_renderer",
"size": [ 24, 24 ],
"layer": 5
},
"saddle_icon_front@horse_pocket.item_icon_renderer": {
"property_bag": {
"#item_id_aux": 21561344
}
},
"chest_icon_front@horse_pocket.item_icon_renderer": {
"property_bag": {
"#item_id_aux": 3538944
}
},
"visual_tabs_equip": {
"type": "panel",
"controls": [
{ "@horse_pocket.close_tab": { } },
{
"equip@tab_front": {
"anchor_from": "bottom_left",
"anchor_to": "bottom_left",
"size": [ 32, 32 ],
"offset": [ 0, -2 ]
}
},
{
"chest@tab_back": {
"anchor_from": "bottom_left",
"anchor_to": "bottom_left",
"size": [ 32, 32 ],
"offset": [ 0, -36 ],
"bindings": [
{
"binding_name": "#is_chested",
"binding_name_override": "#visible"
}
]
}
},
{
"chest_icon@chest_icon_front": {
"anchor_from": "bottom_left",
"anchor_to": "bottom_left",
"size": [ 24, 24 ],
"offset": [ 9, -37 ],
"bindings": [
{
"binding_name": "#is_chested",
"binding_name_override": "#visible"
}
]
}
},
{
"equip_icon@saddle_icon_front": {
"anchor_from": "bottom_left",
"anchor_to": "bottom_left",
"size": [ 24, 24 ],
"offset": [ 9, -3 ]
}
}
]
},
"visual_tabs_chest": {
"type": "panel",
"controls": [
{ "@horse_pocket.close_tab": { } },
{
"equip@tab_back": {
"anchor_from": "bottom_left",
"anchor_to": "bottom_left",
"size": [ 32, 32 ],
"offset": [ 0, -2 ]
}
},
{
"chest@tab_front": {
"anchor_from": "bottom_left",
"anchor_to": "bottom_left",
"size": [ 32, 32 ],
"offset": [ 0, -36 ],
"bindings": [
{
"binding_name": "#is_chested",
"binding_name_override": "#visible"
}
]
}
},
{
"chest_icon@chest_icon_front": {
"anchor_from": "bottom_left",
"anchor_to": "bottom_left",
"size": [ 24, 24 ],
"offset": [ 9, -37 ],
"bindings": [
{
"binding_name": "#is_chested",
"binding_name_override": "#visible"
}
]
}
},
{
"equip_icon@saddle_icon_front": {
"anchor_from": "bottom_left",
"anchor_to": "bottom_left",
"size": [ 24, 24 ],
"offset": [ 9, -3 ]
}
}
]
}
}
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+640
View File
@@ -0,0 +1,640 @@
/********************************************************
+* (c) Mojang. All rights reserved *
+* (c) Microsoft. All rights reserved. *
+*********************************************************/
{
"namespace": "invite",
"label": {
"type": "label",
"anchor_from": "center",
"anchor_to": "center",
"offset": [ 0, 0 ],
"color": "white",
"wrap": true
},
//Thin Border button with a variable text
"button_label": {
"type": "label",
"text": "$button_text",
"layer": 1,
"color": [ 0, 0, 0 ]
},
"bound_button_label@button_label": {
"text": "$label_bind_name",
"bindings": [
{
"binding_name": "$label_bind_name",
"binding_type": "global"
}
]
},
"default_borderless_button_layout": {
"variables": [
{
"requires": "$label_bind_name",
"$label_to_use": "bound_button_label"
}
],
"type": "image",
"nineslice_size": 1,
"texture": "gui/newgui/buttons/borderless/base.png",
"uv": [ 0, 0 ],
"uv_size": [ 5, 5 ],
"controls": [
{ "@invite.$label_to_use": { "wrap": true } }
]
},
"hover_borderless_button_layout@default_borderless_button_layout": {
"texture": "gui/newgui/buttons/borderless/hover.png"
},
"pressed_borderless_button_layout@default_borderless_button_layout": {
"texture": "gui/newgui/buttons/borderless/hoverPress.png",
"controls": [
{ "@invite.$label_to_use": { "offset": [ 1, 1 ] } }
]
},
"borderless_button@common.button": {
"$label_to_use|default": "button_label",
"$label_bind_name|default": "",
"controls": [
{
"default@default_borderless_button_layout": { }
},
{
"hover@hover_borderless_button_layout": { }
},
{
"pressed@pressed_borderless_button_layout": { }
}
]
},
//Black bordered box is used for the grid item and around the gamerpic
"black_border": {
"type": "image",
"texture": "gui/newgui/MainBanners.png",
"uv": [ 0, 0 ],
"uv_size": [ 3, 3 ],
"nineslice_size": 1.0
},
"black_border_hover@black_border": {
"texture": "gui/newgui/MainBannersHover.png"
},
//Gamerpic uses the black border and an image that will come from XBL
"gamerpic": {
"type": "image",
"texture": "#texture",
"uv": [ 0, 0 ],
"uv_size": [ 64, 64 ],
"texture_source": "#texture_source",
"bindings": [
{
"binding_name": "#texture",
"binding_type": "collection",
"binding_collection_name": "$collection_name"
},
{
"binding_name": "#texture_source",
"binding_name_override": "#texture_file_system",
"binding_type": "collection",
"binding_collection_name": "$collection_name"
}
]
},
"gamerpic_panel": {
"type": "panel",
"size": [ 20, 20 ],
"anchor_to": "left_middle",
"anchor_from": "left_middle",
"offset": [ 24, 0 ],
"controls": [
{ "@black_border": { } },
{
"@gamerpic": {
"layer": 1,
"size": [ "100%-2px", "100%-2px" ]
}
}
]
},
//Status image - 2 images with flipped visibility
"status_image": {
"type": "image",
"uv": [ 0, 0 ],
"uv_size": [ 9, 9 ],
"size": [ 9, 9 ]
},
"online_image@status_image": {
"texture": "gui/newgui/onlineLight.png",
"bindings": [
{
"binding_name": "#online_visible",
"binding_name_override": "#visible",
"binding_type": "collection",
"binding_collection_name": "$collection_name"
}
]
},
"offline_image@status_image": {
"texture": "gui/newgui/offlineLight.png",
"bindings": [
{
"binding_name": "#offline_visible",
"binding_name_override": "#visible",
"binding_type": "collection",
"binding_collection_name": "$collection_name"
}
]
},
"online_indicator": {
"type": "panel",
"anchor_to": "right_middle",
"anchor_from": "right_middle",
"offset": [ -6, 0 ],
"size": [ 9, 9 ],
"controls": [
{
"@online_image": { }
},
{
"@offline_image": { }
}
]
},
//The selected indicator - a check box - 4 images for checked/hover
"checkbox_image": {
"type": "image",
"uv": [ 0, 0 ],
"uv_size": [ 16, 13 ],
"size": [ 16, 13 ],
"anchor_to": "left_middle",
"anchor_from": "left_middle",
"offset": [ 6, 0 ]
},
"checked_image@checkbox_image": {
"texture": "gui/newgui/buttons/checkbox/checkbox_checked.png"
},
"unchecked_image@checkbox_image": {
"texture": "gui/newgui/buttons/checkbox/checkbox_unchecked.png"
},
"checked_hover_image@checkbox_image": {
"texture": "gui/newgui/buttons/checkbox/checkbox_checked_hover.png"
},
"unchecked_hover_image@checkbox_image": {
"texture": "gui/newgui/buttons/checkbox/checkbox_unchecked_hover.png"
},
//labels that indicate the information about the game
//Since there's no flow panel we use the color switch codes to build up the string from multiple inputs
"friend_label": {
"type": "label",
"alignment": "left_middle",
"size": [ "100%-60px", "50%" ],
"clip": true
},
"friend_grid_label_line1@friend_label": {
"text": "#label_line1",
"alignment": "left_middle",
"anchor_to": "top_left",
"anchor_from": "top_left",
"offset": [ 46, 3 ],
"bindings": [
{
"binding_name": "#label_line1",
"binding_type": "collection",
"binding_collection_name": "$collection_name"
}
]
},
"friend_grid_label_line2@friend_label": {
"text": "#label_line2",
"alignment": "left_middle",
"anchor_to": "bottom_left",
"anchor_from": "bottom_left",
"offset": [ 46, 0 ],
"bindings": [
{
"binding_name": "#label_line2",
"binding_type": "collection",
"binding_collection_name": "$collection_name"
}
]
},
"friend_background@black_border": {
"size": [ "100%-2px", "100%-2px" ]
},
"friend_background_hover@black_border_hover": {
"size": [ "100%-2px", "100%-2px" ]
},
"hover_friend_button": {
"type": "panel",
"controls": [
{ "@friend_button_layout": { } },
{
"hover_text@common.hover_text": {
"layer": 100,
"bindings": [
{
"binding_name": "#hover_text",
"binding_type": "collection",
"binding_collection_name": "$collection_name"
}
]
}
}
]
},
"friend_button_layout": {
"type": "panel",
"layer": 1, //Without this the background disappeared on certain layout changes.
"controls": [
{ "@friend_grid_label_line1": { "layer": 1 } },
{ "@friend_grid_label_line2": { "layer": 1 } },
{ "@online_indicator": { "layer": 1 } },
{ "pp@gamerpic_panel": { "layer": 1 } }
]
},
"unchecked_friend_button_layout": {
"type": "panel",
"controls": [
{ "@friend_background": { "layer": 0 } },
{ "@friend_button_layout": { "layer": 1 } },
{ "@unchecked_image": { "layer": 2 } }
]
},
"checked_friend_button_layout": {
"type": "panel",
"controls": [
{ "@friend_background": { "layer": 0 } },
{ "@friend_button_layout": { "layer": 1 } },
{ "@checked_image": { "layer": 2 } }
]
},
"unchecked_hover_friend_button_layout": {
"type": "panel",
"controls": [
{ "@friend_background_hover": { "layer": 0 } },
{ "@friend_button_layout": { "layer": 1 } },
{ "@unchecked_hover_image": { "layer": 2 } },
{ "@hover_friend_button": { } }
]
},
"checked_hover_friend_button_layout": {
"type": "panel",
"controls": [
{ "@friend_background_hover": { "layer": 0 } },
{ "@friend_button_layout": { "layer": 1 } },
{ "@checked_hover_image": { "layer": 2 } },
{ "@hover_friend_button": { } }
]
},
"friend_button@common.checkbox": {
"$pressed_button_name": "button.menu_friend_select",
"size": [ "100%", "100%" ],
"controls": [
{
"checked@checked_friend_button_layout": { }
},
{
"unchecked@unchecked_friend_button_layout": { }
},
{
"checked_hover@checked_hover_friend_button_layout": { }
},
{
"unchecked_hover@unchecked_hover_friend_button_layout": { }
},
{
"checked_locked@checked_friend_button_layout": { } //unused on this screen
},
{
"unchecked_locked@unchecked_friend_button_layout": { } //unused on this screen
}
],
"$toggle_grid_collection_name": "$collection_name",
"$toggle_name": "$toggle_invite_name",
"$toggle_binding_type": "collection",
"$toggle_state_binding_name": "toggle_invite_state"
},
"friend_grid_item_template": {
"type": "panel",
"size": [ "100% - 7px", 30 ],
"controls": [
{
"@friend_button": { }
}
]
},
"onfline_friend_grid_item@friend_grid_item_template": {
"type": "panel",
"variables": [
{
"$collection_name": "online_friends"
}
]
},
"offline_friend_grid_item@friend_grid_item_template": {
"type": "panel",
"variables": [
{
"$collection_name": "offline_friends"
}
]
},
"online_friend_list_grid": {
"type": "grid",
"grid_item_template": "onfline_friend_grid_item",
"grid_dimension_binding": "#online_friend_grid_dimension",
"collection_name": "online_friends",
"$toggle_invite_name": "toggle_invite_online",
"anchor_to": "top_left",
"anchor_from": "top_left",
"layer": 2,
"size": [ "100%", "default" ],
"offset": [ 3, 0 ],
"bindings": [
{
"binding_name": "#online_friend_grid_dimension",
"binding_type": "global"
}
]
},
"offline_friend_list_grid": {
"type": "grid",
"grid_item_template": "offline_friend_grid_item",
"grid_dimension_binding": "#offline_friend_grid_dimension",
"collection_name": "offline_friends",
"$toggle_invite_name": "toggle_invite_offline",
"anchor_to": "top_left",
"anchor_from": "top_left",
"layer": 2,
"size": [ "100%", "default" ],
"offset": [ 3, 0 ],
"bindings": [
{
"binding_name": "#offline_friend_grid_dimension",
"binding_type": "global"
}
]
},
"frame_label@label": {
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"alignment": "top_left",
"size": [ "100%", 7 ],
"offset": [ 1, 2 ],
"layer": 3
},
"friend_panel": {
"type": "panel",
"size": [ "100%", "100%" ]
},
"scrolling_content_stack": {
"type": "stack_panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ "100%", "default" ],
"offset": [ 3, 0 ],
"controls": [
{
"message@friend_panel": {
"size": [ "100%", 10 ],
"ignored": "$hide_err_message",
"controls": [
{
"@frame_label": {
"text": "$err_message_text",
"color": [ 1, 0, 0 ]
}
}
]
}
},
{
"online@friend_panel": {
"size": [ "100%", 10 ],
"controls": [
{
"@frame_label": {
"text": "invite.OnlineFriends"
}
}
]
}
},
{
"@online_friend_list_grid": { }
},
{
"offline@friend_panel": {
"size": [ "100%", 10 ],
"controls": [
{
"@frame_label": {
"text": "invite.OfflineFriends"
}
}
]
}
},
{
"@offline_friend_list_grid": { }
}
//{
// "suggested@friend_panel": {
// "size": [ "100%", 10 ],
// "controls": [
// {
// "@frame_label": {
// "text": "invite.SuggestedFriends"
// }
// }
// ]
// }
//}
]
},
//The invite panel with all the buttons, grid and close box
"invite_panel": {
"type": "input_panel",
"size": "$large_screen_size",
"anchor_from": "center",
"anchor_to": "center",
"controls": [
{ "@common.common_panel": { "$dialog_background": "dialog_background_hollow_2" } },
{
"@common.scrolling_panel": {
"anchor_to": "top_middle",
"anchor_from": "top_middle",
"$scrolling_pane_size": [ "100%-12px", "100%-65px" ],
"$scrolling_pane_offset": [ 6, 23 ],
"$scroll_box_size": [ "5px", "100% - 4px" ],
"$scroll_box_offset": [ "-4px", "2px" ],
"$scroll_track_size": [ "3px", "100% - 4px" ],
"$scroll_track_offset": [ "-5px", "2px" ],
"$scrolling_content": "invite.scrolling_content_stack",
"$show_background": false
}
},
{
"title_label": {
"type": "label",
"size": [ "100%", 25 ],
"alignment": "center",
"text": "invite.title",
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"layer": 2,
"color": [ 0, 0, 0 ]
}
},
{
"add_friend_button@borderless_button": {
"$pressed_button_name": "button.add_friend",
"$button_text": "networkWorld.add_friend",
"size": [ "33%-8px", 30 ],
"anchor_from": "bottom_left",
"anchor_to": "bottom_left",
"layer": 2,
"offset": [ 7, -6 ]
}
},
{
"clear_button@borderless_button": {
"$pressed_button_name": "button.clear_selection",
"$button_text": "invite.clear",
"size": [ "33%-8px", 30 ],
"anchor_from": "bottom_middle",
"anchor_to": "bottom_middle",
"layer": 2,
"offset": [ 0, -6 ],
"toggle_manager_behavior": "clear",
"toggle_manage_groups": [ "toggle_invite_online", "toggle_invite_offline" ]
}
},
{
"send_button@borderless_button": {
"$pressed_button_name": "button.send_invites",
"$label_bind_name": "#send_button",
"size": [ "33%-8px", 30 ],
"anchor_from": "bottom_right",
"anchor_to": "bottom_right",
"layer": 2,
"offset": [ -7, -6 ],
"toggle_manager_behavior": "gather",
"toggle_manage_groups": [ "toggle_invite_online", "toggle_invite_offline" ]
}
}
]
},
"gamepad_helpers": {
"type": "panel",
"layer": 2,
"controls": [
{
"@common.gamepad_helper_a": {
"size": [ 30, 10 ],
"offset": [ -70, -2 ],
"anchor_from": "bottom_right",
"anchor_to": "bottom_right"
}
}
]
},
// -----------------------------------------------
//
// screen
//
// -----------------------------------------------
"invite_screen@common.base_screen": {
"type": "screen",
"button_mappings": [
{
"from_button_id": "button.menu_cancel",
"to_button_id": "button.menu_exit",
"mapping_type": "global"
},
{
"from_button_id": "button.menu_up",
"to_button_id": "button.menu_up",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_down",
"to_button_id": "button.menu_down",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_left",
"to_button_id": "button.menu_left",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_right",
"to_button_id": "button.menu_right",
"mapping_type": "global",
"scope": "view"
}
],
"$screen_content": "invite.invite_screen_content"
},
"invite_screen_content": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"controls": [
{ "@gamepad_helpers": { } },
{ "@invite_panel": { "layer": 1 } }
]
}
}
+289
View File
@@ -0,0 +1,289 @@
/********************************************************
+* (c) Mojang. All rights reserved *
+* (c) Microsoft. All rights reserved. *
+*********************************************************/
{
"namespace": "language_choice",
"header_panel": {
"type": "panel",
"size": [ "100%", "27px" ],
"anchor_from": "top_left",
"anchor_to": "top_left",
"controls": [
{
"header_background": {
"type": "image",
"nineslice_size": [ 3, 3, 3, 6 ],
"texture": "gui/newgui/TopBar.png",
"uv": [ 0, 0 ],
"uv_size": [ 5, 8 ]
}
},
{
"title_label": {
"type": "label",
"size": [ "100%", 30 ],
"alignment": "center",
"text": "options.language",
"anchor_from": "center",
"anchor_to": "center",
"shadow": true
}
},
{ "@back_button": { } }
]
},
"normal_thin_button": {
"type": "image",
"nineslice_size": 4.0,
"texture": "gui/newgui/play_screen/NormalButtonThinNewBevel.png",
"uv": [ 0, 0 ],
"uv_size": [ 8, 8 ]
},
"back_button@common-classic.button": {
"anchor_from": "bottom_left",
"anchor_to": "bottom_left",
"size": [ 66, 18 ],
"offset": [ 4, -6 ],
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "button.menu_exit",
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_ok",
"to_button_id": "button.menu_exit",
"mapping_type": "focused"
}
],
"controls": [
{
"default@common-classic.button_state_default": {
"controls": [
{
"@common.button_text": {
"text": "gui.back"
}
}
]
}
},
{
"hover@common-classic.button_state_hover": {
"controls": [
{
"@common.button_text": {
"text": "gui.back",
"color": [ 1.0, 1.0, 0.2 ]
}
}
]
}
},
{
"pressed@common-classic.button_state_pressed": {
"controls": [
{
"@common.button_text": {
"text": "gui.back",
"color": [ 1.0, 1.0, 0.2 ],
"alpha": 0.65
}
}
]
}
}
]
},
"language_button@common.button": {
"$pressed_button_name": "button.menu_language_choice",
"anchor_from": "center",
"anchor_to": "center",
"size": [ "100%", "100%" ],
"bindings": [
{
"binding_type": "collection_details",
"binding_condition": "visible",
"binding_collection_name": "languages"
},
{
"binding_name": "#default_focus_precedence",
"binding_type": "collection",
"binding_condition": "visible",
"binding_collection_name": "languages"
}
],
"controls": [
{ "@language_choice.choice_indicator_rectangle": { } },
{ "default@language_choice.language_label": { } },
{ "hover@language_choice.language_label_yellow": { } },
{ "pressed@language_choice.language_label_yellow": { } }
]
},
"choice_indicator_rectangle": {
"type": "image",
"size": [ "60%", "80%" ],
"nineslice_size": 1.0,
"texture": "gui/newgui/focusBorder.png",
"uv": [ 0, 0 ],
"uv_size": [ 5, 5 ],
"bindings": [
{
"binding_name": "#choice_indicator_rectangle_visibility",
"binding_name_override": "#visible",
"binding_type": "collection",
"binding_collection_name": "languages"
}
]
},
"indent": {
"type": "image",
"nineslice_size": 3.0,
"texture": "gui/newgui/play_screen/Indent2.png",
"uv": [ 0, 0 ],
"uv_size": [ 5, 5 ]
},
"background_overay": {
"type": "image",
"texture": "gui/newgui/Black.png",
"uv": [ 0, 0 ],
"uv_size": [ 1, 1 ],
"alpha": 0.5
},
"language_label": {
"type": "label",
"size": [ "100%", "100%" ],
"offset": [ 0, 2 ],
"font_size": "large",
"alignment": "center",
"text": "#language_description",
"anchor_from": "center",
"anchor_to": "center",
"shadow": true,
"bindings": [
{
"binding_name": "#language_description",
"binding_type": "collection",
"binding_condition": "visible",
"binding_collection_name": "languages"
}
]
},
"language_label_yellow@language_label": {
"color": [ 1.0, 1.0, 0.2 ]
},
"language_grid_item": {
"type": "panel",
"size": [ "100%", 30 ],
"controls": [
{ "@language_button": { } }
]
},
"language_list_grid": {
"type": "grid",
"grid_item_template": "language_grid_item",
"grid_dimension_binding": "#language_grid_dimension",
"collection_name": "languages",
"anchor_to": "top_left",
"anchor_from": "top_left",
"size": [ "100%", "default" ],
"bindings": [
{
"binding_name": "#language_grid_dimension",
"binding_condition": "visible"
}
]
},
"gamepad_helpers": {
"type": "panel",
"layer": 2,
"controls": [
{
"@common.gamepad_helper_a": {
"size": [ 30, 10 ],
"offset": [ -70, -2 ],
"anchor_from": "bottom_right",
"anchor_to": "bottom_right"
}
}
]
},
// -----------------------------------------------
//
// screen
//
// -----------------------------------------------
"language_choice_screen@common.base_screen": {
"controls": [
{
"root_panel": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"controls": [
{ "@header_panel": { "layer": 1 } },
{ "@background_overay": { } },
{ "@gamepad_helpers": { } },
{
"@common.scrolling_panel": {
"$scrolling_pane_offset": [ 0, 26 ],
"$scrolling_pane_size": [ "100%", "100%-26px" ],
"$show_background": false,
"$scrolling_content": "language_choice.language_list_grid",
"$scroll_box_mouse_image_control": "common-classic.button_state_default",
"$scroll_track_size|default": [ "8px", "100%" ]
}
}
]
}
}
],
"button_mappings": [
{
"from_button_id": "button.menu_cancel",
"to_button_id": "button.menu_exit",
"mapping_type": "global"
},
{
"from_button_id": "button.menu_up",
"to_button_id": "button.menu_up",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_down",
"to_button_id": "button.menu_down",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_left",
"to_button_id": "button.menu_left",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_right",
"to_button_id": "button.menu_right",
"mapping_type": "global",
"scope": "view"
}
]
}
}
+305
View File
@@ -0,0 +1,305 @@
{
"namespace": "modal",
"modal_background_image": {
"type": "image",
"texture": "gui/newgui/play_screen/NormalButtonStroke.png",
"layer": 1,
"nineslice_size": 4.0,
"uv": [ 0, 0 ],
"uv_size": [ 12, 12 ]
},
"black_tint_image": {
"type": "image",
"texture": "gui/newgui/Black.png",
"layer": 1,
"uv": [ 0, 0 ],
"uv_size": [ 2, 2 ]
},
"modal_title_text": {
"type": "label",
"offset": [ 0, 9 ],
"size": [ "100%", 15 ],
"anchor_to": "top_middle",
"anchor_from": "top_middle",
"wrap": true,
"layer": 1,
"text": "#modal_title_text",
"color": [ 0.275, 0.275, 0.275 ],
"alignment": "top_middle",
"shadow": false,
"bindings": [
{
"binding_name": "$modal_title_text",
"binding_name_override": "#modal_title_text"
}
]
},
"modal_label_text": {
"type": "label",
"offset": [ 2, 3 ],
"size": [ "100%-2px", "100%-6px" ],
"anchor_to": "top_middle",
"anchor_from": "top_middle",
"wrap": true,
"layer": 2,
"text": "#modal_label_text",
"alignment": "top_left",
"color": [ 1.0, 1.0, 1.0, 1.0 ],
"bindings": [
{
"binding_name": "$modal_label_text",
"binding_name_override": "#modal_label_text"
}
]
},
"modal_label_panel": {
"type": "panel",
"layer": 1,
"offset": [ 0, 23 ],
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"controls": [
{ "@modal.modal_label_text": { } }
]
},
"modal_button@common.button": {
"controls": [
{
"default@common.new_button_state_default": {
"controls": [
{
"@common.new_button_label": {
"text": "#modal_button_text",
"bindings": [
{
"binding_name": "$modal_button_text",
"binding_name_override": "#modal_button_text"
}
]
}
}
]
}
},
{
"hover@common.new_button_state_hover": {
"controls": [
{
"@common.new_button_label": {
"text": "#modal_button_text",
"bindings": [
{
"binding_name": "$modal_button_text",
"binding_name_override": "#modal_button_text"
}
]
}
}
]
}
},
{
"pressed@common.new_button_state_hover": {
"controls": [
{
"@common.new_button_label": {
"text": "#modal_button_text",
"offset": [ 0, 1 ],
"bindings": [
{
"binding_name": "$modal_button_text",
"binding_name_override": "#modal_button_text"
}
]
}
}
]
}
}
]
},
"modal_first_button@modal.modal_button": {
"anchor_to": "top_left",
"anchor_from": "top_left",
"size": [ "50%-2px", "100%" ],
"$pressed_button_name": "$first_button_name",
"$modal_button_text": "$first_modal_button_text"
},
"modal_second_button@modal.modal_button": {
"anchor_to": "top_right",
"anchor_from": "top_right",
"size": [ "50%-2px", "100%" ],
"$pressed_button_name": "$second_button_name",
"$modal_button_text": "$second_modal_button_text"
},
"two_buttons_panel": {
"type": "panel",
"anchor_to": "bottom_middle",
"anchor_from": "bottom_middle",
"size": [ "100%-14px", 30 ],
"offset": [ 0, -7 ],
"visible": "#two_buttons_visible",
"controls": [
{ "left@modal.modal_first_button": { } },
{ "right@modal.modal_second_button": { } }
],
"bindings": [
{
"binding_name": "#two_buttons_visible",
"binding_name_override": "#visible"
}
]
},
"single_button_panel": {
"type": "panel",
"anchor_to": "bottom_middle",
"anchor_from": "bottom_middle",
"size": [ "100%-14px", 30 ],
"offset": [ 0, -7 ],
"visible": "#single_button_visible",
"controls": [
{ "left@modal.modal_first_button": { "size": [ "100%", "100%" ] } }
],
"bindings": [
{
"binding_name": "#single_button_visible",
"binding_name_override": "#visible"
}
]
},
"modal_dialog": {
"type": "panel",
"anchor_to": "center",
"anchor_from": "center",
"layer": 10,
"size": "$modal_screen_size",
"variables": [
{
"requires": "$is_holographic",
"$fill_alpha": 0.9
}
],
"controls": [
{
"background_with_buttons@common.common_panel": {
"$show_close_button": false,
"$dialog_background": "dialog_background_hollow_2",
"visible": "#buttons_visible",
"bindings": [
{
"binding_name": "#buttons_visible",
"binding_name_override": "#visible"
}
]
}
},
{
"background_without_buttons@common.common_panel": {
"$show_close_button": false,
"$dialog_background": "dialog_background_hollow_3",
"visible": "#no_buttons_visible",
"bindings": [
{
"binding_name": "#no_buttons_visible",
"binding_name_override": "#visible"
}
]
}
},
{ "title@modal.modal_title_text": { } },
{
"text_with_buttons@modal.modal_label_panel": {
"size": [ "100% - 16px", "100% - 65px" ],
"visible": "#buttons_visible",
"bindings": [
{
"binding_name": "#buttons_visible",
"binding_name_override": "#visible"
}
]
}
},
{
"text_without_buttons@modal.modal_label_panel": {
"size": [ "100% - 16px", "100% - 31px" ],
"visible": "#no_buttons_visible",
"bindings": [
{
"binding_name": "#no_buttons_visible",
"binding_name_override": "#visible"
}
]
}
},
{ "buttons@modal.two_buttons_panel": { } },
{ "buttons@modal.single_button_panel": { } }
]
},
"modal_input_panel@common.input_panel": {
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "button.menu_select",
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_secondary_select",
"to_button_id": "button.menu_secondary_select",
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_ok",
"to_button_id": "button.menu_ok",
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_cancel",
"to_button_id": "modal.escape",
"mapping_type": "global"
}
],
"controls": [
{
"@modal.black_tint_image": {
"ignored" : "$is_holographic",
"alpha": 0.5
}
}
]
},
"modal_screen@common.base_screen": {
"send_telemetry": false,
"is_modal": true,
"render_game_behind": true,
"force_render_below": true,
"$modal_title_text": "#modal_title",
"$modal_label_text": "#modal_label",
"$first_button_name": "modal.first_button",
"$first_modal_button_text": "#modal_first_button",
"$second_button_name": "modal.second_button",
"$second_modal_button_text": "#modal_second_button",
"$screen_content": "modal.modal_screen_content"
},
"modal_screen_content": {
"type": "panel",
"controls": [
{ "modal_input@modal.modal_input_panel": { } },
{ "modal_bg@modal.modal_dialog": { } }
]
}
}
+258
View File
@@ -0,0 +1,258 @@
{
"namespace": "pauseTrial",
"pause_screen@common.base_screen": {
"button_mappings": [
{
"from_button_id": "button.menu_cancel",
"to_button_id": "button.menu_exit",
"mapping_type": "global"
},
{
"from_button_id": "button.menu_up",
"to_button_id": "button.menu_up",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_down",
"to_button_id": "button.menu_down",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_left",
"to_button_id": "button.menu_left",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_right",
"to_button_id": "button.menu_right",
"mapping_type": "global",
"scope": "view"
}
],
"controls": [
{
"trialTime": {
"type": "custom",
"renderer": "trial_time_renderer",
"size": [ "default", 10 ],
"offset": [ -5, 5 ],
"layer": 2,
"anchor_from": "top_right",
"anchor_to": "top_right"
}
},
{
"button_panel": {
"type": "panel",
"size": [ 150, 64 ],
"offset": [ 0, -10 ],
"anchor_from": "center",
"anchor_to": "center",
"controls": [
{
"game_menu": {
"type": "label",
"size": [ 50, 10 ],
"offset": [ 0, -10 ],
"alignment": "center",
"layer": 2,
"text": "menu.game",
"anchor_from": "top_middle",
"anchor_to": "top_middle"
}
},
{
"returnToGame@common.button": {
"$pressed_button_name": "button.menu_continue",
"anchor_to": "top_left",
"anchor_from": "top_left",
"size": [ 160, 20 ],
"controls": [
{
"default@common.button_state_default": {
"controls": [
{
"@common.button_text": {
"text": "menu.returnToGame"
}
}
]
}
},
{
"hover@common.button_state_hover": {
"controls": [
{
"@common.button_text": {
"text": "menu.returnToGame",
"color": [ 1.0, 1.0, 0.2 ]
}
}
]
}
},
{
"pressed@common.button_state_pressed": {
"controls": [
{
"@common.button_text": {
"text": "menu.returnToGame",
"color": [ 1.0, 1.0, 0.2 ],
"alpha": 0.65
}
}
]
}
}
]
}
},
{
"options@common.button": {
"$pressed_button_name": "button.menu_options",
"anchor_to": "left_middle",
"anchor_from": "left_middle",
"size": [ 160, 20 ],
"controls": [
{
"default@common.button_state_default": {
"controls": [
{
"@common.button_text": {
"text": "menu.options"
}
}
]
}
},
{
"hover@common.button_state_hover": {
"controls": [
{
"@common.button_text": {
"text": "menu.options",
"color": [ 1.0, 1.0, 0.2 ]
}
}
]
}
},
{
"pressed@common.button_state_pressed": {
"controls": [
{
"@common.button_text": {
"text": "menu.options",
"color": [ 1.0, 1.0, 0.2 ],
"alpha": 0.65
}
}
]
}
}
]
}
},
{
"buy@common.button": {
"$pressed_button_name": "button.menu_buy_game",
"anchor_to": "bottom_left",
"anchor_from": "bottom_left",
"size": [ 160, 20 ],
"controls": [
{
"default@common.button_state_default": {
"controls": [
{
"@common.button_text": {
"text": "trial.pauseScreen.buyGame"
}
}
]
}
},
{
"hover@common.button_state_hover": {
"controls": [
{
"@common.button_text": {
"text": "trial.pauseScreen.buyGame",
"color": [ 1.0, 1.0, 0.2 ]
}
}
]
}
},
{
"pressed@common.button_state_pressed": {
"controls": [
{
"@common.button_text": {
"text": "trial.pauseScreen.buyGame",
"color": [ 1.0, 1.0, 0.2 ],
"alpha": 0.65
}
}
]
}
}
]
}
},
{
"quit@common.button": {
"$pressed_button_name": "button.menu_quit",
"offset": [ 0, 22 ],
"size": [ 160, 20 ],
"anchor_to": "bottom_left",
"anchor_from": "bottom_left",
"controls": [
{
"default@common.button_state_default": {
"controls": [
{
"@common.button_text": {
"text": "pauseScreen.quit"
}
}
]
}
},
{
"hover@common.button_state_hover": {
"controls": [
{
"@common.button_text": {
"text": "pauseScreen.quit",
"color": [ 1.0, 1.0, 0.2 ]
}
}
]
}
},
{
"pressed@common.button_state_pressed": {
"controls": [
{
"@common.button_text": {
"text": "pauseScreen.quit",
"color": [ 1.0, 1.0, 0.2 ],
"alpha": 0.65
}
}
]
}
}
]
}
}
]
}
}
]
}
}
File diff suppressed because it is too large. Load diff
+289
View File
@@ -0,0 +1,289 @@
{
"namespace": "pocket_redstone",
"gamepad_helpers": {
"type": "panel",
"anchor_from": "bottom_middle",
"anchor_to": "bottom_middle",
"size": [ "98%", 16 ],
"$icon_text_color": [ 0.0, 0.0, 0.0 ],
"controls": [
{
"@common.grey_gamepad_helper_a": {
"size": [ 36, "100%" ],
"anchor_from": "left_middle",
"anchor_to": "left_middle"
}
},
{
"@common.grey_gamepad_helper_b": {
"offset": [ -36, 0 ],
"size": [ 72, "100%" ],
"anchor_from": "center",
"anchor_to": "center"
}
},
{
"@common.grey_gamepad_helper_y": {
"size": [ 100, "100%" ],
"offset": [ -40, 0 ],
"anchor_from": "right_middle",
"anchor_to": "right_middle"
}
}
]
},
"generic_label": {
"type": "label",
"layer": 2,
"size": [ "100%", 10 ],
"alignment": "center",
"anchor_from": "center",
"anchor_to": "center",
"shadow": true
},
"flying_item_renderer": {
"type": "custom",
"renderer": "flying_item_renderer",
"layer": 20,
"property_bag": {
"#flying_item_renderer": true
}
},
//----------------------
// Header Panel
//----------------------
"header_panel": {
"type": "panel",
"layer": 1,
"size": [ "50%", "27px" ],
"anchor_from": "top_left",
"anchor_to": "top_left",
"controls": [
{
"header_background": {
"type": "image",
"nineslice_size": [ 3, 3, 3, 6 ],
"texture": "gui/newgui/TopBar.png",
"uv": [ 0, 0 ],
"uv_size": [ 5, 8 ]
}
},
{
"title_label@generic_label": { "text": "$header_label" }
}
]
},
"close_button_default": {
"type": "image",
"texture": "gui/spritesheet.png",
"offset": [ 0, 1 ],
"uv": [ 60, 0 ],
"uv_size": [ 18, 18 ]
},
"close_button_pressed@close_button_default": {
"uv": [ 78, 0 ]
},
"close_button@common.button": {
"$pressed_button_name": "button.menu_exit",
"size": [ 18, 18 ],
"anchor_from": "top_right",
"anchor_to": "top_right",
"layer": 3,
"controls": [
{ "default@close_button_default": { } },
{ "hover@close_button_default": { } },
{ "pressed@close_button_pressed": { } }
]
},
"header_area": {
"type": "panel",
"controls": [
{ "x@close_button": { } },
{
"inventory_header@pocket_redstone.header_panel": {
"$header_label": "chestScreen.header.player"
}
},
{
"container_header@pocket_redstone.header_panel": {
"layer": 2,
"anchor_from": "top_middle",
"$header_label": "$container_label"
}
}
]
},
//-----------------
// Inventory Panels
//-----------------
"dark_bg": {
"type": "image",
"texture": "gui/newgui/play_screen/DarkButtonThinStroke1.png",
"uv": [ 2, 2 ],
"uv_size": [ 3, 3 ],
"nineslice_size": 1.0,
"layer": 3
},
"panel_outline": {
"type": "image",
"nineslice_size": 1.0,
"texture": "gui/spritesheet.png",
"uv": [ 28, 42 ],
"uv_size": [ 4, 4 ]
},
"background_panel": {
"type": "image",
"size": [ "100%", "100%" ],
"nineslice_size": 4.0,
"texture": "gui/spritesheet.png",
"uv": [ 0, 0 ],
"uv_size": [ 16, 16 ],
"layer": 2
},
"inventory_grid": {
"type": "grid",
"grid_rescaling_type": "horizontal",
"anchor_to": "top_left",
"anchor_from": "top_left",
"size": [ "100%", "default" ],
"maximum_grid_items": "$container_size",
"collection_name": "$pane_collection",
"grid_item_template": "common.pocket_ui_container_item",
"$item_collection_name": "$pane_collection"
},
"inventory_panel": {
"type": "panel",
"size": [ "80%", "95%" ],
"anchor_to": "center",
"anchor_from": "center",
"controls": [
{
"@common.scrolling_panel": {
"layer": 1,
"$scrolling_pane_size": [ "100%", "100%-2px" ],
"$scrolling_content": "pocket_redstone.inventory_grid",
"$scroll_box_mouse_image_control": "common-classic.button_state_default",
"$scroll_track_size|default": [ "8px", "100%" ]
}
}
]
},
"half_screen": {
"type": "panel",
"size": [ "50%", "100%-27px" ],
"offset": [ 0, 27 ],
"anchor_from": "top_left",
"anchor_to": "top_left",
"controls": [
{ "@inventory_panel": { } }
]
},
//--------------------
// Screen Definitions
//--------------------
"panel": {
"type": "panel",
"controls": [
{ "@pocket_redstone.gamepad_helpers": { "layer": 3 } },
{ "header@header_area": { "layer": 2 } },
{ "bg@background_panel": { "layer": 0 } },
{
"inventory@half_screen": {
"$container_size": 36,
"$pane_collection": "inventory_items"
}
},
{
"container@half_screen": {
"anchor_from": "top_middle",
"$pane_collection": "container_items"
}
},
{
"item_name_label@generic_label": {
"offset": [ 0, "-30%+10px" ],
"layer": 30,
"anchor_from": "bottom_middle",
"text": "#selected_item_name",
"controls": [
{
"effect_name_label@generic_label": {
"text": "#selected_effect_name",
"alignment": "top_middle",
"anchor_from": "bottom_middle",
"anchor_to": "top_middle",
"bindings": [
{
"binding_name": "#selected_effect_name",
"binding_condition": "visible"
},
{
"binding_name": "#selected_item_visibility",
"binding_name_override": "#visible"
},
{
"binding_name": "#selected_item_alpha",
"binding_name_override": "#alpha",
"binding_condition": "visible"
}
]
}
}
],
"bindings": [
{
"binding_name": "#selected_item_name",
"binding_condition": "visible"
},
{
"binding_name": "#selected_item_visibility",
"binding_name_override": "#visible"
},
{
"binding_name": "#selected_item_alpha",
"binding_name_override": "#alpha",
"binding_condition": "visible"
}
]
}
},
{ "hold_icon@common.inventory_take_progress_icon_button": { } },
{ "flying_item_renderer@flying_item_renderer": { } }
]
},
"hopper_panel@panel": {
"$container_label": "container.hopper",
"$container_size": 5
},
"dispenser_panel@panel": {
"$container_label": "container.dispenser",
"$container_size": 9
},
"dropper_panel@panel": {
"$container_label": "container.dropper",
"$container_size": 9
}
}
+112
View File
@@ -0,0 +1,112 @@
{
"namespace": "popup_dialog",
"button_image": {
"$button_text|default": "",
"$button_text_offset|default": [ 0, 0 ],
"type": "image",
"nineslice_size": 2,
"uv": [ 0, 0 ],
"uv_size": [ 6, 6 ],
"controls": [
{
"button_label": {
"type": "label",
"layer": 6,
"size": [ "100%", "100%" ],
"anchor_from": "center",
"anchor_to": "center",
"color": [ 0.3, 0.3, 0.3 ],
"offset": "$button_text_offset",
"text": "$button_text"
}
}
]
},
//--------------------------------------------------------------------------------
// Popup Dialog
//--------------------------------------------------------------------------------
"popup_dialog_bg": {
"type": "image",
"texture": "gui/newgui/NormalButtonThin.png",
"uv": [ 0, 0 ],
"uv_size": [ 5, 5 ],
"nineslice_size": 1
},
"popup_dialog_message": {
"type": "label",
"layer": 31,
"wrap": true,
"clip": true,
"alignment": "top_middle",
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"size": [ "90%", "68%" ],
"offset": [ 0, 4 ],
"color": [ 0.3, 0.3, 0.3 ],
"text": "$message_text"
},
"popup_dialog_button@common.button": {
"layer": 31,
"size": [ "40%", "20%" ],
"controls": [
{
"default@popup_dialog.button_image": {
"texture": "gui/newgui/ButtonWithBorder.png"
}
},
{
"hover@popup_dialog.button_image": {
"texture": "gui/newgui/ButtonWithBorderHover.png"
}
},
{
"pressed@popup_dialog.button_image": {
"texture": "gui/newgui/ButtonWithBorderPressed.png"
}
}
]
},
"popup_dialog_left_button@popup_dialog_button": {
"$pressed_button_name": "$left_button_press",
"$button_text": "$left_button_text",
"anchor_from": "bottom_left",
"anchor_to": "bottom_left",
"offset": [ "6.5%", "-8%" ]
},
"popup_dialog_middle_button@popup_dialog_button": {
"$pressed_button_name": "$middle_button_press",
"$button_text": "$middle_button_text",
"anchor_from": "bottom_middle",
"anchor_to": "bottom_middle",
"offset": [ 0, "-8%" ]
},
"popup_dialog_right_button@popup_dialog_button": {
"$pressed_button_name": "$right_button_press",
"$button_text": "$right_button_text",
"anchor_from": "bottom_right",
"anchor_to": "bottom_right",
"offset": [ "-6.5%", "-8%" ]
},
"popup_dialog": {
"type": "input_panel",
"modal": true,
"layer": 30,
"size": [ 204, 140 ],
"button_mappings": [
{
"from_button_id": "button.menu_cancel",
"to_button_id": "modal.escape",
"mapping_type": "global"
}
]
}
}
+817
View File
@@ -0,0 +1,817 @@
/********************************************************
+* (c) Mojang. All rights reserved *
+* (c) Microsoft. All rights reserved. *
+*********************************************************/
{
"namespace": "portfolio",
//---------------------------------------------------------------------------
// Common
//---------------------------------------------------------------------------
"dark_thin_button": {
"type": "image",
"nineslice_size": 4.0,
"texture": "gui/newgui/play_screen/DarkButtonThinStroke1.png",
"uv": [ 0, 0 ],
"uv_size": [ 7, 7 ],
"layer": 3
},
"screenshot": {
"type": "image",
"texture": "#screenshot_path",
"layer": 4,
"anchor_from": "center",
"anchor_to": "center",
"bindings": [
{
"binding_name": "#screenshot_path",
"binding_type": "collection",
"binding_collection_name": "photos"
}
]
},
"screenshot_frame": {
"type": "image",
"texture": "gui/newgui/portfolio/screenshot_frame.png",
"layer": 5,
"anchor_from": "center",
"anchor_to": "center",
"nineslice_size": 0
},
"trash_default": {
"type": "image",
"texture": "gui/newgui/portfolio/trash_default.png",
"uv": [ 0, 0 ],
"uv_size": [ 11, 12 ]
},
"trash_hover": {
"type": "image",
"texture": "gui/newgui/portfolio/trash_hover.png",
"uv": [ 0, 0 ],
"uv_size": [ 11, 12 ]
},
"trash_pressed": {
"type": "image",
"texture": "gui/newgui/portfolio/trash_pressed.png",
"uv": [ 0, 0 ],
"uv_size": [ 11, 12 ]
},
"photo_trash_button": {
"type": "button",
"$focus_id|default": "",
"$focus_override_down|default": "",
"$focus_override_up|default": "",
"$focus_override_left|default": "",
"$focus_override_right|default": "",
"focus_identifier": "$focus_id",
"focus_change_down": "$focus_override_down",
"focus_change_up": "$focus_override_up",
"focus_change_left": "$focus_override_left",
"focus_change_right": "$focus_override_right",
"focus_enabled": true,
"size": [ 11, 12 ],
"layer": 10,
"default_control": "default",
"hover_control": "hover",
"pressed_control": "pressed",
"anchor_from": "bottom_middle",
"anchor_to": "bottom_middle",
"controls": [
{
"default@trash_default": {
}
},
{
"hover@trash_hover": {
}
},
{
"pressed@trash_pressed": {
}
}
]
},
"photo_trash_button_left@photo_trash_button": {
"offset": [ 58, -11 ],
"anchor_from": "bottom_left",
"anchor_to": "bottom_left",
"bindings": [
{
"binding_name": "#trash_visibility_left",
"binding_name_override": "#visible"
}
],
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "button.portfolio_delete_photo_left",
"mapping_type": "pressed"
}
]
},
"photo_trash_button_right@photo_trash_button": {
"offset": [ -58, -11 ],
"anchor_from": "bottom_right",
"anchor_to": "bottom_right",
"bindings": [
{
"binding_name": "#trash_visibility_right",
"binding_name_override": "#visible"
}
],
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "button.portfolio_delete_photo_right",
"mapping_type": "pressed"
}
]
},
"photo_corner_bl": {
"type": "image",
"texture": "gui/newgui/portfolio/photo_corner_bl.png",
"uv": [ 0, 0 ],
"uv_size": [ 19, 19 ],
"size": [ 19, 19 ],
"offset": [ -1, 1 ],
"layer": 10,
"anchor_to": "bottom_left",
"anchor_from": "bottom_left"
},
"photo_corner_br": {
"type": "image",
"texture": "gui/newgui/portfolio/photo_corner_br.png",
"uv": [ 0, 0 ],
"uv_size": [ 19, 19 ],
"size": [ 19, 19 ],
"offset": [ 1, 1 ],
"layer": 10,
"anchor_to": "bottom_right",
"anchor_from": "bottom_right"
},
"photo_corner_tr": {
"type": "image",
"texture": "gui/newgui/portfolio/photo_corner_tr.png",
"uv": [ 0, 0 ],
"uv_size": [ 19, 19 ],
"size": [ 19, 19 ],
"offset": [ 1, -1 ],
"layer": 10,
"anchor_to": "top_right",
"anchor_from": "top_right"
},
"photo_corner_tl": {
"type": "image",
"texture": "gui/newgui/portfolio/photo_corner_tl.png",
"uv": [ 0, 0 ],
"uv_size": [ 19, 19 ],
"size": [ 19, 19 ],
"offset": [ -1, -1 ],
"layer": 10,
"anchor_to": "top_left",
"anchor_from": "top_left"
},
// **************************************************
"text_edit_control@common.text_edit_box": {
"anchor_from": "bottom_middle", // the parent
"anchor_to": "bottom_middle", // this control
"offset": [ 0, 0 ],
"max_length": 1000, // use the parent area
"constrain_to_rect": true,
"$shadow": false,
"$color": [ 0, 0, 0, 1 ],
"$font_size": "small",
"$wrap": false,
"$alignment": "top_middle",
"layer": 4,
"size": [ "85%", "14%" ],
"$use_place_holder": true,
"$place_holder_text": "[ caption ]",
"$place_holder_text_color": [ 0.5, 0.5, 0.5, 1 ],
"$text_edit_box_content_binding_type": "collection",
"$text_edit_box_grid_collection_name": "photos",
"$text_box_name": "#text_box_photos"
//,
//"bindings": [
// {
// "binding_name": "#photo_text",
// "binding_name_override": "#item_name",
// "binding_type": "collection",
// "binding_collection_name": "photos"
// }
//]
},
"photo_number": {
"type": "label",
"offset": [ 0, -24 ],
"layer": 10,
"size": [ 40, 30 ],
"text": "#item_name",
"color": [ 0.25, 0.25, 0.25, 1.0 ],
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"shadow": false,
"bindings": [
{
"binding_name": "#photo_page_item_name",
"binding_name_override": "#item_name",
"binding_type": "collection",
"binding_collection_name": "photos"
}
]
},
"photo_item": {
"type": "panel",
"layer": 4,
"anchor_from": "center",
"anchor_to": "center",
"size": [ 80, 80 ],
"bindings": [
{
"binding_name": "#photo_visibility",
"binding_name_override": "#visible",
"binding_type": "collection",
"binding_collection_name": "photos"
}
],
"controls": [
{ "@screenshot": { } },
{ "@screenshot_frame": { } },
{ "@text_edit_control": { } },
{ "@photo_number": { } },
{ "@photo_corner_bl": { } },
{ "@photo_corner_br": { } },
{ "@photo_corner_tl": { } },
{ "@photo_corner_tr": { } }
]
},
"photo_grid_item": {
"type": "panel",
"controls": [
{ "@photo_item": { } }
]
},
"photo_list_grid": {
"type": "grid",
"grid_item_template": "photo_grid_item",
"grid_dimensions": [ 2, 1 ],
"collection_name": "photos",
"anchor_to": "center",
"anchor_from": "center",
"size": [ "100%", "100%" ]
},
// **************************************************
// -----------------------------------------
// Photo Page PREV
// -----------------------------------------
"prev_button_default": {
"type": "image",
"texture": "gui/newgui/portfolio/arrow_l_default.png",
"uv": [ 0, 0 ],
"uv_size": [ 7, 9 ]
},
"prev_button_hover": {
"type": "image",
"texture": "gui/newgui/portfolio/arrow_l_hover.png",
"uv": [ 0, 0 ],
"uv_size": [ 7, 9 ]
},
"prev_button_pressed": {
"type": "image",
"texture": "gui/newgui/portfolio/arrow_l_pressed.png",
"uv": [ 0, 0 ],
"uv_size": [ 7, 9 ]
},
"photo_page_prev_button": {
"type": "button",
"$focus_id|default": "",
"$focus_override_down|default": "",
"$focus_override_up|default": "",
"$focus_override_left|default": "",
"$focus_override_right|default": "",
"focus_identifier": "$focus_id",
"focus_change_down": "$focus_override_down",
"focus_change_up": "$focus_override_up",
"focus_change_left": "$focus_override_left",
"focus_change_right": "$focus_override_right",
"focus_enabled": true,
"size": [ 7, 9 ],
"layer": 10,
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"offset": [ 9, 0 ],
"default_control": "default",
"hover_control": "hover",
"pressed_control": "pressed",
"default_focus_precedence": 1,
"bindings": [
{
"binding_name": "#page_prev_visibility",
"binding_name_override": "#visible"
}
],
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "button.portfolio_page_prev",
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_ok",
"to_button_id": "button.portfolio_page_prev",
"mapping_type": "focused"
}
],
"controls": [
{ "default@prev_button_default": { } },
{ "hover@prev_button_hover": { } },
{ "pressed@prev_button_pressed": { } }
]
},
"old_photo_page_prev_button@common-classic.button": {
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"size": [ 15, 20 ],
"offset": [ 3, 0 ],
"bindings": [
{
"binding_name": "#page_prev_visibility",
"binding_name_override": "#visible",
"binding_type": "collection",
"binding_collection_name": "photos"
}
],
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "button.portfolio_page_prev",
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_ok",
"to_button_id": "button.portfolio_page_prev",
"mapping_type": "focused"
}
],
"controls": [
{
"default@common-classic.button_state_default": {
"controls": [ { "@common.button_text": { "text": "<" } } ]
}
},
{
"hover@common-classic.button_state_hover": {
"controls": [
{
"@common.button_text": {
"text": "<",
"color": [ 1.0, 1.0, 0.2 ]
}
}
]
}
},
{
"pressed@common-classic.button_state_pressed": {
"controls": [
{
"@common.button_text": {
"text": "<",
"color": [ 1.0, 1.0, 0.2 ],
"alpha": 0.65
}
}
]
}
}
]
},
// -----------------------------------------
// Photo Page NEXT
// -----------------------------------------
"next_button_default": {
"type": "image",
"texture": "gui/newgui/portfolio/arrow_r_default.png",
"uv": [ 0, 0 ],
"uv_size": [ 7, 9 ]
},
"next_button_hover": {
"type": "image",
"texture": "gui/newgui/portfolio/arrow_r_hover.png",
"uv": [ 0, 0 ],
"uv_size": [ 7, 9 ]
},
"next_button_pressed": {
"type": "image",
"texture": "gui/newgui/portfolio/arrow_r_pressed.png",
"uv": [ 0, 0 ],
"uv_size": [ 7, 9 ]
},
"photo_page_next_button": {
"type": "button",
"$focus_id|default": "",
"$focus_override_down|default": "",
"$focus_override_up|default": "",
"$focus_override_left|default": "",
"$focus_override_right|default": "",
"focus_identifier": "$focus_id",
"focus_change_down": "$focus_override_down",
"focus_change_up": "$focus_override_up",
"focus_change_left": "$focus_override_left",
"focus_change_right": "$focus_override_right",
"focus_enabled": true,
"size": [ 7, 9 ],
"layer": 1,
"anchor_from": "right_middle",
"anchor_to": "right_middle",
"offset": [ -9, 0 ],
"default_control": "default",
"hover_control": "hover",
"pressed_control": "pressed",
"default_focus_precedence": 2,
"bindings": [
{
"binding_name": "#page_next_visibility",
"binding_name_override": "#visible"
}
],
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "button.portfolio_page_next",
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_ok",
"to_button_id": "button.portfolio_page_next",
"mapping_type": "focused"
}
],
"controls": [
{ "default@next_button_default": { } },
{ "hover@next_button_hover": { } },
{ "pressed@next_button_pressed": { } }
]
},
//---------------------------------------------------------------------------
// EXPORT SHOTS
//---------------------------------------------------------------------------
"export_button_default": {
"type": "image",
"texture": "gui/newgui/portfolio/grey_button_default.png",
"nineslice_size": 2.0,
"uv": [ 0, 0 ],
"uv_size": [ 7, 7 ]
},
"export_button_hover": {
"type": "image",
"texture": "gui/newgui/portfolio/grey_button_hover.png",
"nineslice_size": 2.0,
"uv": [ 0, 0 ],
"uv_size": [ 7, 7 ]
},
"export_button_pressed": {
"type": "image",
"texture": "gui/newgui/portfolio/grey_button_pressed.png",
"nineslice_size": 2.0,
"uv": [ 0, 0 ],
"uv_size": [ 7, 7 ]
},
"export_text@common.button_text": {
"text": "Export Portfolio",
"color": [ 0.25, 0.25, 0.25, 1.0 ],
"shadow": false,
"offset": [ 0, 1 ],
"anchor_from": "center",
"anchor_to": "center"
},
"export_button": {
"type": "button",
"$focus_id|default": "",
"$focus_override_down|default": "",
"$focus_override_up|default": "",
"$focus_override_left|default": "",
"$focus_override_right|default": "",
"focus_identifier": "$focus_id",
"focus_change_down": "$focus_override_down",
"focus_change_up": "$focus_override_up",
"focus_change_left": "$focus_override_left",
"focus_change_right": "$focus_override_right",
"focus_enabled": true,
"size": [ 100, 18 ],
"layer": 10,
"anchor_from": "bottom_middle",
"anchor_to": "bottom_middle",
"offset": [ 0, 20 ],
"default_control": "default",
"hover_control": "hover",
"pressed_control": "pressed",
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "button.portfolio_export",
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_ok",
"to_button_id": "button.portfolio_export",
"mapping_type": "focused"
}
],
"bindings": [
{
"binding_name": "#export_visibility",
"binding_name_override": "#visible"
}
],
"controls": [
{
"default@export_button_default": {
"controls": [ { "@export_text": { } } ]
}
},
{
"hover@export_button_hover": {
"controls": [ { "@export_text": { } } ]
}
},
{
"pressed@export_button_pressed": {
"controls": [ { "@export_text": { "offset": [ 1, 2 ] } } ]
}
}
]
},
//---------------------------------------------------------------------------
// Background
//---------------------------------------------------------------------------
"book_binding": {
"type": "image",
"texture": "gui/newgui/portfolio/book_binding.png",
"layer": 0,
"uv": [ 0, 0 ],
"uv_size": [ 5, 2 ],
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"offset": [ 0, 7 ],
"size": [ 5, 115 ],
"size": [ 5, 115 ],
"nineslice_size": [ 0, 0, 0, 1 ]
},
"book_spine": {
"type": "image",
"texture": "gui/newgui/portfolio/book_spine.png",
"layer": 2,
"uv": [ 0, 0 ],
"uv_size": [ 7, 1 ]
},
"book_background": {
"type": "image",
"texture": "gui/newgui/portfolio/book_frame.png",
"layer": 0,
"uv": [ 0, 0 ],
"nineslice_size": 21.0,
"anchor_from": "center",
"anchor_to": "center",
"controls": [
{ "@book_binding": { } },
{
"top_spine@book_spine": {
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"offset": [ 0, 1 ],
"size": [ 7, 6 ]
}
},
{
"bottom_spine@book_spine": {
"anchor_from": "bottom_middle",
"anchor_to": "bottom_middle",
"offset": [ 0, -1 ],
"size": [ 7, 7 ]
}
}
]
},
"header_panel": {
"type": "panel",
"size": [ "100%", "27px" ],
"anchor_from": "top_left",
"anchor_to": "top_left",
"controls": [
{
"header_background": {
"type": "image",
"nineslice_size": [ 3, 3, 3, 6 ],
"texture": "gui/newgui/TopBar.png",
"uv": [ 0, 0 ],
"uv_size": [ 5, 8 ]
}
}
]
},
"close_button_default": {
"type": "image",
"texture": "gui/newgui/portfolio/x_default.png",
"uv": [ 0, 0 ],
"uv_size": [ 7, 7 ]
},
"close_button_hover": {
"type": "image",
"texture": "gui/newgui/portfolio/x_hover.png",
"uv": [ 0, 0 ],
"uv_size": [ 7, 7 ]
},
"close_button_pressed": {
"type": "image",
"texture": "gui/newgui/portfolio/x_pressed.png",
"uv": [ 0, 0 ],
"uv_size": [ 7, 7 ]
},
"close_button": {
"type": "button",
"size": [ 7, 7 ],
"layer": 1,
"anchor_from": "top_right",
"anchor_to": "top_right",
"offset": [ -12, 10 ],
"default_control": "default",
"hover_control": "hover",
"pressed_control": "pressed",
"focus_enabled": false,
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "button.menu_exit",
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_ok",
"to_button_id": "button.menu_exit",
"mapping_type": "focused"
}
],
"controls": [
{ "default@close_button_default": { } },
{ "hover@close_button_hover": { } },
{ "pressed@close_button_pressed": { } }
]
},
// -----------------------------------------------
//
// screen
//
// -----------------------------------------------
// Root panel all others parented to
"root_panel": {
"type": "panel",
"size": [ 250, 130 ],
"layer": 1,
"anchor_from": "center",
"anchor_to": "center"
},
"portfolio_screen@common.base_screen": {
"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"
},
{
"from_button_id": "button.menu_cancel",
"to_button_id": "button.menu_exit",
"mapping_type": "global"
}
],
"$screen_content": "portfolio.portfolio_screen_content"
},
"portfolio_screen_content": {
"type": "panel",
"controls": [
{
"@root_panel": {
"layer": 1,
"anchor_from": "center",
"anchor_to": "center",
"offset": [ 0, -11 ],
"controls": [
{ "@book_background": { "layer": 1 } },
{ "@close_button": { "offset": [ -10, 10 ] } },
{ "@photo_list_grid": { } },
{ "@photo_trash_button_left": { } },
{ "@photo_trash_button_right": { } },
{ "@photo_page_prev_button": { } },
{ "@photo_page_next_button": { } },
{ "@export_button": { } }
]
}
}
]
}
}
+394
View File
@@ -0,0 +1,394 @@
{
"namespace": "progress",
"normal_stroke_button": {
"type": "image",
"nineslice_size": 4.0,
"texture": "gui/newgui/NormalButtonThinStroke.png",
"uv": [ 0, 0 ],
"uv_size": [ 7, 7 ]
},
"progress_screen_text": {
"type": "label",
"anchor_to": "center",
"anchor_from": "center",
"layer": 2,
"alignment": "center",
"shadow": false
},
"progress_title_text@progress.progress_screen_text": {
"offset": [ 0, -15 ],
"text": "#title_text",
"bindings": [
{
"binding_name": "#title_text",
"binding_condition": "visible"
}
]
},
"progress_bar_text@progress.progress_screen_text": {
"offset": [ 0, 9 ],
"text": "#progress_text",
"bindings": [
{ "binding_name": "#progress_text" }
]
},
"bar_animation": {
"anim_type": "flip_book",
"initial_uv": [ 0, 0 ],
"frame_count": 10,
"frame_step": 64,
"fps": 10,
"reversible": true,
"easing": "linear",
"next": "@bar_forward"
},
"progress_loading_bars": {
"type": "image",
"layer": 2,
"texture": "gui/newgui/loading_bar.png",
"anchor_from": "center",
"anchor_to": "center",
"offset": [ 0, 24 ],
"size": [ 64, 8 ],
"uv_size": [ 64, 8 ],
"uv": "@bar_animation",
"color": [ 0.7, 0.7, 0.7, 1.0 ],
"bindings": [
{
"binding_name": "#bar_animation_visible",
"binding_name_override": "#visible"
}
]
},
"progress_bar": {
"type": "custom",
"renderer": "progress_bar_renderer",
"layer": 2,
"offset": [ 0, 16 ],
"size": [ 100, 2 ],
"primary_color": [ 0.5, 1.0, 0.5, 1.0 ],
"bindings": [
{
"binding_name_override": "#progress_bar_visible",
"binding_name": "#loading_bar_visible"
},
{
"binding_name_override": "#progress_bar_total_amount",
"binding_name": "#loading_bar_total_amount",
"binding_condition": "visible"
},
{
"binding_name_override": "#progress_bar_current_amount",
"binding_name": "#loading_bar_current_amount",
"binding_condition": "visible"
}
]
},
"cancel_button_text@progress.progress_screen_text": {
"type": "label",
"layer": 4,
"alignment": "center",
"text": "gui.cancel",
"shadow": false
},
"cancel_button@common.button": {
"$pressed_button_name": "button.menu_exit",
"size": [ 66, 26 ],
"offset": [ 0, 55 ],
"bindings": [
{
"binding_name": "#cancel_visible",
"binding_name_override": "#visible"
}
],
"controls": [
{
"default@$button_state_default_base": {
"controls": [
{
"@progress.cancel_button_text": {
"color": [ 1.0, 1.0, 1.0, 1.0 ]
}
}
]
}
},
{
"hover@$button_state_hover_base": {
"controls": [
{
"@progress.cancel_button_text": {
"color": [ 1.0, 1.0, 0.0, 1.0 ]
}
}
]
}
},
{
"pressed@$button_state_pressed_base": {
"controls": [
{
"@progress.cancel_button_text": {
"color": [ 1.0, 1.0, 0.0, 1.0 ],
"alpha": 0.65
}
}
]
}
}
]
},
"title_panel": {
"type": "panel",
"size": [ "100%", "100%" ],
"anchor_from": "center",
"anchor_to": "center",
"controls": [
{
"@progress.progress_title_text": {
}
},
{
"@progress.progress_bar_text": { }
},
{
"@progress.progress_bar": { }
}
]
},
"button_panel": {
"type": "panel",
"size": [ "100%", "100%" ],
"anchor_from": "center",
"anchor_to": "center",
"controls": [
{
"@progress.cancel_button": { }
}
]
},
"modal_button_panel@button_panel": {
"controls": [
{
"@progress.cancel_button": {
// reset offset
"offset": [ 0, 0 ]
}
}
]
},
"gamepad_helpers": {
"type": "panel",
"size": [ 100, 10 ],
"offset": [ 0, "45%" ],
"controls": [
{
"@common.gamepad_helper_a": {
"size": [ "50%", "100%" ],
"offset": [ 0, "2%" ],
"anchor_from": "center",
"anchor_to": "center"
}
}
]
},
//---------------------------------------------------------------------------
// Screens
//---------------------------------------------------------------------------
"modal_progress_panel_no_cancel": {
"type": "panel",
"size": "$modal_screen_size",
"controls": [
{
"@common.common_panel": {
"$dialog_background": "dialog_background_hollow_4",
"$show_close_button": false
}
},
{
"content": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
// magic offset to make the scroll clipping perfect
"size": [ "100%-12px", "100%-12px" ],
"offset": [ 6, 6 ],
"controls": [
{
"@progress.title_panel": { }
},
{
"@progress.progress_loading_bars": { }
}
]
}
}
]
},
"modal_progress_panel_with_cancel": {
"type": "panel",
"size": "$modal_screen_size",
"controls": [
{
"@common.common_panel": {
"$dialog_background": "dialog_background_hollow_2",
"$show_close_button": false
}
},
{
"content": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
// magic offset to make the scroll clipping perfect
"size": [ "100%-12px", "100%-60px" ],
"offset": [ 6, 20 ],
"controls": [
{
"@progress.title_panel": { }
},
{
"@progress.progress_loading_bars": { }
}
]
}
},
{
"@progress.modal_button_panel": {
"anchor_from": "bottom_middle",
"anchor_to": "bottom_middle",
"size": [ "100%", 40 ]
}
}
]
},
"progress_panel": {
"type": "panel",
"size": [ "100%", "100%" ],
"controls": [
{
"@common.dirt_background": {
"visible": "$render_dirt_bg"
}
},
{
"@progress.progress_loading_bars": { }
},
{
"@progress.title_panel": { }
},
{
"@progress.button_panel": { }
}
]
},
"progress_screen@common.base_screen": {
"button_mappings": [
{
"from_button_id": "button.menu_cancel",
"to_button_id": "button.menu_exit",
"mapping_type": "global"
}
],
"$screen_content": "progress.progress_screen_content"
},
"progress_screen_content": {
"type": "panel",
"variables": [
{
"requires": "$desktop_screen",
"$button_state_default_base": "common.button_state_default",
"$button_state_hover_base": "common.button_state_hover",
"$button_state_pressed_base": "common.button_state_pressed",
"$render_dirt_bg": true
},
{
"requires": "$pocket_screen",
"$button_state_default_base": "common-classic.button_state_default",
"$button_state_hover_base": "common-classic.button_state_hover",
"$button_state_pressed_base": "common-classic.button_state_pressed",
"$render_dirt_bg": true
}
],
"controls": [
{
"@progress.progress_panel": { }
},
{
"@progress.gamepad_helpers": { }
}
]
},
"modal_progress_screen@common.base_screen": {
"button_mappings": [
{
"from_button_id": "button.menu_cancel",
"to_button_id": "button.menu_exit",
"mapping_type": "global"
}
],
"$screen_content": "progress.modal_screen_content"
},
"modal_screen_content": {
"type": "panel",
"variables": [
{
"requires": "$desktop_screen",
"$button_state_default_base": "progress.normal_stroke_button",
"$button_state_hover_base": "progress.normal_stroke_button",
"$button_state_pressed_base": "progress.normal_stroke_button",
"$render_dirt_bg": true
},
{
"requires": "$pocket_screen",
"$button_state_default_base": "common-classic.button_state_default",
"$button_state_hover_base": "common-classic.button_state_hover",
"$button_state_pressed_base": "common-classic.button_state_pressed",
"$render_dirt_bg": true
}
],
"controls": [
{
"@progress.modal_progress_panel_with_cancel": {
"bindings": [
{
"binding_name": "#cancel_visible",
"binding_name_override": "#visible"
}
]
}
},
{
"@progress.modal_progress_panel_no_cancel": {
"bindings": [
{
"binding_name": "#cancel_not_visible",
"binding_name_override": "#visible"
}
]
}
}
]
}
}
+509
View File
@@ -0,0 +1,509 @@
/********************************************************
+* (c) Mojang. All rights reserved *
+* (c) Microsoft. All rights reserved. *
+*********************************************************/
// Used to control the layout of the Realm Settings screen. Player gets to this screen
// by selecting the "configure" button in the Realms List screen.
{
"namespace": "realms_common",
// Common
// This should no longer be used! Legacy buttons
"dark_thin_button@common-classic.button_state_default": {
},
"dark_thin_button_hover@common-classic.button_state_hover": {
},
"dark_thin_button_pressed@common-classic.button_state_pressed": {
},
// This should no longer be used! Legacy header
"header_panel": {
"type": "panel",
"size": [ "100%", "27px" ],
"anchor_from": "top_left",
"anchor_to": "top_left",
"controls": [
{
"header_background": {
"type": "image",
"nineslice_size": [ 3, 3, 3, 6 ],
"texture": "gui/newgui/TopBar.png",
"uv": [ 0, 0 ],
"uv_size": [ 5, 8 ]
}
},
{
"title_label": {
"type": "label",
"size": [ "100%", 30 ],
"alignment": "center",
"text": "$text_name",
"anchor_from": "center",
"anchor_to": "center",
"layer": 1,
"shadow": false
}
},
{
"inside_header_panel@$child_control": { }
}
]
},
// This should no longer be used! Legacy button
"back_button@common-classic.button": {
"anchor_from": "bottom_left",
"anchor_to": "bottom_left",
"size": [ 66, 18 ],
"offset": [ 4, -6 ],
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "button.menu_exit",
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_ok",
"to_button_id": "button.menu_exit",
"mapping_type": "focused"
}
],
"controls": [
{
"default@common-classic.button_state_default": {
"controls": [
{
"@common.button_text": {
"text": "gui.back"
}
}
]
}
},
{
"hover@common-classic.button_state_hover": {
"controls": [
{
"@common.button_text": {
"text": "gui.back",
"color": [ 1.0, 1.0, 0.2 ]
}
}
]
}
},
{
"pressed@common-classic.button_state_pressed": {
"controls": [
{
"@common.button_text": {
"text": "gui.back",
"color": [ 1.0, 1.0, 0.2 ],
"alpha": 0.65
}
}
]
}
}
]
},
// The "envelope" icon that shows in the header panel if you have a pending invite
"pending_invites_icon": {
"type": "image",
"texture": "gui/newgui/invite_base.png",
"layer": 5,
"anchor_from": "bottom_right",
"anchor_to": "bottom_right",
"bindings": [
{
"binding_name": "#pending_invites_visible",
"binding_name_override": "#visible",
"binding_type": "global"
}
],
"uv": [ 0, 0 ],
"uv_size": [ 16, 16 ],
"size": [ 16, 16 ]
},
/////////////////
// NEW UI COMMON
/////////////////
"main_panel_long_bottom": {
"type": "panel",
"anchor_from": "center",
"anchor_to": "center",
"controls": [
{
"@common.common_panel": { "$dialog_background": "dialog_background_hollow_1" }
},
{
"@realms_common.title_label": { }
},
{
"panel_indent": {
"type": "panel",
"size": [ "100% - 16px", "100% - 78px" ],
"offset": [ 0, 23 ],
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"controls": [
{ "inside_header_panel@$child_control": { } }
]
}
}
]
},
"main_panel_short_bottom": {
"type": "panel",
"anchor_from": "center",
"anchor_to": "center",
"controls": [
{
"@common.common_panel": { "$dialog_background": "dialog_background_hollow_2" }
},
{
"@realms_common.title_label": { }
},
{
"panel_indent": {
"type": "panel",
"size": [ "100% - 16px", "100% - 65px" ],
"offset": [ 0, 23 ],
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"controls": [
{ "inside_header_panel@$child_control": { } }
]
}
}
]
},
"main_panel_no_bottom": {
"type": "panel",
"anchor_from": "center",
"anchor_to": "center",
"controls": [
{
"@common.common_panel": { "$dialog_background": "dialog_background_hollow_3" }
},
{
"@realms_common.title_label": { }
},
{
"panel_indent": {
"type": "panel",
"size": [ "100% - 16px", "100% - 31px" ],
"offset": [ 0, 23 ],
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"controls": [
{ "inside_header_panel@$child_control": { } }
]
}
}
]
},
"main_panel_no_padding": {
"type": "panel",
"anchor_from": "center",
"anchor_to": "center",
"controls": [
{
"@common.common_panel": { "$dialog_background": "dialog_background_hollow_4" }
},
{
"panel_indent": {
"type": "panel",
"size": [ "100% - 16px", "100% - 16px" ],
"offset": [ 0, 8 ],
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"controls": [
{ "inside_header_panel@$child_control": { } }
]
}
}
]
},
"main_panel": {
"type": "panel",
"anchor_from": "center",
"anchor_to": "center",
"controls": [
{ "@modal.modal_background_image": { "layer": 1 } },
{
"panel_indent": {
"type": "panel",
"size": [ "100% - 14px", "100% - 14px" ],
"controls": [
{ "inside_header_panel@$child_control": { } }
]
}
}
]
},
"title_label": {
"type": "label",
"size": [ "100%", 15 ],
"offset": [ 0, 9 ],
"color": [ 0.275, 0.275, 0.275 ],
"alignment": "top_middle",
"text": "$text_name",
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"layer": 4,
"shadow": false
},
"dark_banner": {
"type": "image",
"texture": "gui/newgui/MainBanners.png",
"layer": 1,
"anchor_from": "top_left",
"anchor_to": "top_left",
"uv": [ 0, 0 ],
"uv_size": [ 3, 3 ],
"nineslice_size": 1.0
},
"dark_banner_hover@dark_banner": {
"texture": "gui/newgui/MainBannersHover.png"
},
// Legacy - do not use
"legacy_banner": {
"type": "image",
"texture": "gui/newgui/legacybanner.png",
"layer": 1,
"anchor_from": "top_left",
"anchor_to": "top_left",
"uv": [ 0, 0 ],
"uv_size": [ 3, 3 ],
"nineslice_size": 1.0
},
"main_banner": {
"type": "image",
"texture": "gui/newgui/MainBanners.png",
"layer": 1,
"anchor_from": "top_left",
"anchor_to": "top_left",
"uv": [ 0, 0 ],
"uv_size": [ 3, 3 ],
"nineslice_size": 1.0
},
// This needs you to define the button mapping and the size of the button
"new_ui_button@common.button": {
"default_control": "default",
"hover_control": "hover",
"pressed_control": "pressed",
"$default_color|default": [ 0.3, 0.3, 0.3 ],
"$hover_color|default": [ 1.00, 0.96, 0.02 ],
"$pressed_color|default": [ 1.00, 0.96, 0.02 ],
"$button_offset|default": [ 0, 0 ],
"$button_text": "",
"controls": [
{
"default@realms_common.new_ui_button_panel": {
"$new_ui_button_texture": "gui/newgui/ButtonWithBorder.png",
"$custom_color": "$default_color"
}
},
{
"hover@realms_common.new_ui_button_panel": {
"$new_ui_button_texture": "gui/newgui/ButtonWithBorderHover.png",
"$custom_color": "$hover_color"
}
},
{
"pressed@realms_common.new_ui_button_panel": {
"$new_ui_button_texture": "gui/newgui/ButtonWithBorderPressed.png",
"$custom_color": "$pressed_color",
"$button_offset|default": [ 0, 1 ]
}
}
]
},
"new_ui_content_button@common.button": {
"default_control": "default",
"hover_control": "hover",
"pressed_control": "pressed",
"$button_offset|default": [ 0, 0 ],
"controls": [
{
"default@realms_common.new_ui_content_button_panel": {
"$new_ui_button_texture": "gui/newgui/ButtonWithBorder.png"
}
},
{
"hover@realms_common.new_ui_content_button_panel": {
"$new_ui_button_texture": "gui/newgui/ButtonWithBorderHover.png"
}
},
{
"pressed@realms_common.new_ui_content_button_panel": {
"$new_ui_button_texture": "gui/newgui/ButtonWithBorderPressed.png",
"$button_offset": [ 0, 1 ]
}
}
]
},
"new_ui_button_image": {
"type": "image",
"layer": 1,
"texture": "$new_ui_button_texture",
"uv": [ 0, 0 ],
"uv_size": [ 6, 6 ],
"nineslice_size": 2.0
},
"new_ui_button_label": {
"type": "label",
"layer": 2,
"text": "$button_text",
"color": "$custom_color",
"offset": "$button_offset",
"alignment": "center",
"anchor_from": "center",
"anchor_to": "center",
"shadow": false
},
"new_ui_button_panel": {
"type": "panel",
"layer": 1,
"controls": [
{ "@realms_common.new_ui_button_image": { } },
{ "@realms_common.new_ui_button_label": { } }
]
},
"new_ui_content_button_panel": {
"type": "panel",
"layer": 1,
"controls": [
{ "@realms_common.new_ui_button_image": { } },
{
"container": {
"type": "panel",
"offset": "$button_offset",
"controls": [
{
"content@$button_content": {
"layer": 2
}
}
]
}
}
]
},
/////////////////
// GLYPH
/////////////////
"new_ui_glyph_button@common.button": {
"$default_color|default": [ 0.3, 0.3, 0.3 ],
"$hover_color|default": [ 1.00, 0.96, 0.02 ],
"$pressed_color|default": [ 1.00, 0.96, 0.02 ],
"$button_offset|default": [ 0, 0 ],
"controls": [
{
"default@realms_common.new_ui_glyph_content_button_panel": {
"$new_ui_button_texture": "gui/newgui/ButtonWithBorder.png",
"$custom_color": "$default_color"
}
},
{
"hover@realms_common.new_ui_glyph_content_button_panel": {
"$new_ui_button_texture": "gui/newgui/ButtonWithBorderHover.png",
"$custom_color": "$hover_color"
}
},
{
"pressed@realms_common.new_ui_glyph_content_button_panel": {
"$new_ui_button_texture": "gui/newgui/ButtonWithBorderPressed.png",
"$custom_color": "$pressed_color",
"$button_offset": [ 0, 1 ]
}
}
]
},
"new_ui_glyph_content_button_panel": {
"type": "panel",
"layer": 1,
"controls": [
{
"@realms_common.new_ui_button_image": { }
},
{
"xyz@$button_content": {
"color": "$custom_color",
"layer": 3,
"offset": "$button_offset"
}
}
]
},
// Check box toggle
"toggle_state": {
"type": "image",
"size": [ 10, 10 ]
},
"toggle_off_state@realms_common.toggle_state": {
"texture": "gui/newgui/realms_toggle_off.png",
"color": [ 1.0, 1.0, 1.0, 1.0 ]
},
"toggle_on_state@realms_common.toggle_state": {
"texture": "gui/newgui/realms_toggle_on.png",
"color": [ 1.0, 1.0, 1.0, 1.0 ]
},
"toggle_off_hover_state@realms_common.toggle_off_state": {
"color": [ 1.0, 1.0, 0.0, 1.0 ]
},
"toggle_on_hover_state@realms_common.toggle_on_state": {
"color": [ 1.0, 1.0, 0.0, 1.0 ]
},
"toggle_off_locked_state@realms_common.toggle_off_state": {
"color": [ 0.5, 0.5, 0.5, 0.5 ]
},
"toggle_on_locked_state@realms_common.toggle_on_state": {
"color": [ 0.5, 0.5, 0.5, 0.5 ]
},
"toggle@common.toggle": {
"$unchecked_control": "realms_common.toggle_off_state",
"$checked_control": "realms_common.toggle_on_state",
"$unchecked_hover_control": "realms_common.toggle_off_hover_state",
"$checked_hover_control": "realms_common.toggle_on_hover_state",
"$unchecked_locked_control": "realms_common.toggle_off_locked_state",
"$checked_locked_control": "realms_common.toggle_on_locked_state"
}
}
+705
View File
@@ -0,0 +1,705 @@
/********************************************************
* (c) Mojang. All rights reserved *
* (c) Microsoft. All rights reserved. *
*********************************************************/
// The screen used to purchase (or trial use) a realm; pops up and gives
// the player a chance to ... name and decide purchase options. Next
// screen is screen for Invite Players To Your Realm.
{
"namespace": "realms_create",
"title_label": {
"type": "label",
"size": [ "100%", "14px" ],
"anchor_from": "top_left",
"anchor_to": "top_left",
"alignment": "center",
"color": [ 0.3, 0.3, 0.3 ]
},
"label": {
"type": "label",
"size": [ "100%", "14px" ],
"anchor_from": "top_left",
"anchor_to": "top_left",
"alignment": "top_left"
},
"button_image": {
"$button_text|default": "",
"$button_text_offset|default": [ 0, 0 ],
"$text_color|default": [ 0.3, 0.3, 0.3 ],
"type": "image",
"nineslice_size": 2,
"uv": [ 0, 0 ],
"uv_size": [ 6, 6 ],
"controls": [
{
"button_label": {
"type": "label",
"layer": 1,
"size": [ "100%", "100%" ],
"anchor_from": "center",
"anchor_to": "center",
"color": "$text_color",
"offset": "$button_text_offset",
"text": "$button_text"
}
}
]
},
"button_image_with_bound_label@button_image": {
"$button_text_offset|default": [ 0, 0 ],
"$text_color|default": [ 0.3, 0.3, 0.3 ],
"type": "image",
"nineslice_size": 2,
"uv": [ 0, 0 ],
"uv_size": [ 6, 6 ],
"controls": [
{
"button_label": {
"type": "label",
"layer": 1,
"size": [ "100%", "100%" ],
"anchor_from": "center",
"anchor_to": "center",
"color": "$text_color",
"offset": "$button_text_offset",
"alignment": "center",
"text": "$button_text_bind",
"bindings": [
{
"binding_name": "$button_text_bind"
}
]
}
}
]
},
"default@realms_create.button_image": {
"texture": "gui/newgui/ButtonWithBorder.png"
},
"pressed@realms_create.button_image": {
"texture": "gui/newgui/ButtonWithBorderPressedNoHover.png"
},
"hover@realms_create.button_image": {
"texture": "gui/newgui/ButtonWithBorderHover.png",
"$text_color": [ 1.00, 0.96, 0.02 ]
},
"hover_pressed@realms_create.button_image": {
"texture": "gui/newgui/ButtonWithBorderPressed.png",
"$text_color": [ 1.00, 0.96, 0.02 ]
},
"bound_default@realms_create.button_image_with_bound_label": {
"texture": "gui/newgui/ButtonWithBorder.png"
},
"bound_hover@realms_create.button_image_with_bound_label": {
"texture": "gui/newgui/ButtonWithBorderHover.png",
"$text_color": [ 1.00, 0.96, 0.02 ]
},
"bound_hover_pressed@realms_create.button_image_with_bound_label": {
"texture": "gui/newgui/ButtonWithBorderPressed.png",
"$text_color": [ 1.00, 0.96, 0.02 ]
},
"radio_with_label_core@common.radio_toggle": {
"$unchecked_control": "realms_create.default",
"$checked_control": "realms_create.pressed",
"$unchecked_hover_control": "realms_create.hover",
"$checked_hover_control": "realms_create.hover_pressed",
"$radio_toggle_group": true,
"size": [ "100%", "100%" ],
"$toggle_name": "$toggle_state_binding_name"
},
"radio_with_label": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ "100%", "50px" ],
"offset": [ 3, 0 ],
"controls": [
{
"@radio_with_label_core": {
"layer": 1,
"focus_change_down": "$focus_override_down",
"focus_identifier": "$focus_id"
}
},
{
"radio_label": {
"type": "label",
"layer": 2,
"size": [ "100%", "100%" ],
"anchor_from": "center",
"anchor_to": "center",
"color": [ 0.3, 0.3, 0.3 ],
"text": "$radio_label_text"
}
}
]
},
//--------------------------------------------------------------------------------
// Popup Modal Dialogs
//--------------------------------------------------------------------------------
"popup_dialog_base@popup_dialog.popup_dialog": {
"$middle_button_press": "button.close_dialog"
},
"popup_dialog__agree_to_tos@realms_create.popup_dialog_base": {
"$message_text": "#tos_error_msg",
"$middle_button_text": "realmsCreateScreen.goBack",
"controls": [
{ "@popup_dialog.popup_dialog_bg": { } },
{
"@popup_dialog.popup_dialog_message": {
"offset": [ 0, 30 ], // non-default value because the case of invalid realm name and not accepting TOS results in string pushing out the top of the dialog box
"bindings": [
{
"binding_name": "$message_text"
}
]
}
},
{ "@popup_dialog.popup_dialog_middle_button": { } }
]
},
"popup_dialog__purchase_failed@realms_create.popup_dialog_base": {
"$message_text": "realmsCreateScreen.purchaseFailed",
"$middle_button_text": "gui.ok",
"controls": [
{ "@popup_dialog.popup_dialog_bg": { } },
{
"@popup_dialog.popup_dialog_message": {
"offset": [ 0, 30 ]
}
},
{ "@popup_dialog.popup_dialog_middle_button": { } }
]
},
"popup_dialog__purchase_in_progress@popup_dialog.popup_dialog": {
"$message_text": "realmsCreateScreen.waitingPurchase",
"controls": [
{ "@popup_dialog.popup_dialog_bg": { } },
{
"@popup_dialog.popup_dialog_message": {
"size": [ "90%", "100%" ]
}
}
]
},
//--------------------------------------------------------------------------------
// Controls
//--------------------------------------------------------------------------------
"enter_name_panel": {
"type": "panel",
"controls": [
{
"name_label@label": {
"layer": 1,
"offset": [ 2, 2 ],
"text": "realmsCreateScreen.nameHeader"
}
},
{
"name_edit@common.text_edit_box": {
"layer": 2,
"anchor_from": "top_left",
"anchor_to": "top_left",
"offset": [ 0, 12 ],
"size": [ "100%", 25 ],
"$text_box_name": "#realms_name_box",
"$text_edit_box_content_binding_name": "#realms_name_textbox",
"max_length": 30
}
}
]
},
"selected_duration_checkbox": {
"type": "image",
"layer": 1,
"size": [ 16, 13 ],
"offset": [ 2, -1 ],
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"uv": [ 0, 0 ],
"uv_size": [ 16, 13 ]
},
"selected_duration_checkbox_empty@selected_duration_checkbox": {
"texture": "gui/newgui/buttons/checkbox/checkboxUnFilled.png"
},
"selected_duration_checkbox_filled@selected_duration_checkbox": {
"texture": "gui/newgui/buttons/checkbox/checkboxFilledYellow.png",
"bindings": [
{
"binding_name": "$selected_duration_binding_name",
"binding_name_override": "#visible"
}
]
},
"duration_button@common.button": {
"controls": [
{
"default@realms_create.default": {
"layer": 1
}
},
{
"hover@realms_create.hover": {
"layer": 1
}
},
{
"pressed@realms_create.hover_pressed": {
"$button_text_offset": [ 1, 1 ],
"layer": 1
}
},
{
"@selected_duration_checkbox_empty": {
// button content will go up to layer 3
"layer": 4
}
},
{
"@selected_duration_checkbox_filled": {
// button content will go up to layer 3
// filled has to render above empty, so +1 layer
"layer": 5
}
}
]
},
"choose_duration_panel": {
"type": "panel",
"controls": [
{
"name_label@label": {
"offset": [ 2, 2 ],
"text": "realmsCreateScreen.durationHeader"
}
},
{
"choose_duration_stack_panel": {
"type": "stack_panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"orientation": "vertical",
"size": [ "100%", "100% - 10px" ],
"offset": [ 0, 12 ],
"controls": [
{
"short@realms_create.duration_button": {
"$pressed_button_name": "button.realms_duration_short",
"$toggle_state_binding_name": "#player_count_2",
"$button_text": "realmsCreateScreen.durationShort",
"$selected_duration_binding_name": "#selected_duration_short",
"size": [ "100%", "50%" ]
}
},
{
"long@realms_create.duration_button": {
"$pressed_button_name": "button.realms_duration_long",
"$toggle_state_binding_name": "#player_count_10",
"$button_text": "realmsCreateScreen.durationLong",
"$selected_duration_binding_name": "#selected_duration_long",
"size": [ "100%", "50%" ]
}
}
]
}
}
]
},
"choose_tier_panel": {
"type": "panel",
"controls": [
{
"name_label@label": {
"offset": [ 2, 2 ],
"text": "realmsCreateScreen.sizeHeader"
}
},
{
"choose_tier_stack_panel": {
"type": "stack_panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"orientation": "horizontal",
"size": [ "100%", "100% - 10px" ],
"offset": [ 0, 12 ],
"controls": [
{
"@radio_with_label": {
"size": [ "40%", "100%" ],
"layer": 1,
"$toggle_state_binding_name": "#player_count_2",
"$radio_label_text": "realmsCreateScreen.usersTwo",
"$focus_override_down": "checkbox_control",
"$focus_id": "2users"
}
},
{
"@radio_with_label": {
"size": [ "60%", "100%" ],
"layer": 1,
"$toggle_state_binding_name": "#player_count_10",
"$radio_label_text": "realmsCreateScreen.usersTen",
"$focus_override_down": "checkbox_control",
"$focus_id": "10users"
}
}
]
}
}
]
},
"terms_string@label": {
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"alignment": "left_middle",
"text": "realmsCreateScreen.termsAndConditions"
},
"terms_string_hyperlink@common.hyperlink_button": {
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"property_bag": {
"#hyperlink": "http://aka.ms/minecraftrealmsterms"
},
"controls": [
{ "default@terms_string": { } },
{ "hover@terms_string": { "color": "yellow" } },
{
"pressed@terms_string": {
"offset": [ 0, 1 ],
"color": "yellow"
}
}
]
},
// Stop-gap measure until we can get hyperlinks to work from VR
"terms_string_popup_button@common.button": {
"$pressed_button_name": "button.tos_popup",
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"controls": [
{ "default@terms_string": { } },
{ "hover@terms_string": { "color": "yellow" } },
{
"pressed@terms_string": {
"offset": [ 0, 1 ],
"color": "yellow"
}
}
]
},
"terms_and_conditions_panel": {
"type": "panel",
"controls": [
{
"terms_string_panel": {
"type": "panel",
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"offset": [ 16, 2 ],
"size": [ "100% - 16px", "100%" ],
// Stop-gap measure until we can get hyperlinks to work from VR
"$use_terms_string_hyperlink|default": true,
"$use_terms_string_popup_button|default": false,
"variables": [
{
"requires": "$vr_feature",
"$use_terms_string_hyperlink": false,
"$use_terms_string_popup_button": true
}
],
"controls": [
//{ "@terms_string_hyperlink": { } }
{ "@terms_string_hyperlink": { "ignored": "$use_terms_string_popup_button" } },
{ "@terms_string_popup_button": { "ignored": "$use_terms_string_hyperlink" } }
]
}
},
{
"checkbox_control@common.checkbox": {
"size": [ 15, 15 ],
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"$toggle_name": "#agree_terms_and_conditions",
"focus_change_up": "2users",
"focus_identifier": "checkbox_control"
}
}
]
},
"confirm_button@common.button": {
"focus_change_up": "checkbox_control",
"controls": [
{
"default@realms_create.bound_default": { }
},
{
"hover@realms_create.bound_hover": { }
},
{
"pressed@realms_create.bound_hover_pressed": {
"$button_text_offset": [ 1, 1 ]
}
}
]
},
"confirmation_panel": {
"type": "panel",
"offset": [ 0, -4 ],
"controls": [
{
"@realms_create.confirm_button": {
"$pressed_button_name": "button.create_realm",
"$button_text_bind": "#confirmation_button_text",
"size": [ "100%", "100%" ]
}
}
]
},
"stack_item": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left"
},
"main_panel": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ "100%", "100%" ],
"$standard_stack_item_size|default": [ "100% - 4px", "22%" ],
"$toc_stack_item_size|default": [ "100% - 4px", "12%"],
"controls": [
{
"@title_label": {
"layer": 2,
"text": "realmsCreateScreen.title"
}
},
{
"stacked_frame": {
"type": "stack_panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ "100%", "100% - 15px" ],
"offset": [ 2, 15 ],
"variables": [
{
"requires": "$allow_subscriptions",
"$standard_stack_item_size": [ "100% - 4px", "30%" ],
"$toc_stack_item_size": [ "100% - 4px", "10%" ]
}
],
"controls": [
{
"padding": {
"type": "panel",
"size": [ 0, 2 ]
}
},
{
"name@stack_item": {
"size": "$standard_stack_item_size",
"controls": [
{
"@enter_name_panel": {
"anchor_from": "center",
"anchor_to": "center",
"size": [ "100% - 4px", "100% - 4px" ]
}
}
]
}
},
{
"duration@stack_item": {
"ignored": "$allow_subscriptions",
"size": "$standard_stack_item_size",
"controls": [
{
"@choose_duration_panel": {
"anchor_from": "center",
"anchor_to": "center",
"size": [ "100% - 4px", "100% - 4px" ]
}
}
]
}
},
{
"tier@stack_item": {
"size": "$standard_stack_item_size",
"controls": [
{
"@choose_tier_panel": {
"anchor_from": "center",
"anchor_to": "center",
"size": [ "100% - 4px", "100% - 4px" ]
}
}
]
}
},
{
"toc@stack_item": {
"size": "$toc_stack_item_size",
"controls": [
{
"@terms_and_conditions_panel": {
"anchor_from": "center",
"anchor_to": "center",
"size": [ "100% - 4px", "100% - 4px" ],
"offset": [ 1, 0 ]
}
}
]
}
},
{
"confirm@stack_item": {
"size": "$standard_stack_item_size",
"controls": [
{
"@confirmation_panel": {
"anchor_from": "center",
"anchor_to": "center",
"size": [ "100% - 4px", "100% - 4px" ]
}
}
]
}
},
{
"padding": {
"type": "panel",
"size": [ 0, 2 ]
}
}
]
}
}
]
},
//--------------------------------------------------------------------------------
// Screen
//--------------------------------------------------------------------------------
"content": {
"type": "panel",
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"size": [ "100% - 13px", "100% - 11px" ],
"offset": [ 0, 5 ],
"controls": [
{ "@main_panel": { } }
]
},
"realms_create_screen@common.base_screen": {
"button_mappings": [
{
"from_button_id": "button.menu_cancel",
"to_button_id": "button.menu_exit",
"mapping_type": "global"
},
{
"from_button_id": "button.menu_up",
"to_button_id": "button.menu_up",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_down",
"to_button_id": "button.menu_down",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_left",
"to_button_id": "button.menu_left",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_right",
"to_button_id": "button.menu_right",
"mapping_type": "global",
"scope": "view"
}
],
"$screen_content": "realms_create.realms_create_content",
"$default_text_color": [ 0.3, 0.3, 0.3 ]
},
"realms_create_content": {
"type": "panel",
"controls": [
{
"bg@common.common_panel": {
"size": "$narrow_screen_size",
"$dialog_background": "dialog_background_hollow_3",
"$show_divider": false,
"$show_close_button": true
}
},
{
"container": {
"type": "panel",
"size": "$narrow_screen_size",
"layer": 1,
"controls": [
{ "@realms_create.content": { } }
]
}
},
{
"popup_dialog_factory": {
"type": "factory",
"control_ids": {
"agree_to_tos": "@realms_create.popup_dialog__agree_to_tos",
"purchase_failed": "@realms_create.popup_dialog__purchase_failed",
"purchase_in_progress": "@realms_create.popup_dialog__purchase_in_progress"
}
}
}
]
}
}
+670
View File
@@ -0,0 +1,670 @@
/********************************************************
+* (c) Mojang. All rights reserved *
+* (c) Microsoft. All rights reserved. *
+*********************************************************/
{
"namespace": "realms_invitation",
//---------------------------------------------------------------------------
// Vertical Stack Panel
//---------------------------------------------------------------------------
"friends_panel": {
"type": "stack_panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"orientation": "vertical",
"size": "$friend_panel_size",
"offset": [ 0, 0 ],
"controls": [
{ "@add_new_friend_button_panel": { } },
{ "@invited_friends_label": { } },
{ "@invited_friends_grid": { } },
{ "@uninvited_friends_label": { } },
{ "@uninvited_friends_grid": { } },
{ "@realms_invitation.no_invites_label": { } },
{ "@realms_invitation.loading_friends": { } }
]
},
"add_new_friend_button_panel": {
"type": "panel",
"size": [ "100%", 32 ],
"anchor_from": "top_left",
"anchor_to": "top_left",
"controls": [
{
"@add_new_friend_button": { }
}
]
},
"invited_friends_label": {
"type": "panel",
"size": [ "100%", 13 ],
"anchor_from": "top_left",
"anchor_to": "top_left",
"controls": [
{
"friend_title": {
"type": "label",
"offset": [ 1, -1 ],
"text": "realmsInvitationScreen.invitedFriends",
"font_size": "large",
"anchor_from": "bottom_left",
"anchor_to": "bottom_left",
"alignment": "bottom_left",
"layer": 1
}
}
],
"bindings": [
{
"binding_name": "#invite_friends_visible",
"binding_name_override": "#visible",
"binding_type": "global"
}
]
},
"invited_friends_grid": {
"type": "grid",
"size": [ "100%", "default" ],
"grid_item_template": "realms_invitation.gamer_grid_item",
"grid_dimension_binding": "#invited_friend_grid_dimension",
"$collection_binding_name": "invited_friends_collection",
"collection_name": "invited_friends_collection",
"anchor_to": "top_left",
"anchor_from": "top_left",
"bindings": [
{
"binding_name": "#invited_friend_grid_dimension"
}
]
},
"uninvited_friends_label": {
"type": "panel",
"size": [ "100%", 11 ],
"anchor_from": "top_left",
"anchor_to": "top_left",
"controls": [
{
"friend_title": {
"type": "label",
"offset": [ 1, -1 ],
"text": "realmsInvitationScreen.friends",
"font_size": "large",
"anchor_from": "bottom_left",
"anchor_to": "bottom_left",
"alignment": "bottom_left",
"layer": 1
}
}
],
"bindings": [
{
"binding_name": "#uninvited_friends_visible",
"binding_name_override": "#visible",
"binding_type": "global"
}
]
},
"uninvited_friends_grid": {
"type": "grid",
"size": [ "100%", "default" ],
"grid_item_template": "realms_invitation.gamer_grid_item",
"grid_dimension_binding": "#uninvited_friends_grid_dimension",
"$collection_binding_name": "uninvited_friends_collection",
"collection_name": "uninvited_friends_collection",
"anchor_to": "top_left",
"anchor_from": "top_left",
"bindings": [
{
"binding_name": "#uninvited_friends_grid_dimension"
}
]
},
"no_invites_label@realms_invitation.panel_text": {
"text": "realmsInvitationScreen.noInvites",
"size": [ "100%", 20 ],
"offset": [ 0, 0 ],
"font_size": "large",
"anchor_from": "center",
"anchor_to": "center",
"alignment": "top_middle",
"wrap": true,
"bindings": [
{
"binding_name": "#no_invites_visible",
"binding_name_override": "#visible",
"binding_type": "global"
}
]
},
"loading_friends@realms_invitation.panel_text": {
"text": "realmsInvitationScreen.loadingFriends",
"size": [ "100%", 20 ],
"offset": [ 0, 0 ],
"font_size": "large",
"anchor_from": "center",
"anchor_to": "center",
"alignment": "center",
"bindings": [
{
"binding_name": "#loading_friends",
"binding_name_override": "#visible",
"binding_type": "global"
}
]
},
//---------------------------------------------------------------------------
// Gamertag Panel
//---------------------------------------------------------------------------
"gamer_grid_item": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ "100%", 28 ],
"controls": [
{
"@gamer_panel": { }
}
]
},
"gamer_panel@realms_common.main_banner": {
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ "100%", 26 ],
"controls": [
{ "@gamer_stack_panel": { } },
{
"@player_status_panel": {
"offset": [ -3, 0 ], // Right aligned
"layer": 6
}
}
]
},
"gamer_stack_panel": {
"type": "stack_panel",
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"orientation": "horizontal",
"size": [ "100%c", "100% - 6px" ], // Y sizing = -2 for top and bottom black border, -4 for indent of 2 px top and bottom, should total 20
"controls": [
{
"@horizontal_indent": {
"size": [ 3, 0],
"bindings": [
{
"binding_name": "#player_status_visible",
"binding_name_override": "#visible",
"binding_type": "collection",
"binding_collection_name": "$collection_binding_name"
}
]
}
},
{ "@left_button_panel": { } },
{
"@horizontal_indent": {
"bindings": [
{
"binding_name": "#player_status_visible",
"binding_name_override": "#visible",
"binding_type": "collection",
"binding_collection_name": "$collection_binding_name"
}
]
}
},
{
"@gamerpic_panel": {
"layer": 3
}
},
{ "@horizontal_indent": { } },
{
"@realms_invitation.gamertag_label_panel": {
"layer": 4
}
}
]
},
"left_button_panel": {
"type": "panel",
"size": [ 20, "100%" ],
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"controls": [
{
"@plus_minus_panel": {
"layer": 1
}
},
{
"@pending_invites_left_icon": {
"layer": 3
}
}
],
"bindings": [
{
"binding_name": "#player_status_visible",
"binding_name_override": "#visible",
"binding_type": "collection",
"binding_collection_name": "$collection_binding_name"
}
]
},
"horizontal_indent": {
"type": "panel",
"size": [ 2, "100%" ]
},
"vertical_indent": {
"type": "panel",
"size": [ "100%", 2 ]
},
"gamerpic_panel": {
"type": "panel",
"size": [ 20, 20 ],
"anchor_to": "left_middle",
"anchor_from": "left_middle",
"controls": [
{ "@black_border": { } },
{
"@gamertag_image": {
"layer": 1,
"size": [ "100% - 2px", "100% - 2px" ]
}
}
],
"bindings": [
{
"binding_name": "#player_status_visible",
"binding_name_override": "#visible",
"binding_type": "collection",
"binding_collection_name": "$collection_binding_name"
}
]
},
"gamertag_label_panel": {
"type": "panel",
"anchor_to": "left_middle",
"anchor_from": "left_middle",
"size": [ 100, "100%" ],
"controls": [
{ "@gamertag_label": { } },
{ "@real_name_label": { } }
]
},
"panel_text": {
"type": "label",
"shadow": false,
"layer": 5,
"anchor_from": "top_left",
"anchor_to": "top_left"
},
"gamertag_label@realms_invitation.panel_text": {
"text": "#gamertag",
"font_size": "large",
"alignment": "top_left",
"bindings": [
{
"binding_name": "#gamertag",
"binding_type": "collection",
"binding_collection_name": "$collection_binding_name"
}
]
},
"real_name_label@realms_invitation.panel_text": {
"text": "#real_name",
"font_size": "large",
"alignment": "bottom_left",
"bindings": [
{
"binding_name": "#real_name",
"binding_type": "collection",
"binding_collection_name": "$collection_binding_name"
}
]
},
"plus_minus_panel": {
"type": "panel",
"size": [ 20, 20 ],
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"controls": [
{ "@plus_button": { } },
{ "@minus_button": { } }
]
},
"player_status_panel": {
"size": [ 50, "100% - 2px" ],
"type": "panel",
"anchor_from": "right_middle",
"anchor_to": "right_middle",
"controls": [
{
"action_not_taken_panel": {
"type": "panel",
"size": [ 20, "100%" ],
"anchor_from": "right_middle",
"anchor_to": "right_middle",
"controls": [
{
"@player_online_icon": {
"layer": 1
}
},
{
"@player_offline_icon": {
"layer": 2
}
},
{
"@pending_invites_right_icon": {
"layer": 3
}
}
],
"bindings": [
{
"binding_name": "#player_status_visible",
"binding_name_override": "#visible",
"binding_type": "collection",
"binding_collection_name": "$collection_binding_name"
}
]
}
},
{
"@undo_button": {
"layer": 4
}
}
]
},
//---------------------------------------------------------------------------
// Buttons
//---------------------------------------------------------------------------
"plus_button@realms_common.new_ui_glyph_button": {
"size": [ 20, 20 ],
"layer": 1,
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"$button_content": "realms_invitation.plus_icon",
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "button.realms_invite_plus",
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_ok",
"to_button_id": "button.realms_invite_plus",
"mapping_type": "focused"
}
],
"bindings": [
{
"binding_type": "collection_details",
"binding_collection_name": "$collection_binding_name"
},
{
"binding_type": "collection",
"binding_collection_name": "$collection_binding_name",
"binding_name": "#plus_button_visible",
"binding_name_override": "#visible"
}
]
},
"minus_button@realms_common.new_ui_glyph_button": {
"size": [ 20, 20 ],
"layer": 2,
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"$button_content": "realms_invitation.minus_icon",
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "button.realms_invite_minus",
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_ok",
"to_button_id": "button.realms_invite_minus",
"mapping_type": "focused"
}
],
"bindings": [
{
"binding_type": "collection_details",
"binding_collection_name": "$collection_binding_name"
},
{
"binding_name": "#minus_button_visible",
"binding_name_override": "#visible",
"binding_type": "collection",
"binding_collection_name": "$collection_binding_name"
}
]
},
"undo_button@realms_common.new_ui_button": {
"size": [ 50, 20 ],
"anchor_from": "right_middle",
"anchor_to": "right_middle",
"$button_text": "realmsInvitationScreen.undo",
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "button.realms_invite_undo",
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_ok",
"to_button_id": "button.realms_invite_undo",
"mapping_type": "focused"
}
],
"bindings": [
{
"binding_type": "collection_details",
"binding_collection_name": "$collection_binding_name"
},
{
"binding_name": "#undo_action_visible",
"binding_name_override": "#visible",
"binding_type": "collection",
"binding_collection_name": "$collection_binding_name"
}
]
},
"add_new_friend_button@realms_common.new_ui_button": {
"anchor_from": "bottom_left",
"anchor_to": "bottom_left",
"size": [ "100%", 30 ],
"layer": 2,
"$button_text": "realmsInvitationScreen.addNewFriend",
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "button.realms_invite_add_friends",
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_ok",
"to_button_id": "button.realms_invite_add_friends",
"mapping_type": "focused"
}
]
},
//---------------------------------------------------------------------------
// assets
//---------------------------------------------------------------------------
//Black border is used for the grid item and around the gamerpic
"black_border": {
"type": "image",
"texture": "gui/newgui/MainBanners.png",
"uv": [ 0, 0 ],
"uv_size": [ 3, 3 ],
"nineslice_size": 1.0
},
"gamertag_image": {
"type": "image",
"texture": "#texture",
"uv": [ 0, 0 ],
"uv_size": [ 64, 64 ],
"texture_source": "#texture_source",
"bindings": [
{
"binding_name": "#texture",
"binding_type": "collection",
"binding_collection_name": "$collection_binding_name"
},
{
"binding_name": "#texture_source",
"binding_name_override": "#texture_file_system",
"binding_type": "collection",
"binding_collection_name": "$collection_binding_name"
}
]
},
"player_online_icon": {
"type": "image",
"texture": "gui/newgui/online.png",
"uv": [ 0, 0 ],
"uv_size": [ 8, 8 ],
"size": [ 8, 8 ],
"bindings": [
{
"binding_name": "#player_online",
"binding_name_override": "#visible",
"binding_type": "collection",
"binding_collection_name": "$collection_binding_name"
}
]
},
"player_offline_icon": {
"type": "image",
"texture": "gui/newgui/offline.png",
"uv": [ 0, 0 ],
"uv_size": [ 8, 8 ],
"size": [ 8, 8 ],
"bindings": [
{
"binding_name": "#player_offline",
"binding_name_override": "#visible",
"binding_type": "collection",
"binding_collection_name": "$collection_binding_name"
}
]
},
"pending_invites_left_icon@pending_invites_icon": {
"visible": "#pending_invite_right",
"bindings": [
{
"binding_name": "#pending_invite_left",
"binding_name_override": "#visible",
"binding_type": "collection",
"binding_collection_name": "$collection_binding_name"
}
]
},
"pending_invites_right_icon@pending_invites_icon": {
"visible": "#pending_invite_right",
"bindings": [
{
"binding_name": "#pending_invite_right",
"binding_name_override": "#visible",
"binding_type": "collection",
"binding_collection_name": "$collection_binding_name"
}
]
},
"pending_invites_icon": {
"type": "image",
"texture": "gui/newgui/invite_base.png",
"uv": [ 0, 0 ],
"uv_size": [ 16, 16 ],
"size": [ 16, 16 ]
},
"plus_icon": {
"type": "image",
"layer": 2,
"texture": "gui/newgui/plus.png",
"uv": [ 0, 0 ],
"uv_size": [ 11, 11 ],
"size": [ 11, 11 ]
},
"minus_icon": {
"type": "image",
"layer": 2,
"texture": "gui/newgui/minus.png",
"uv": [ 0, 0 ],
"uv_size": [ 11, 3 ],
"size": [ 11, 3 ]
},
// -----------------------------------------------
//
// screen
//
// -----------------------------------------------
"gamepad_helpers": {
"type": "panel",
"layer": 2,
"controls": [
{
"@common.gamepad_helper_a": {
"size": [ 30, 10 ],
"offset": [ -70, -2 ],
"anchor_from": "bottom_right",
"anchor_to": "bottom_right"
}
}
]
},
"realms_invitation_panel_content@common.scrolling_panel": {
"anchor_to": "top_left",
"anchor_from": "top_left",
"$show_background": false,
"$scroll_track_size": [ 5, "100% - 4px" ],
"$scroll_track_offset|default": [ 0, 2 ],
"$scrolling_content": "realms_invitation.friends_panel",
"$friend_panel_size": [ "100% - 1px", "100%c" ]
}
}
+119
View File
@@ -0,0 +1,119 @@
/********************************************************
+* (c) Mojang. All rights reserved *
+* (c) Microsoft. All rights reserved. *
+*********************************************************/
{
"namespace": "realms_invitation",
// -----------------------------------------------
//
// screen
//
// -----------------------------------------------
"gamepad_helpers": {
"type": "panel",
"layer": 2,
"controls": [
{
"@common.gamepad_helper_a": {
"size": [ 30, 10 ],
"offset": [ -70, -2 ],
"anchor_from": "bottom_right",
"anchor_to": "bottom_right"
}
}
]
},
"realms_invitation_content_panel@realms_common.main_panel_short_bottom": {
"$child_control": "realms_invitation.realms_invitation_content_panel_children",
"$text_name": "Add Realm Players",
"$show_close_button": false,
"size": "$narrow_screen_size"
},
"realms_invitation_content_panel_children": {
"type": "panel",
"anchor_to": "top_left",
"anchor_from": "top_left",
"controls": [
{
"@realms_invitation.realms_invitation_panel_content": {
"offset": [ 2, 0 ],
"$scrolling_pane_size": [ "100% - 4px", "100%" ]
}
},
{
"done_button@realms_common.new_ui_button": {
"anchor_from": "bottom_middle",
"anchor_to": "top_middle",
"size": [ "100% + 2px", 30 ],
"offset": [ 0, 5 ],
"layer": 2,
"$button_text": "realmsInvitationScreen.done",
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "button.menu_realm_send_invites",
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_ok",
"to_button_id": "button.menu_realm_send_invites",
"mapping_type": "focused"
}
]
}
}
]
},
"realms_invitation_screen@common.base_screen": {
"button_mappings": [
{
"from_button_id": "button.menu_up",
"to_button_id": "button.menu_up",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_down",
"to_button_id": "button.menu_down",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_left",
"to_button_id": "button.menu_left",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_right",
"to_button_id": "button.menu_right",
"mapping_type": "global",
"scope": "view"
}
],
"$screen_content": "realms_invitation.realms_invitation_content"
},
"realms_invitation_content": {
"type": "panel",
"controls": [
{
"root_panel": {
"type": "input_panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"controls": [
{ "@realms_invitation.realms_invitation_content_panel": { "layer": 1 } },
{ "@realms_invitation.gamepad_helpers": { } }
]
}
}
]
}
}
+536
View File
@@ -0,0 +1,536 @@
/********************************************************
+* (c) Mojang. All rights reserved *
+* (c) Microsoft. All rights reserved. *
+*********************************************************/
{
"namespace": "realms_pending_invitations",
//---------------------------------------------------------------------------
// Common
//---------------------------------------------------------------------------
"panel_text": {
"type": "label",
"layer": 5,
"anchor_from": "center",
"anchor_to": "center",
"alignment": "center",
"font_size": "large"
},
"banner_panel_base": {
"type": "panel",
"anchor_to": "top_left",
"anchor_from": "top_left",
"size": [ "100%", 27 ],
"controls": [
{
"background@$banner_image": {
"size": [ "100%-4px", "100% - 1px" ],
"offset": [ 2, 1 ]
}
},
{
"indent_panel": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ "100% - 8px", "100% - 5px" ],
"offset": [ 4, 3 ],
"controls": [ { "content@$child_control": { } } ]
}
}
]
},
"banner_panel@banner_panel_base": {
"$banner_image": "realms_common.dark_banner"
},
"banner_panel_hover@banner_panel_base": {
"$banner_image": "realms_common.dark_banner_hover"
},
"realm_invite_button@realms_common.new_ui_content_button": {
"anchor_to": "top_right",
"anchor_from": "top_right",
"size": [ "100%y", "100%" ],
"bindings": [
{
"binding_type": "collection_details",
"binding_collection_name": "pending_invites_collection"
},
{
"binding_name": "#response_buttons_visible",
"binding_name_override": "#visible",
"binding_type": "collection",
"binding_collection_name": "pending_invites_collection"
}
]
},
//---------------------------------------------------------------------------
// Gamertag Grid
//---------------------------------------------------------------------------
/*"realm_screenshot": {
"type": "panel",
"controls": [
{ "@realms_common.legacy_banner": { } },
{
"realm_screenshot_texture": {
"type": "image",
"texture": "gui/newgui/WorldDemoScreen.png",
"layer": 5,
"anchor_to": "center",
"anchor_from": "center",
"size": [ "100% - 2px", "100% - 2px" ]
}
}
]
},/**/
"realm_name_label@realms_pending_invitations.panel_text": {
"text": "#realm_name",
"alignment": "left_middle",
"clip": true,
"bindings": [
{
"binding_name": "#realm_name",
"binding_type": "collection",
"binding_collection_name": "pending_invites_collection"
}
]
},
"realm_owner_label@realms_pending_invitations.panel_text": {
"text": "#realm_owner",
"alignment": "left_middle",
"clip": true,
"color": [ 0.65, 0.65, 0.65 ],
"bindings": [
{
"binding_name": "#realm_owner",
"binding_type": "collection",
"binding_collection_name": "pending_invites_collection"
}
]
},
"gamertag_item_info": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"layer": 4,
"size": [ "100% - 200%y - 2px", "100%" ],
"bindings": [
{
"binding_type": "collection_details",
"binding_collection_name": "pending_invites_collection"
}
],
"controls": [
/*{
"ss@realms_pending_invitations.realm_screenshot": {
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"size": [ "160%y", "100%" ]
}
},
{
"text_area": {
"type": "panel",
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"size": [ "100% - 160%y", "100%" ],
"offset": [ "160%y", 0 ],
"controls": [/**/
{
"rnl@realms_pending_invitations.realm_name_label": {
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ "100% - 2px", "50%" ],
"offset": [ 2, 0.5 ]
}
},
{
"rol@realms_pending_invitations.realm_owner_label": {
"anchor_from": "bottom_left",
"anchor_to": "bottom_left",
"size": [ "100% - 2px", "50%" ],
"offset": [ 2, 0.5 ]
}
}
/*]
}
}/**/
]
},
"accept_button_content": {
"type": "image",
"texture": "gui/newgui/realms_green_check.png",
"anchor_to": "center",
"anchor_from": "center",
//"layer": 6,
"size": [ 15, 12 ]
},
"decline_button_content": {
"type": "image",
"texture": "gui/newgui/realms_red_x.png",
"anchor_to": "center",
"anchor_from": "center",
//"layer": 6,
"size": [ 12, 12 ]
},
"realm_accept_button@realms_pending_invitations.realm_invite_button": {
"$button_content": "realms_pending_invitations.accept_button_content",
"offset": [ "-100%y - 1px", 0 ],
"layer": 2,
"debug": "green",
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "button.realm_invitation_accept",
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_ok",
"to_button_id": "button.realm_invitation_accept",
"mapping_type": "focused"
}
]
},
"realm_decline_button@realms_pending_invitations.realm_invite_button": {
"$button_content": "realms_pending_invitations.decline_button_content",
"layer": 2,
"debug": "red",
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "button.realm_invitation_decline",
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_ok",
"to_button_id": "button.realm_invitation_decline",
"mapping_type": "focused"
}
]
},
"realm_accepted_panel@realms_pending_invitations.panel_text": {
"text": "#invite_status",
"anchor_to": "top_right",
"anchor_from": "top_right",
"size": [ "200%y + 1px", "100%" ],
"offset": [ 0, 0.5 ],
"color": [ 0.65, 0.65, 0.65 ],
"alignment": "right_middle",
"layer": 5,
"bindings": [
{
"binding_type": "collection_details",
"binding_collection_name": "pending_invites_collection"
},
{
"binding_name": "#accept_panel_visible",
"binding_name_override": "#visible",
"binding_type": "collection",
"binding_collection_name": "pending_invites_collection"
},
{
"binding_name": "#invite_status",
"binding_type": "collection",
"binding_collection_name": "pending_invites_collection"
}
]
},
"gamertag_item_content": {
"type": "panel",
"controls": [
{ "lb@realms_pending_invitations.gamertag_item_info": { } },
{ "a@realms_pending_invitations.realm_accept_button": { } },
{ "d@realms_pending_invitations.realm_decline_button": { } },
{ "ap@realms_pending_invitations.realm_accepted_panel": { } }
]
},
"gamertag_item@realms_pending_invitations.banner_panel": {
"$child_control": "realms_pending_invitations.gamertag_item_content"
},
"gamertag_item_grid": {
"type": "grid",
"grid_item_template": "realms_pending_invitations.gamertag_item",
"grid_dimension_binding": "#gamertag_item_grid_dimension",
"collection_name": "pending_invites_collection",
"anchor_to": "top_left",
"anchor_from": "top_left",
"size": [ "100%", "default" ],
"bindings": [
{
"binding_name": "#gamertag_item_grid_dimension",
"binding_type": "global"
}
]
},
// -----------------------------------------------
//
// toggle
//
// -----------------------------------------------
"show_friends_only_toggle_state_content": {
"type": "panel",
"anchor_from": "top_right",
"anchor_to": "top_right",
"layer": 3,
"controls": [
{
"checkbox_holding_panel": {
"type": "panel",
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"size": [ "100%y", "100%" ],
"controls": [
{
"hide_invites@$toggle_image": {
"anchor_from": "center",
"anchor_to": "center"
}
}
]
}
},
{
"hide_invites_text@realms_pending_invitations.panel_text": {
"size": [ "100% - 100%y - 8px", "100%" ],
"offset": [ "100%y + 2px", 0.5 ],
"wrap": true,
"color": "$toggle_text_color",
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"alignment": "left_middle",
"text": "realmsPendingInvitationsScreen.showFriendInvites"
}
}
]
},
"show_friends_only_toggle_on_state_content@realms_pending_invitations.show_friends_only_toggle_state_content": {
"$toggle_image": "realms_common.toggle_on_state",
"$toggle_text_color": [ 1.0, 1.0, 1.0, 1.0 ]
},
"show_friends_only_toggle_on_state@realms_pending_invitations.banner_panel": {
"$child_control": "realms_pending_invitations.show_friends_only_toggle_on_state_content"
},
"show_friends_only_toggle_off_state_content@realms_pending_invitations.show_friends_only_toggle_state_content": {
"$toggle_image": "realms_common.toggle_off_state",
"$toggle_text_color": [ 1.0, 1.0, 1.0, 1.0 ]
},
"show_friends_only_toggle_off_state@realms_pending_invitations.banner_panel": {
"$child_control": "realms_pending_invitations.show_friends_only_toggle_off_state_content"
},
"show_friends_only_toggle_on_hover_state_content@realms_pending_invitations.show_friends_only_toggle_state_content": {
"$toggle_image": "realms_common.toggle_on_hover_state",
"$toggle_text_color": [ 1.0, 1.0, 0.0, 1.0 ]
},
"show_friends_only_toggle_on_hover_state@realms_pending_invitations.banner_panel_hover": {
"$child_control": "realms_pending_invitations.show_friends_only_toggle_on_hover_state_content"
},
"show_friends_only_toggle_off_hover_state_content@realms_pending_invitations.show_friends_only_toggle_state_content": {
"$toggle_image": "realms_common.toggle_off_hover_state",
"$toggle_text_color": [ 1.0, 1.0, 0.0, 1.0 ]
},
"show_friends_only_toggle_off_hover_state@realms_pending_invitations.banner_panel_hover": {
"$child_control": "realms_pending_invitations.show_friends_only_toggle_off_hover_state_content"
},
"show_friends_only_toggle_on_locked_state_content@realms_pending_invitations.show_friends_only_toggle_state_content": {
"$toggle_image": "realms_common.toggle_on_locked_state",
"$toggle_text_color": [ 0.5, 0.5, 0.5, 0.5 ]
},
"show_friends_only_toggle_on_locked_state@realms_pending_invitations.banner_panel": {
"$child_control": "realms_pending_invitations.show_friends_only_toggle_on_locked_state_content"
},
"show_friends_only_toggle_off_locked_state_content@realms_pending_invitations.show_friends_only_toggle_state_content": {
"$toggle_image": "realms_common.toggle_off_locked_state",
"$toggle_text_color": [ 0.5, 0.5, 0.5, 0.5 ]
},
"show_friends_only_toggle_off_locked_state@realms_pending_invitations.banner_panel": {
"$child_control": "realms_pending_invitations.show_friends_only_toggle_off_locked_state_content"
},
"show_friends_only_toggle@common.toggle": {
"size": ["100%","100%c"],
"$toggle_name": "#hide_invites",
"$toggle_state_binding_name": "#invite_toggle_state",
"$unchecked_control": "realms_pending_invitations.show_friends_only_toggle_off_state",
"$checked_control": "realms_pending_invitations.show_friends_only_toggle_on_state",
"$unchecked_hover_control": "realms_pending_invitations.show_friends_only_toggle_off_hover_state",
"$checked_hover_control": "realms_pending_invitations.show_friends_only_toggle_on_hover_state",
"$unchecked_locked_control": "realms_pending_invitations.show_friends_only_toggle_off_locked_state",
"$checked_locked_control": "realms_pending_invitations.show_friends_only_toggle_on_locked_state"
},
// -----------------------------------------------
//
// screen
//
// -----------------------------------------------
"gamepad_helpers": {
"type": "panel",
"layer": 2,
"size": [ "100%", 16 ],
"anchor_from": "bottom_middle",
"anchor_to": "bottom_middle",
"controls": [
{
"a@common.gamepad_helper_a": {
"size": [ 35, "100%" ],
"offset": [ 0, 0 ],
"anchor_from": "bottom_left",
"anchor_to": "bottom_left"
}
},
{
"b@common.gamepad_helper_b": {
"size": [ 35, "100%" ],
"offset": [ -35, 0 ],
"anchor_from": "bottom_right",
"anchor_to": "bottom_right"
}
}
]
},
"no_invites_label@realms_pending_invitations.panel_text": {
"text": "realmsPendingInvitationsScreen.noInvites",
"wrap": true,
"size": [ "100%", 26 ],
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"bindings": [
{
"binding_name": "#no_invites_visible",
"binding_name_override": "#visible",
"binding_type": "global"
}
]
},
"realms_pending_invitation_list": {
"type": "stack_panel",
"orientation": "vertical",
"anchor_to": "top_left",
"anchor_from": "top_left",
"controls": [
{
"upper_padding": {
"type": "panel",
"size": [ "100%" , 1 ]
}
},
{ "sfop@realms_pending_invitations.show_friends_only_toggle": { } },
{ "gig@realms_pending_invitations.gamertag_item_grid": { } },
{
"lower_padding": {
"type": "panel",
"size": [ "100%", 2 ]
}
},
{ "nil@no_invites_label": { } }
]
},
"content_panel@common.scrolling_panel": {
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"$show_background": false,
"$scrolling_pane_size": [ "100% - 1px", "100%" ],
"$scrolling_content": "realms_pending_invitations.realms_pending_invitation_list",
"$scroll_track_size": [ 3, "100% - 4px" ],
"$scroll_track_offset": [ -2, 2 ],
"$scroll_box_size": [ 5, "100% - 4px" ],
"$scroll_box_offset": [ -1, 2 ]
},
"realms_pending_invitations_screen@common.base_screen": {
"button_mappings": [
{
"from_button_id": "button.menu_cancel",
"to_button_id": "button.menu_exit",
"mapping_type": "global"
},
{
"from_button_id": "button.menu_up",
"to_button_id": "button.menu_up",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_down",
"to_button_id": "button.menu_down",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_left",
"to_button_id": "button.menu_left",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_right",
"to_button_id": "button.menu_right",
"mapping_type": "global",
"scope": "view"
}
],
"$screen_content": "realms_pending_invitations.realms_invitation_screen_content"
},
"realms_invitation_screen_content": {
"type": "panel",
"controls": [
{
"root_panel": {
"type": "input_panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"controls": [
{
"main_panel@realms_common.main_panel_no_bottom": {
"size": "$narrow_screen_size",
"offset": [ 0, 0 ],
"$text_name": "realmsPendingInvitationsScreen.pendingInvitations",
"$child_control": "realms_pending_invitations.content_panel"
}
},
{ "sgh@realms_pending_invitations.gamepad_helpers": { } }
]
}
}
]
}
}
+331
View File
@@ -0,0 +1,331 @@
/********************************************************
+* (c) Mojang. All rights reserved *
+* (c) Microsoft. All rights reserved. *
+*********************************************************/
{
"namespace": "realms_settings",
"settings_screen@settings_common.screen_base": {
"$selector_stack_panel": "realms_settings.selector_panel",
"$section_content_panels": "realms_settings.section_content_panels"
},
"generic_section_button@settings_common.section_toggle_base": {
"$button_label_text": "$section_title",
"property_bag": {
"#panel_title": "$section_title"
}
},
"generic_section_button_wrapper": {
"type": "panel",
"size": [ "100%", "100%c - 1px" ],
"$glyph_uv|default": [ 0, 13 ],
"$section_title|default": "button text",
"controls": [
{ "$section_title@generic_section_button": { } }
],
"bindings": [
{
"binding_type": "view",
"source_control_name": "$section_title",
"source_property_name": "#toggle_state",
"target_property_name": "#toggle_visible"
}
]
},
"generic_section": {
"type": "stack_panel",
"size": [ "100%", "100%c" ],
"anchor_from": "top_left",
"anchor_to": "top_left",
"bindings": [
{
"binding_type": "view",
"source_control_name": "$section_button_name",
"source_property_name": "#toggle_visible",
"target_property_name": "#visible"
}
],
"controls": [
{ "$section_content_name@$section_content_name": { } }
]
},
"generic_section_wrapper": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"offset": [ 2, 0 ],
"size": [ "100% - 4px", "100%c" ],
"$section_button_name|default": "name of selection toggle button",
"$section_content_name|default": "name of class defining the content",
"controls": [
{ "@generic_section": { } }
]
},
// Subscription content
"player_count_label@settings_common.option_info_label": {
"$option_label": "realmsSettingsScreen.playerCountLabel",
"$container_size": [ "100%", "30px" ],
"$container_text_binding_name": "#realm_player_count"
},
"realm_duration_label@settings_common.option_info_label": {
"$option_label": "realmsSettingsScreen.realmDurationLabel",
"$container_size": [ "100%", "30px" ],
"$container_text_binding_name": "#realm_duration_label"
},
"realm_subscription_origin_label@settings_common.option_info_label": {
"$container_size": [ "100%", "60px" ],
"$container_text_binding_name": "#realm_subscription_origin",
"$show_option_label": false,
"bindings": [
{
"binding_name": "#realm_subscription_origin_visibility",
"binding_name_override": "#visible"
}
]
},
"manage_subscription_button@settings_common.action_button": {
"$button_label_text": "realmsSettingsScreen.manageSubscriptionButton",
"$pressed_button_name": "menu_realms_manage_subscription",
"bindings": [
{
"binding_name": "#manage_subscription_button_visible",
"binding_name_override": "#visible"
}
]
},
"extend_consumable_button@settings_common.action_button": {
"bindings": [
{
"binding_name": "#extend_consumable_button_visible",
"binding_name_override": "#visible"
}
]
},
"extend_consumable_30_days@extend_consumable_button": {
"$button_label_text": "realmsSettingsScreen.extendConsumableButton.30",
"$pressed_button_name": "menu_realms_extend_consumable_30"
},
"extend_consumable_180_days@extend_consumable_button": {
"$button_label_text": "realmsSettingsScreen.extendConsumableButton.180",
"$pressed_button_name": "menu_realms_extend_consumable_180"
},
"open_realm_button@settings_common.action_button": {
"$button_label_text": "realmsSettingsScreen.openRealmButton",
"$pressed_button_name": "menu_open_realm",
"bindings": [
{
"binding_name": "#open_realm_button_visible",
"binding_name_override": "#visible"
}
]
},
"close_realm_button@settings_common.action_button": {
"$button_label_text": "realmsSettingsScreen.closeRealmButton",
"$pressed_button_name": "menu_close_realm",
"bindings": [
{
"binding_name": "#close_realm_button_visible",
"binding_name_override": "#visible"
}
]
},
"subscriptions_section": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ "100%", "100%c" ],
"controls": [
{
"loading_view": {
"type": "label",
"alignment": "top_middle",
"size": [ "100%", "80px" ],
"offset": [ 0, 10 ],
"text": "realmsSettingsScreen.LoadingSubscription",
"bindings": [
{
"binding_name": "#realms_subscription_loading_message_visible",
"binding_name_override": "#visible"
}
]
}
},
{
"loaded_view": {
"type": "stack_panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"controls": [
{ "@player_count_label": { } },
{ "@realm_duration_label": { } },
{ "@realm_subscription_origin_label": { } },
{ "@manage_subscription_button": { } },
{ "@extend_consumable_30_days": { } },
{ "@extend_consumable_180_days": { } },
{
"": {
"type": "panel",
"size": [ 0, 5 ]
}
},
{ "@open_realm_button": { } },
{ "@close_realm_button": { } },
{
"": {
"type": "panel",
"size": [ 0, 2 ]
}
}
],
"bindings": [
{
"binding_name": "#realms_subscription_info_visible",
"binding_name_override": "#visible"
}
]
}
}
]
},
// test content
"test_content": {
"type": "panel",
"controls": [
{ "@realms_invitation.realms_invitation_content_panel": { "layer": 1 } },
{ "@realms_invitation.gamepad_helpers": { } }
]
},
// Left side
"selector_panel": {
"type": "stack_panel",
"orientation": "vertical",
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ "100%", "100%" ],
"$default_selector_toggle_index": 1,
"controls": [
{
"play_button@settings_common.action_button": {
"$button_label_text": "realmsSettingsScreen.playRealmButton",
"$pressed_button_name": "play_world_button",
"size": [ "100%", "30px" ],
"bindings": [
{
"binding_name": "#play_button_visible",
"binding_name_override": "#visible"
}
]
}
},
{
"disabled_play_button@settings_common.action_button": {
"$button_label_text": "realmsSettingsScreen.playDisabledRealmButton",
"$pressed_button_name": "play_world_button",
"size": [ "100%", "30px" ],
"bindings": [
{
"binding_name": "#disabled_play_button_visible",
"binding_name_override": "#visible"
},
{
"binding_name": "#play_button_visible", // a hack: you cannot set "enabled":false directly on a ui control
"binding_name_override": "#enabled"
}
]
}
},
{
"expired_play_button@settings_common.action_button": {
"$button_label_text": "realmsSettingsScreen.playExpiredRealmButton",
"$pressed_button_name": "play_world_button",
"size": [ "100%", "30px" ],
"bindings": [
{
"binding_name": "#is_realm_expired",
"binding_name_override": "#visible"
},
{
"binding_name": "#play_button_visible", // a hack: you cannot set "enabled":false directly on a ui control
"binding_name_override": "#enabled"
}
]
}
},
{
"@settings_common.selector_group_label": {
"offset": [ 2, 0 ],
"text": "realmsSettingsScreen.selectorSectionLabel"
}
},
{
"world_button@generic_section_button_wrapper": {
"$toggle_group_forced_index": 1,
"$section_title": "realmsSettingsScreen.worldSectionTitle",
"$glyph_uv": [ 75, 13 ]
}
},
{
"players_button@generic_section_button_wrapper": {
"$toggle_group_forced_index": 2,
"$section_title": "realmsSettingsScreen.playersSectionTitle",
"$glyph_uv": [ 50, 13 ]
}
},
{
"subscription_button@generic_section_button_wrapper": {
"$toggle_group_forced_index": 3,
"$section_title": "realmsSettingsScreen.subscriptionSectionTitle",
"$glyph_uv": [ 25, 13 ]
}
}
]
},
// right side
"section_content_panels": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ "100%", "100%c" ],
"controls": [
{
"world_section@generic_section_wrapper": {
"$section_button_name|default": "world_button",
"$section_content_name|default": "realms_world_section.panel_content"
}
},
{
"players_section@generic_section_wrapper": {
"$section_button_name|default": "players_button",
"$section_content_name|default": "realms_invitation.friends_panel",
"$friend_panel_size": [ "100%", "100%c" ]
}
},
{
"subscription_section@generic_section_wrapper": {
"$section_button_name|default": "subscription_button",
"$section_content_name|default": "subscriptions_section"
}
}
]
}
}
+147
View File
@@ -0,0 +1,147 @@
{
"namespace": "redstone",
//---------------------------------------------------------------------------
// Screens
//---------------------------------------------------------------------------
"item_dropper_label": {
"type": "label",
"size": [ 1, 1 ],
"offset": [ 0, 10 ],
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"alignment": "center",
"color": [ 0.25, 0.25, 0.25, 1.0 ],
"layer": 2
},
"dispenser_label@item_dropper_label": {
"text": "container.dispenser"
},
"dropper_label@item_dropper_label": {
"text": "container.dropper"
},
"hopper_label@item_dropper_label": {
"offset": [ 7, 7 ],
"text": "container.hopper",
"anchor_from": "top_left",
"anchor_to": "top_left",
"alignment": "top_left"
},
"redstone_input_grid": {
"type": "grid",
"anchor_from": "center",
"anchor_to": "center",
"offset": "$grid_offset",
"grid_dimensions": "$grid_dimensions",
"collection_name": "container_items",
"grid_item_template": "common.container_item",
"$item_collection_name": "container_items"
},
"redstone_panel_top_half": {
"type": "panel",
"size": [ "100%", "50% - 12px" ],
"offset": [ 0, 7 ],
"anchor_to": "top_left",
"anchor_from": "top_left",
"controls": [
{ "@redstone_input_grid": { } }
]
},
"panel": {
"type": "panel",
"controls": [
{ "@common.container_gamepad_helpers": { } },
{ "bg@common.screen_background": { } },
{
"root_panel@common.root_panel": {
"layer": 1,
"size": "$screen_dimensions",
"controls": [
{ "input_panel@common.input_panel": { } },
{ "common_panel@common.common_panel": { } },
{
"redstone_screen_inventory": {
"type": "panel",
"layer": 5,
"controls": [
{ "red_panel@redstone.redstone_panel_top_half": { } },
{ "red_bottom_half@common.inventory_panel_bottom_half_with_label": { } },
{ "hotbar_grid@common.hotbar_grid_template": { } },
{ "red_hold_icon@common.inventory_take_progress_icon_button": { } }
]
}
},
{ "red_icon@common.inventory_selected_icon_button": { } },
{ "@$screen_label": { } }
]
}
}
]
},
"hopper_screen@common.inventory_screen_common": {
"variables": [
{
"requires": "$desktop_screen",
"$screen_label": "redstone.hopper_label",
"$screen_dimensions": [ 176, 133 ],
"$grid_dimensions": [ 5, 1 ],
"$grid_offset": [ 0, -7 ],
"$visible_screen": "redstone.panel"
},
{
"requires": "$pocket_screen",
"$visible_screen": "pocket_redstone.hopper_panel"
}
],
"controls": [
{ "screen@$visible_screen": { } }
]
},
"dispenser_screen@common.inventory_screen_common": {
"variables": [
{
"requires": "$desktop_screen",
"$screen_label": "redstone.dispenser_label",
"$screen_dimensions": [ 176, 166 ],
"$grid_dimensions": [ 3, 3 ],
"$grid_offset": [ 0, 0 ],
"$visible_screen": "redstone.panel"
},
{
"requires": "$pocket_screen",
"$visible_screen": "pocket_redstone.dispenser_panel"
}
],
"controls": [
{ "screen@$visible_screen": { } }
]
},
"dropper_screen@common.inventory_screen_common": {
"variables": [
{
"requires": "$desktop_screen",
"$screen_label": "redstone.dropper_label",
"$screen_dimensions": [ 176, 166 ],
"$grid_dimensions": [ 3, 3 ],
"$grid_offset": [ 0, 0 ],
"$visible_screen": "redstone.panel"
},
{
"requires": "$pocket_screen",
"$visible_screen": "pocket_redstone.dropper_panel"
}
],
"controls": [
{ "screen@$visible_screen": { } }
]
}
}
+472
View File
@@ -0,0 +1,472 @@
{
"namespace": "resource_pack_purchase",
//--------------------------------------------------------------------------------
// Popup Dialog
//--------------------------------------------------------------------------------
"popup_dialog_base@popup_dialog.popup_dialog": {
"$middle_button_press": "button.close_dialog",
"$middle_button_text": "skins.buy.closeButton",
"controls": [
{ "@popup_dialog.popup_dialog_bg": { } },
{ "@popup_dialog.popup_dialog_message": { } },
{ "@popup_dialog.popup_dialog_middle_button": { } }
]
},
"popup_dialog__no_connection@popup_dialog_base": {
"$message_text": "skins.buy.noConnection"
},
"popup_dialog__purchase_failed@popup_dialog_base": {
"$message_text": "skins.buy.purchaseFailed"
},
"popup_dialog__purchase_in_progress@popup_dialog_base": {
"$message_text": "skins.buy.waitingForPurchase",
"controls": [
{ "@popup_dialog.popup_dialog_bg": { } },
{
"@popup_dialog.popup_dialog_message": {
"size": [ "90%", "100%" ]
}
}
]
},
//--------------------------------------------------------------------------------
// Common Controls
//--------------------------------------------------------------------------------
"banner_fill": {
"type": "image",
"texture": "gui/newgui/Banners.png",
"uv": [ 0, 0 ],
"uv_size": [ 4, 4 ],
"nineslice_size": 1
},
"banner_empty": {
"type": "image",
"texture": "gui/newgui/BannersTransparent.png",
"uv": [ 0, 0 ],
"uv_size": [ 4, 4 ],
"nineslice_size": 1
},
"title_label": {
"type": "label",
"size": [ "100%", "14px" ],
"anchor_from": "top_left",
"anchor_to": "top_left",
"alignment": "center",
"color": [ 0.3, 0.3, 0.3 ]
},
"label": {
"type": "label",
"anchor_from": "center",
"anchor_to": "center",
"offset": [ 0, 0 ],
"color": "white"
},
"bound_label@label": {
"type": "label",
"layer": 6,
"size": [ "100%", "100%" ],
"anchor_from": "center",
"anchor_to": "center",
"color": [ 0.3, 0.3, 0.3 ],
"offset": "$button_text_offset",
"text": "$bound_text",
"bindings": [
{
"binding_type": "global",
"binding_name": "$bound_text"
}
]
},
"button_image": {
"$button_text|default": "",
"$button_text_offset|default": [ 0, 0 ],
"type": "image",
"nineslice_size": 2,
"uv": [ 0, 0 ],
"uv_size": [ 6, 6 ],
"controls": [
{
"button_label": {
"type": "label",
"layer": 6,
"size": [ "100%", "100%" ],
"anchor_from": "center",
"anchor_to": "center",
"color": [ 0.3, 0.3, 0.3 ],
"offset": "$button_text_offset",
"text": "$button_text"
}
}
]
},
"button_image_with_bound_label@button_image": {
"controls": [
{
"button_label@bound_label": {
"$bound_text": "$button_text"
}
}
]
},
"button@common.button": {
"$pressed_button_name": "button.choose_custom_skin",
"offset": [ 0, 0 ],
"controls": [
{
"default@resource_pack_purchase.button_image_with_bound_label": {
"texture": "gui/newgui/ButtonWithBorder.png"
}
},
{
"hover@resource_pack_purchase.button_image_with_bound_label": {
"texture": "gui/newgui/ButtonWithBorderHover.png"
}
},
{
"pressed@resource_pack_purchase.button_image_with_bound_label": {
"texture": "gui/newgui/ButtonWithBorderPressed.png",
"$button_text_offset": [ 0, 1 ]
}
}
]
},
//--------------------------------------------------------------------------------
// Content
//--------------------------------------------------------------------------------
"screenshots_grid_item": {
"type": "panel",
"size": [ "100%", "58%x" ],
"anchor_from": "center",
"anchor_to": "center",
"controls": [
{
"frame@banner_empty": {
"size": [ "100% - 4px", "100% - 2px" ],
"layer": 3,
"controls": [
{
"screenshot_image": {
"type": "image",
"layer": -1,
"size": [ "100% - 2px", "100% - 2px" ],
"bindings": [
{
"binding_type": "collection",
"binding_collection_name": "screenshots_collection",
"binding_name": "#screenshot_texture_name",
"binding_name_override": "#texture"
},
{
"binding_type": "collection",
"binding_collection_name": "screenshots_collection",
"binding_name": "#screenshot_texture_file_system",
"binding_name_override": "#texture_file_system"
}
]
}
},
{
"screenshot_button@common.button": {
"layer": 4,
"size": [ "100% + 1px", "100% + 1px" ],
"focus_enabled": true,
"default_control": "",
"hover_control": "hover",
"pressed_control": "pressed",
"bindings": [
{
"binding_type": "collection_details",
"binding_collection_name": "screenshots_collection"
}
],
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "button.select_screenshot",
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_ok",
"to_button_id": "button.select_screenshot",
"mapping_type": "pressed"
}
],
"controls": [
{
"hover@common.focus_border_white": {
}
},
{
"pressed@common.focus_border_white": {
}
}
]
}
}
]
}
}
]
},
"screenshots_grid": {
"type": "grid",
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ "100%", "100%c" ],
"offset": [ 0, 0 ],
"grid_item_template": "resource_pack_purchase.screenshots_grid_item",
"grid_dimension_binding": "#screenshots_grid_dimensions",
"collection_name": "screenshots_collection",
"bindings": [
{
"binding_name": "#screenshots_grid_dimensions"
}
]
},
"pack_screenshots_panel": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ "20% - 7px", "100% - 8px" ],
"offset": [ 8, 4 ],
"controls": [
{
"framed": {
"type": "input_panel",
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"offset": [ 0, 14 ],
"size": [ "100%", "100%-13px" ],
"controls": [
{
"screenshots_scroll@common.scrolling_panel": {
"$scrolling_pane_size": [ "100%", "100%" ],
"$scrolling_pane_offset": [ 0, 0 ],
"$scroll_track_offset": [ -1, 0 ],
"$scrolling_content": "resource_pack_purchase.screenshots_grid",
"$show_background": false,
"$bar_visible": false
}
}
]
}
}
]
},
"key_image_frame@banner_empty": {
"anchor_from": "center",
"anchor_to": "center",
"offset": [ 0, 0 ],
"size": [ "100%", "100%-2px" ],
"layer": 1,
"controls": [
{
"zoomed": {
"type": "image",
"layer": -1,
"size": [ "177%y - 2px", "100% - 2px" ],
"bindings": [
{
"binding_name": "#zoomed_texture_name",
"binding_name_override": "#texture"
},
{
"binding_name": "#zoomed_texture_file_system",
"binding_name_override": "#texture_file_system"
}
]
}
}
]
},
"pack_main_panel": {
"type": "panel",
"anchor_from": "top_right",
"anchor_to": "top_right",
"size": [ "80% - 10px", "100% - 1px" ],
"offset": [ -6, 1 ],
"controls": [
{
"title@title_label": {
"text": "$pack_name"
}
},
{
"content": {
"type": "panel",
"anchor_from": "bottom_middle",
"anchor_to": "bottom_middle",
"clips_children": true,
"size": [ "100% - 8px", "100% - 22px" ],
"offset": [ 0, -4 ],
"controls": [
{
"key_image_panel": {
"type": "panel",
"size": [ "100%", "100% - 27px" ],
"anchor_from": "top_left",
"anchor_to": "top_left",
"controls": [
{ "key_image@key_image_frame": { } }
]
}
},
{
"unlock_button@button": {
"ignored": "$offer_unlocked",
"$button_text": "#unlock_text",
"$pressed_button_name": "button.buy_pack",
"anchor_from": "bottom_left",
"anchor_to": "bottom_left",
"layer": 10,
"size": [ "100%", 26 ],
"offset": [ 0, -1 ],
"visible": "#unlock_button_visible",
"bindings": [
{
"binding_name": "#unlock_button_visible",
"binding_name_override": "#visible"
}
]
}
},
{
"try_button@button": {
"ignored": true, // feature diabled for now
"$button_text": "store.resource.try",
"$pressed_button_name": "button.try_pack",
"anchor_from": "bottom_right",
"anchor_to": "bottom_right",
"size": [ "50% - 2px", 26 ]
}
},
{
"create_world_button@button": {
"$button_text": "store.resource.create",
"$pressed_button_name": "button.create_world",
"anchor_from": "bottom_left",
"anchor_to": "bottom_left",
"size": [ "100%", 26 ],
"offset": [ 0, -1 ],
"visible": "#create_world_button_visible",
"bindings": [
{
"binding_name": "#create_world_button_visible",
"binding_name_override": "#visible"
}
]
}
}
]
}
}
]
},
//--------------------------------------------------------------------------------
// Root Controls
//--------------------------------------------------------------------------------
"content": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ "100%", "100% - 10px" ],
"offset": [ 0, 5 ],
"controls": [
{ "@pack_screenshots_panel": { } },
{ "@pack_main_panel": { } }
]
},
"resource_pack_purchase@common.base_screen": {
"button_mappings": [
{
"from_button_id": "button.menu_cancel",
"to_button_id": "button.menu_exit",
"mapping_type": "global"
},
{
"from_button_id": "button.menu_up",
"to_button_id": "button.menu_up",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_down",
"to_button_id": "button.menu_down",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_left",
"to_button_id": "button.menu_left",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_right",
"to_button_id": "button.menu_right",
"mapping_type": "global",
"scope": "view"
}
],
"$default_text_color": [ 0.3, 0.3, 0.3 ],
"$screen_content": "resource_pack_purchase.resource_pack_purchase_screen_content"
},
"resource_pack_purchase_screen_content": {
"type": "panel",
"controls": [
{
"bg@common.common_panel": {
"size": "$store_screen_size",
"$dialog_background": "dialog_background_hollow_3",
"$divider_offset": [ "20%+1px", "22px" ],
"$show_divider": true,
"$show_close_button": true
}
},
{
"container": {
"type": "panel",
"size": "$store_screen_size",
"layer": 1,
"controls": [
{ "@resource_pack_purchase.content": { } }
]
}
},
{
"popup_dialog_factory": {
"type": "factory",
"control_ids": {
"no_connection": "@resource_pack_purchase.popup_dialog__no_connection",
"purchase_failed": "@resource_pack_purchase.popup_dialog__purchase_failed",
"purchase_in_progress": "@skin_pack_purchase.popup_dialog__purchase_in_progress"
}
}
}
]
}
}
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,150 @@
/********************************************************
+* (c) Mojang. All rights reserved *
+* (c) Microsoft. All rights reserved. *
+*********************************************************/
{
"namespace": "realms_world_section",
"realm_name_edit@settings_common.option_text_edit": {
"$option_label": "realmsSettingsScreen.realmNameLabel",
"$option_binding_name": "#realm_name",
"$option_place_holder_text": "realmsSettingsScreen.realmNameEditPlaceholder",
"$text_box_name": "realm_name_text_box",
"$allow_data_binding": true,
"$max_text_edit_length": 30
},
"reset_world_button@settings_common.action_button": {
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"$button_label_text": "realmsSettingsScreen.resetWorldButton",
"$pressed_button_name": "menu_reset_world",
"bindings": [
{
"binding_name": "#reset_button_enabled",
"binding_name_override": "#enabled"
}
]
},
"difficulty_slider@settings_common.option_slider": {
"$slider_steps": 4,
"$option_label": "#difficulty_slider_label",
"$slider_name": "world_difficulty",
"$slider_value_binding_name": "#world_difficulty",
"$label_bindings":
[
{
"binding_name": "#difficulty_slider_label"
}
]
},
"radio_visuals_unchecked@radio_visuals": {
"$toggle_visual": "common.radio_toggle_unchecked_state"
},
"radio_visuals_checked@radio_visuals": {
"$toggle_visual": "common.radio_toggle_checked_state"
},
"radio_visuals_unchecked_hover@radio_visuals": {
"$toggle_visual": "common.radio_toggle_unchecked_hover_state"
},
"radio_visuals_checked_hover@radio_visuals": {
"$toggle_visual": "common.radio_toggle_checked_hover_state"
},
"radio_visuals": {
"type": "panel",
"size": [ "100%", 20 ],
"controls": [
{
"@$toggle_visual": {
"anchor_from": "top_left",
"anchor_to": "top_left"
}
},
{
"": {
"type": "label",
"alignment": "left_middle",
"text": "$radio_label_text",
"offset": [ 18, -1.5 ]
}
}
]
},
"radio_with_label_core@common.radio_toggle": {
"$unchecked_control": "realms_world_section.radio_visuals_unchecked",
"$checked_control": "realms_world_section.radio_visuals_checked",
"$unchecked_hover_control": "realms_world_section.radio_visuals_unchecked_hover",
"$checked_hover_control": "realms_world_section.radio_visuals_checked_hover",
"$radio_toggle_group": true,
"size": [ "100%", "100%c" ],
"$toggle_name": "$toggle_state_binding_name"
},
"radio_with_label": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ "100%", "17px" ],
"offset": [3, 0],
"controls": [
{ "@radio_with_label_core": { } }
]
},
"game_mode_radio_group": {
"type": "stack_panel",
"size": [ "100px", "100%c" ],
"controls": [
{
"@radio_with_label": {
"$toggle_state_binding_name": "#game_mode_radio_0",
"$radio_label_text": "realmsSettingsScreen.survivalRadioButton"
}
},
{
"@radio_with_label": {
"$toggle_state_binding_name": "#game_mode_radio_1",
"$radio_label_text": "realmsSettingsScreen.creativeRadioButton"
}
}
]
},
"game_mode_chooser@settings_common.option_custom_control": {
"$option_label": "realmsSettingsScreen.gameModeOptionLabel",
"$control_name": "realms_world_section.game_mode_radio_group"
},
"panel_content": {
"type": "stack_panel",
"controls": [
{ "realm_name_edit@realm_name_edit": { } },
{ "difficulty_slider@difficulty_slider": { } },
{ "game_mode_chooser@game_mode_chooser": { } },
{
"reset_label": {
"type": "label",
"alignment": "left_middle",
"text": "realmsSettingsScreen.resetButtonHelperLabel",
"size": [ "100%", "20px" ]
}
},
{ "reset_world_button@reset_world_button": { } },
{
"padding": {
"type": "panel",
"size": [ "100%", 2 ]
}
}
]
}
}
@@ -0,0 +1,398 @@
/********************************************************
+* (c) Mojang. All rights reserved *
+* (c) Microsoft. All rights reserved. *
+*********************************************************/
{
"namespace": "settings_common",
"action_button@common.new_button": {
"$pressed_button_name": "unset_button_name",
"$button_label_text": "unset $button_text",
"size": [ "100%", 30 ],
"anchor_from": "center",
"anchor_to": "center"
},
"option_generic": {
"$allow_data_binding|default": true,
"$enabled|default": true,
"$option_label|default": "",
"$show_option_label|default": true,
"$label_bindings|default": [ ],
"type": "stack_panel",
"size": [ "100%", "100%c" ],
"controls": [
{
"": {
"type": "label",
"clip": true,
"size": [ "100%", "16px" ],
"layer": 1,
"alignment": "left_middle",
"text": "$option_label",
"visible": "$show_option_label",
"bindings": "$label_bindings"
}
},
{
"$control_name@$control_name": {
"anchor_from": "top_left",
"anchor_to": "top_left"
}
},
{
"spacer": {
"type": "panel",
"size": [ 5, 5 ]
}
}
]
},
"option_text_edit_control@common.text_edit_box": {
"size": [ "100%", "30px" ],
"max_length": "$max_text_edit_length",
"$text_edit_box_content_binding_name": "$option_binding_name",
"$text_edit_box_binding_collection_name": "$option_binding_name",
"$text_edit_box_binding_type": "global",
"$place_holder_text": "$option_place_holder_text",
"$place_holder_text_color": [ 0.5, 0.5, 0.5, 1.0 ],
"enabled": "$enabled"
},
"option_toggle_control@common-classic.toggle": {
"layer": 2,
"$toggle_state_binding": "$option_binding_name",
"size": [ 40, 18 ],
"$toggle_name": "$option_binding_name",
"$binding_type": "global",
"$binding_condition": "once"
},
"option_slider_control": {
"type": "panel",
"size": [ "100% - 2px", 16 ],
"controls": [
{
"@common.slider": {
"size": [ "100%-8px", 10 ],
"$slider_box_size": [ 10, 16 ],
"offset": [ 1, -3 ]
}
}
]
},
"option_info_label_control": {
"type": "panel",
"size": "$container_size",
"controls": [
{
"": {
"type": "image",
"nineslice_size": 1.0,
"texture": "gui/newgui/settings/text_label_box.png",
"uv_size": [ 4, 4 ],
"size": "$container_size"
}
},
{
"": {
"type": "label",
"wrap": true,
"layer": 1,
"alignment": "left_middle",
"text": "$container_text_binding_name",
"offset": [ 4, 0 ],
"size": [ "100%- 8px", "100%" ], // height is "hardcoded" for the moment. it will be able to be dynamic according to bug 18293 (on Ott)
"bindings": [
{
"binding_name": "$container_text_binding_name"
}
]
}
}
]
},
"option_toggle@option_generic": {
"$control_name": "settings_common.option_toggle_control"
},
"option_text_edit@option_generic": {
"$option_place_holder_text|default": "",
"$control_name": "settings_common.option_text_edit_control"
},
"option_slider@option_generic": {
"$control_name": "settings_common.option_slider_control"
},
"option_custom_control@option_generic": {
// user must set $control_name
},
"option_info_label@option_generic": {
"$control_name": "settings_common.option_info_label_control"
},
"dynamic_dialog_screen@common.base_screen": {
"type": "screen",
"button_mappings": [
{
"from_button_id": "button.menu_cancel",
"to_button_id": "button.menu_exit",
"mapping_type": "global"
},
{
"from_button_id": "button.menu_inventory_cancel",
"to_button_id": "button.menu_exit",
"mapping_type": "global"
},
{
"from_button_id": "button.menu_up",
"to_button_id": "button.menu_up",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_down",
"to_button_id": "button.menu_down",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_left",
"to_button_id": "button.menu_left",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_right",
"to_button_id": "button.menu_right",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_tab_left",
"to_button_id": "button.menu_tab_left",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_tab_right",
"to_button_id": "button.menu_tab_right",
"mapping_type": "global",
"scope": "view"
}
],
"$screen_content": "settings_common.settings_content"
},
"settings_content": {
"type": "panel",
"controls": [
{
"@common.common_panel": {
"size": "$16_9_wide_screen_size",
"$dialog_background": "dialog_background_hollow_3",
"$show_divider": true,
"$divider_offset": [ "40%", "22px" ]
}
},
{
"container": {
"type": "panel",
"size": "$16_9_wide_screen_size",
"layer": 1,
"controls": [
{ "@$dialog_content": { } }
]
}
},
{
"popup_dialog_factory": {
"type": "factory",
"control_ids": {
"purchase_failed": "@realms_create.popup_dialog__purchase_failed",
"purchase_in_progress": "@realms_create.popup_dialog__purchase_in_progress"
}
}
}
]
},
"toggle_button_control": {
"type": "image",
"texture": "$button_texture",
"$color": "$default_text_color",
"$glyph_uvsize": [ 25, 13 ],
"layer": 2,
"nineslice_size": 2.0,
"uv_size": [ 6, 6 ],
"controls": [
{
"glyph": {
"type": "image",
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"offset": [ 5, 0 ],
"texture": "gui/newgui/settings/glyph_atlas.png",
"color": "$color",
"size": "$glyph_uvsize",
"layer": 3,
"uv": "$glyph_uv",
"uv_size": "$glyph_uvsize"
}
},
{
"tab_button_text": {
"type": "label",
"clip": true,
"alignment": "left_middle",
"offset": [ 40, 0 ],
"text": "$button_label_text",
"layer": 3,
"color": "$color"
}
}
]
},
"toggle_state_inactive@settings_common.toggle_button_control": {
"$button_texture": "gui/newgui/ButtonWithBorder.png"
},
"toggle_state_inactive_hover@settings_common.toggle_button_control": {
"$button_texture": "gui/newgui/ButtonWithBorderHover.png"
},
"toggle_state_active@settings_common.toggle_button_control": {
"$color": "$active_text_color",
"$button_texture": "gui/newgui/ButtonWithBorderPressedNoHover.png"
},
"toggle_state_active_hover@settings_common.toggle_button_control": {
"$color": "$active_text_color",
"$button_texture": "gui/newgui/ButtonWithBorderPressed.png"
},
"section_toggle_base@common.toggle": {
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ "100%", "30px" ],
"$unchecked_control": "settings_common.toggle_state_inactive",
"$checked_control": "settings_common.toggle_state_active",
"$unchecked_hover_control": "settings_common.toggle_state_inactive_hover",
"$checked_hover_control": "settings_common.toggle_state_active_hover",
"$unchecked_locked_control": "settings_common.toggle_state_inactive",
"$checked_locked_control": "settings_common.toggle_state_active",
"$radio_toggle_group": true,
"$toggle_name": "navigation_tab",
"$toggle_group_default_selected": "$default_selector_toggle_index"
},
// upper right title
"section_title_label": {
"type": "label",
"layer": 1,
"alignment": "top_middle",
"color": "$default_text_color",
"text": "#section_title",
"bindings": [
{
"binding_name": "#section_title"
}
]
},
// upper left title
"dialog_title_label": {
"type": "label",
"layer": 1,
"color": "$default_text_color",
"alignment": "top_middle",
"text": "#dialog_title",
"clip": true,
"size": [ "39%", "100%" ],
"bindings": [
{
"binding_name": "#dialog_title"
}
]
},
"dialog_content": {
"type": "panel",
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"controls": [
{ "@dialog_title_label": { "offset": [ "-29%", 9 ] } },
{ "@selector_area": { } },
{ "@section_title_label": { "offset": [ "20%", 9 ] } },
{ "@content_area": { } }
]
},
"selector_group_label": {
"type": "label",
"size": [ "100%", "20px" ],
"alignment": "left_middle",
"color": [ 1, 1, 1 ],
"offset": [ 15, 0 ]
},
// left side
"selector_area": {
"type": "panel",
"offset": [ "8px", "23px" ],
"size": [ "40% - 8px", "100% - 31px" ],
"anchor_from": "top_left",
"anchor_to": "top_left",
"controls": [
{
"": {
"type": "panel",
"offset": [ "0px", "2px" ],
"size": [ "100% - 4px", "100%" ],
"controls": [
{ "@$selector_stack_panel": { } }
]
}
}
]
},
// right side
"content_area": {
"type": "panel",
"offset": [ "-8px", "23px" ],
"size": [ "60% - 13px", "100% - 31px" ],
"anchor_from": "top_right",
"anchor_to": "top_right",
"controls": [
{
"@common.scrolling_panel": {
"$scrolling_pane_size": [ "100%", "100%" ],
"$scrolling_content": "$section_content_panels",
"$show_background": false,
"$scroll_view_port_size": [ "100% - 7px", "100%" ],
"$scroll_track_size": [ "5px", "100% - 4px" ],
"$scroll_track_offset": [ -2, 2 ],
"$scroll_box_size": [ "5px", "100%" ]
}
}
]
},
"screen_base@dynamic_dialog_screen": {
"$default_text_color": [ 0.275, 0.275, 0.275 ],
"$active_text_color": [ 1.00, 0.96, 0.02 ],
"$dialog_content": "settings_common.dialog_content"
}
}
+743
View File
@@ -0,0 +1,743 @@
{
"namespace": "skin_pack_purchase",
//--------------------------------------------------------------------------------
// Popup Dialog
//--------------------------------------------------------------------------------
"popup_dialog_base@popup_dialog.popup_dialog": {
"$middle_button_press": "button.close_dialog",
"$middle_button_text": "skins.buy.closeButton",
"controls": [
{ "@popup_dialog.popup_dialog_bg": { } },
{ "@popup_dialog.popup_dialog_message": { } },
{ "@popup_dialog.popup_dialog_middle_button": { } }
]
},
"popup_dialog__no_connection@popup_dialog_base": {
"$message_text": "skins.buy.noConnection"
},
"popup_dialog__purchase_failed@popup_dialog_base": {
"$message_text": "skins.buy.purchaseFailed"
},
"popup_dialog__purchase_in_progress@popup_dialog_base": {
"$message_text": "skins.buy.waitingForPurchase",
"controls": [
{ "@popup_dialog.popup_dialog_bg": { } },
{
"@popup_dialog.popup_dialog_message": {
"size": [ "90%", "100%" ]
}
}
]
},
//--------------------------------------------------------------------------------
// Common Controls
//--------------------------------------------------------------------------------
"banner_fill": {
"type": "image",
"texture": "gui/newgui/Banners.png",
"uv": [ 0, 0 ],
"uv_size": [ 4, 4 ],
"nineslice_size": 1
},
"title_label": {
"type": "label",
"size": [ "100%", "14px" ],
"anchor_from": "top_left",
"anchor_to": "top_left",
"alignment": "center",
"color": [ 0.3, 0.3, 0.3 ]
},
"label": {
"type": "label",
"anchor_from": "center",
"anchor_to": "center",
"offset": [ 0, 0 ],
"color": "white",
"wrap": true
},
"bound_label@label": {
"type": "label",
"layer": 6,
"size": [ "100%", "100%" ],
"anchor_from": "center",
"anchor_to": "center",
"color": [ 0.3, 0.3, 0.3 ],
"offset": "$button_text_offset",
"text": "$bound_text",
"bindings": [
{
"binding_type": "global",
"binding_name": "$bound_text"
}
]
},
"button_image": {
"$button_text|default": "",
"$button_text_offset|default": [ 0, 0 ],
"type": "image",
"nineslice_size": 2,
"uv": [ 0, 0 ],
"uv_size": [ 6, 6 ],
"controls": [
{
"button_label@label": {
"text": "$button_text"
}
}
]
},
"button_image_with_bound_label@button_image": {
"controls": [
{
"button_label@bound_label": {
"$bound_text": "$button_text"
}
}
]
},
"chevron_button_image@button_image": {
"controls": [
{
"chevron_image": {
"type": "image",
"layer": 2,
"uv": [ 0, 0 ],
"uv_size": [ 4, 7 ],
"size": [ 4, 7 ],
"offset": "$chevron_offset",
"texture": "$chevron_image_name"
}
}
]
},
"cycle_pack_button@common.button": {
"controls": [
{
"default@chevron_button_image": {
"texture": "gui/newgui/ButtonWithBorder.png"
}
},
{
"hover@chevron_button_image": {
"texture": "gui/newgui/ButtonWithBorderHover.png"
}
},
{
"pressed@chevron_button_image": {
"texture": "gui/newgui/ButtonWithBorderPressed.png",
"$chevron_offset": [ 0, 1 ]
}
}
]
},
"cycle_pack_left_button@cycle_pack_button": {
"anchor_from": "bottom_left",
"anchor_to": "bottom_left",
"$chevron_image_name": "gui/newgui/chevron_left.png",
"$chevron_offset": [ 0, 0 ],
"$pressed_button_name": "button.cycle_pack_left"
},
"cycle_pack_right_button@cycle_pack_button": {
"anchor_from": "bottom_right",
"anchor_to": "bottom_right",
"$chevron_image_name": "gui/newgui/chevron_right.png",
"$chevron_offset": [ 0, 0 ],
"$pressed_button_name": "button.cycle_pack_right"
},
"skin_model": {
"type": "custom",
"renderer": "paper_doll_renderer",
"layer": 5,
"size": "$skin_model_size",
"offset": "$skin_model_offset",
"use_selected_skin": false,
"enable_scissor_test": true,
"bindings": [
{
"binding_type": "collection",
"binding_collection_name": "skins_collection",
"binding_name": "#skin_index"
}
]
},
"skin_lock": {
"type": "image",
"layer": 6,
"anchor_from": "bottom_right",
"anchor_to": "bottom_right",
"uv": [ 0, 0 ],
"uv_size": [ 8, 8 ],
"size": [ 8, 8 ],
"offset": "$skin_lock_offset",
"texture": "gui/newgui/lock.png",
"bindings": [
{
"binding_type": "collection",
"binding_name": "#skin_lock_visible",
"binding_name_override": "#visible",
"binding_collection_name": "skins_collection"
}
]
},
"skin_button": {
"type": "button",
"$focus_id|default": "",
"$focus_override_down|default": "",
"$focus_override_up|default": "",
"$focus_override_left|default": "",
"$focus_override_right|default": "",
"focus_identifier": "$focus_id",
"focus_change_down": "$focus_override_down",
"focus_change_up": "$focus_override_up",
"focus_change_left": "$focus_override_left",
"focus_change_right": "$focus_override_right",
"focus_enabled": true,
"layer": 3,
"hover_control": "hover",
"pressed_control": "pressed",
"$highlight_size|default": [ "100% - 1px", "100%" ],
"bindings": [
{
"binding_type": "collection_details",
"binding_collection_name": "skins_collection"
}
],
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "button.view_skin",
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_ok",
"to_button_id": "button.view_skin",
"mapping_type": "focused"
},
{
"to_button_id": "button.skin_unhovered",
"mapping_type": "pressed"
},
{
"to_button_id": "button.skin_hovered",
"mapping_type": "pressed"
}
],
"controls": [
{
"hover@common.focus_border_white": {
"size": "$highlight_size"
}
},
{
"pressed@common.focus_border_white": {
"size": "$highlight_size"
}
}
]
},
"skins_grid_item": {
"type": "panel",
"anchor_from": "bottom_left",
"anchor_to": "bottom_left",
"size": "$skins_grid_item_size",
"controls": [
{
"model@skin_model": { }
},
{
"lock@skin_lock": { }
},
{
"button@skin_button": { }
}
]
},
"skins_grid": {
"type": "grid",
"grid_item_template": "skin_pack_purchase.skins_grid_item",
"grid_dimension_binding": "#skins_grid_dimensions",
"collection_name": "skins_collection",
"bindings": [
{
"binding_name": "#skins_grid_dimensions"
}
]
},
"skins_panel": {
"type": "panel",
"controls": [
{
"bg@banner_fill": {
"size": [ "100% - 4px", "100% - 2px" ],
"controls": [
{
"left@cycle_pack_left_button": {
"size": [ 20, "100%" ]
}
},
{
"sg@skin_pack_purchase.skins_grid": {
"clips_children": true,
"size": "$skins_grid_size",
"anchor_from": "center",
"anchor_to": "center"
}
},
{
"right@cycle_pack_right_button": {
"size": [ 20, "100%" ]
}
}
]
}
}
]
},
"unlock_panel": {
"type": "panel",
"controls": [
{
"buy_btn@common.button": {
"$button_text": "$unlock_text",
"$pressed_button_name": "button.buy_pack",
"size": [ "100% - 4px", "100% - 4px" ],
"controls": [
{
"default@skin_pack_purchase.button_image_with_bound_label": {
"texture": "gui/newgui/ButtonWithBorder.png"
}
},
{
"hover@skin_pack_purchase.button_image_with_bound_label": {
"texture": "gui/newgui/ButtonWithBorderHover.png"
}
},
{
"pressed@skin_pack_purchase.button_image_with_bound_label": {
"texture": "gui/newgui/ButtonWithBorderPressed.png",
"$button_text_offset": [ 0, 1 ]
}
}
]
}
}
]
},
//--------------------------------------------------------------------------------
// Screen Type "Standard"
//--------------------------------------------------------------------------------
"standard_skin_viewer_panel": {
"type": "input_panel",
"layer": 3,
"anchor_from": "top_left",
"anchor_to": "top_left",
"gesture_tracking_button": "button.turn_doll",
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "button.turn_doll",
"mapping_type": "pressed",
"button_up_right_of_first_refusal": true
}
],
"controls": [
{
"skin_model": {
"type": "custom",
"renderer": "paper_doll_renderer",
"size": [ "5% - 3px", "100%" ],
"offset": [ 0, -17 ],
"layer": 2,
"use_selected_skin": false,
"use_skin_gui_scale": true,
"rotation": "gesture_x",
"anchor_from": "bottom_middle",
"anchor_to": "bottom_middle",
"bindings": [
{
"binding_type": "global",
"binding_name": "#preview_skin"
},
{
"binding_type": "view",
"source_control_name": "preview",
"source_property_name": "#gesture_mouse_delta_x",
"target_property_name": "#gesture_mouse_delta_x"
}
]
}
},
{
"skin_name": {
"type": "label",
"layer": 3,
"anchor_from": "bottom_middle",
"anchor_to": "bottom_middle",
"size": [ "100%", 10 ],
"offset": [ 0, 1 ],
"color": "white",
"text": "#skin_name",
"bindings": [
{
"binding_type": "global",
"binding_name": "#skin_name"
}
]
}
}
]
},
"standard_image_panel": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": "$image_panel_size",
"controls": [
{
"pack_name@title_label": {
"layer": 2,
"text": "$pack_name"
}
},
{
"key_and_preview_panel": {
"type": "panel",
"layer": 1,
"size": [ "100% - 2px", "100%" ],
"offset": [ 1, 16 ],
"controls": [
{
"bg@banner_fill": {
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ 146, 83 ],
"offset": [ 0, 2 ],
"controls": [
{
"key_art": {
"type": "image",
"layer": 1,
"texture": "$path_to_key_art",
"texture_file_system": "$key_art_file_system",
"size": [ 144, 81 ],
"uv": [ 0, 0 ],
"uv_size": [ 800, 450 ]
}
}
]
}
},
{
"preview@standard_skin_viewer_panel": {
"anchor_from": "top_right",
"anchor_to": "top_right",
"size": [ "50%", "100%" ]
}
}
]
}
}
]
},
"stack_item": {
"type": "panel"
},
"standard_details_panel": {
"type": "stack_panel",
"anchor_from": "bottom_middle",
"anchor_to": "bottom_middle",
"size": "$details_panel_size",
"controls": [
{
"skins@skins_panel": {
"size": [ "100%", "65%" ]
}
},
{
"@stack_item": {
"size": [ "100%", "38% - 1px" ],
"controls": [
{
"unlock@unlock_panel": {
"size": [ "100%", "100%" ],
"offset": [ 0, -2 ]
}
}
]
}
}
]
},
"standard_content": {
"type": "panel",
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"size": [ "100% - 16px", "100% - 15px" ],
"offset": [ 0, 7 ],
"controls": [
{ "@standard_image_panel": { } },
{
"@standard_details_panel": {
"offset": [ 0, 0 ]
}
}
]
},
//--------------------------------------------------------------------------------
// Screen Type "Upsell"
//--------------------------------------------------------------------------------
"upsell_info_panel": {
"type": "panel",
"controls": [
{
"bg@banner_fill": {
"size": [ "100% - 4px", "100% - 2px" ]
}
},
{
"txt@label": {
"size": [ "85%", "100%" ],
"text": "skins.store.upsell.info"
}
}
]
},
"upsell_details_panel": {
"type": "stack_panel",
"size": "$details_panel_size",
"controls": [
{
"info@upsell_info_panel": {
"size": [ "100%", "25%" ]
}
},
{
"skins@skins_panel": {
"size": [ "100%", "45%" ]
}
},
{
"unlock@unlock_panel": {
"size": [ "100%", "30%" ]
}
}
]
},
"upsell_image_panel": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": "$image_panel_size",
"controls": [
{
"pack_name@title_label": {
"layer": 2,
"text": "$pack_name"
}
},
{
"bg@banner_fill": {
"size": [ "100%c + 2px", "100%c + 2px" ],
"offset": [ 0, 8 ],
"controls": [
{
"key_art": {
"layer" : 1,
"type": "image",
"texture": "$path_to_key_art",
"texture_file_system": "$key_art_file_system",
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"size": [ 144, 81 ],
"offset": [ 0, 1 ],
"uv": [ 0, 0 ],
"uv_size": [ 800, 450 ]
}
}
]
}
}
]
},
"upsell_content": {
"type": "stack_panel",
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"size": [ "100% - 17px", "100% - 15px" ],
"offset": [ 0, 7 ],
"controls": [
{ "@upsell_image_panel": { } },
{ "@upsell_details_panel": { } }
]
},
//--------------------------------------------------------------------------------
// Screens
//--------------------------------------------------------------------------------
"screen_root@common.base_screen": {
"button_mappings": [
{
"from_button_id": "button.menu_cancel",
"to_button_id": "button.menu_exit",
"mapping_type": "global"
},
{
"from_button_id": "button.menu_up",
"to_button_id": "button.menu_up",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_down",
"to_button_id": "button.menu_down",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_left",
"to_button_id": "button.menu_left",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_right",
"to_button_id": "button.menu_right",
"mapping_type": "global",
"scope": "view"
}
],
"$default_text_color": [ 0.3, 0.3, 0.3 ]
},
"skin_pack_purchase_upsell_screen@screen_root": {
"$this_screen_content": "@skin_pack_purchase.upsell_content",
"$skins_grid_size": [ "82%", "100% - 2px" ],
"$skins_grid_item_size": [ 35, "100%" ],
"$skin_model_size": [ 2, "100%" ],
"$skin_model_offset": [ 0, -5 ],
"$skin_lock_offset": [ -3, -4.0 ],
"$no_skin_button": true,
"$screen_content": "skin_pack_purchase.skin_pack_purchase_upsell_screen_content"
},
"skin_pack_purchase_upsell_screen_content": {
"type": "panel",
"$image_panel_size": [ "100%", "100% - 94px" ],
"$details_panel_size": [ "100%", 94 ],
"controls": [
{
"bg@common.common_panel": {
"size": "$store_screen_size",
"$dialog_background": "dialog_background_hollow_3",
"$show_divider": false,
"$show_close_button": true
}
},
{
"container": {
"type": "panel",
"size": "$store_screen_size",
"layer": 1,
"controls": [
{ "$this_screen_content": { } }
]
}
},
{
"popup_dialog_factory": {
"type": "factory",
"control_ids": {
"no_connection": "@skin_pack_purchase.popup_dialog__no_connection",
"purchase_failed": "@skin_pack_purchase.popup_dialog__purchase_failed",
"purchase_in_progress": "@skin_pack_purchase.popup_dialog__purchase_in_progress"
}
}
}
]
},
"skin_pack_purchase_standard@screen_root": {
"$this_screen_content": "@skin_pack_purchase.standard_content",
"$skins_grid_size": [ "86%", "100% - 2px" ],
"$skins_grid_item_size": [ 50, "100%" ],
"$skin_model_size": [ 2.7, "100%" ],
"$skin_model_offset": [ 0, -6 ],
"$skin_lock_offset": [ -4, -2.5 ],
"$no_skin_button": false,
"$screen_content": "skin_pack_purchase.skin_pack_purchase_standard_content"
},
"skin_pack_purchase_standard_content": {
"type": "panel",
"$image_panel_size": [ "100%", "100% - 110px" ],
"$details_panel_size": [ "100%", 94 ],
"controls": [
{
"bg@common.common_panel": {
"size": "$store_screen_size",
"$dialog_background": "dialog_background_hollow_3",
"$show_divider": false,
"$show_close_button": true
}
},
{
"container": {
"type": "panel",
"size": "$store_screen_size",
"layer": 1,
"controls": [
{ "$this_screen_content": { } }
]
}
},
{
"popup_dialog_factory": {
"type": "factory",
"control_ids": {
"no_connection": "@skin_pack_purchase.popup_dialog__no_connection",
"purchase_failed": "@skin_pack_purchase.popup_dialog__purchase_failed",
"purchase_in_progress": "@skin_pack_purchase.popup_dialog__purchase_in_progress"
}
}
}
]
}
}
File diff suppressed because it is too large. Load diff
+766
View File
@@ -0,0 +1,766 @@
{
"namespace": "start",
"language_icon": {
"type": "image",
"texture": "gui/newgui/Language16.png",
"layer": 3,
"uv": [ 0, 0 ],
"uv_size": [ 16, 16 ],
"size": [ 16, 16 ]
},
"feedback_icon": {
"type": "image",
"texture": "gui/newgui/Feedback.png",
"layer": 3,
"uv": [ 0, 0 ],
"uv_size": [ 16, 16 ],
"size": [ 16, 16 ]
},
"Xbox_icon": {
"type": "image",
"texture": "gui/newgui/xbox4.png",
"layer": 3,
"uv": [ 0, 0 ],
"uv_size": [ 27, 27 ],
"size": [ 27, 27 ]
},
"change_skin_icon": {
"type": "image",
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"texture": "gui/newgui/hangar.png",
"layer": 3,
"uv": [ 0, 0 ],
"uv_size": [ 32, 16 ],
"size": [ 32, 16 ],
"offset": [ 3, 2 ],
"color": [ 0.3, 0.3, 0.3 ]
},
"copyright": {
"type": "label",
"alignment": "top_left",
"layer": 2,
"text": "menu.copyright"
},
"development_version": {
"type": "label",
"alignment": "top_middle",
"layer": 2,
"text": "#development_version",
"bindings": [
{
"binding_name": "#development_version",
"binding_condition": "visible"
}
]
},
"version": {
"type": "label",
"alignment": "top_right",
"layer": 2,
"text": "#version",
"bindings": [
{
"binding_name": "#version",
"binding_condition": "visible"
}
]
},
"text_panel": {
"type": "panel",
"size": [ "100%-2px", 9 ],
"anchor_from": "bottom_middle",
"anchor_to": "bottom_middle",
"controls": [
{
"@start.copyright": { }
},
{
"@start.development_version": { }
},
{
"@start.version": { }
}
]
},
"splash_text": {
"type": "custom",
"renderer": "splash_text_renderer",
"size": [ 0.1, 0.1 ],
"layer": 2,
"anchor_from": "bottom_right",
"anchor_to": "bottom_right"
},
"title_panel_pocket": {
"type": "panel",
"offset": [ 0, "10%" ],
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"size": [ "100%", "12.5%x" ],
"controls": [
{
"title_image": {
"type": "image",
"layer": 1,
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"texture": "gui/title.png",
"uv": [ 0, 0 ],
"uv_size": [ 512, 64 ]
}
},
{
"@splash_text": {
"offset": [ "-28%", "-4%x" ]
}
}
]
},
"title_panel_win10": {
"type": "panel",
"size": [ "55%", "10.6%x" ],
"offset": [ 0, "10%" ],
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"controls": [
{
"title_image": {
"type": "image",
"layer": 1,
"texture": "gui/titleOriginal.png",
"uv": [ 0, 0 ],
"uv_size": [ 1936, 375 ]
}
},
{
"@splash_text": {
"offset": [ 0, "-6.25%x" ]
}
}
]
},
"title_panel_edu": {
"type": "panel",
"size": [ "55%", "13.35%x" ],
"offset": [ 0, "10%" ],
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"controls": [
{
"title_image": {
"type": "image",
"layer": 1,
"texture": "gui/titleEdu.png",
"uv": [ 0, 0 ],
"uv_size": [ 1938, 472 ]
}
},
{
"@splash_text": {
"offset": [ "-3.5%", "-9.25%x" ]
}
}
]
},
"title_panel_vr": {
"type": "panel",
"size": [ "100%", "12.5%x" ],
"offset": [ 0, "10%" ],
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"controls": [
{
"title_image": {
"type": "image",
"layer": 1,
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"texture": "gui/titleVR.png",
"uv": [ 0, 0 ],
"uv_size": [ 512, 64 ]
}
},
{
"@splash_text": {
"offset": [ "-28%", "-4%x" ]
}
}
]
},
//---------------------------------------------------------------------------
// Skins Panel
//---------------------------------------------------------------------------
"change_skin_button@common.new_button": {
"$pressed_button_name": "button.menu_skins",
"size": [ 24, 24 ],
"controls": [
{
"default@common.new_button_state_default": {
"controls": [
{ "@start.change_skin_icon": { } }
]
}
},
{
"hover@common.new_button_state_hover": {
"controls": [
{
"@start.change_skin_icon": {
"color": "yellow"
}
}
]
}
},
{
"pressed@common.new_button_state_pressed": {
"controls": [
{
"@start.change_skin_icon": {
"alpha": 0.65,
"offset": [ 3, 3 ],
"color": "yellow"
}
}
]
}
}
]
},
"skin_viewer_panel": {
"type": "panel",
"anchor_from": "bottom_middle",
"anchor_to": "bottom_middle",
"size": [ 32, 140 ],
"controls": [
{
"paper_doll": {
"type": "custom",
"renderer": "paper_doll_renderer",
"layer": 2,
"anchor_from": "bottom_middle",
"anchor_to": "bottom_middle",
"rotation": "gesture_x",
"size": [ 6, "100%" ],
"offset": [ 0, -38 ]
}
},
{
"paper_doll_name_tag": {
"type": "custom",
"renderer": "name_tag_renderer",
"layer": 2,
"anchor_from": "top_middle",
"anchor_to": "bottom_middle",
"size": [ 8, 8 ],
"offset": [ 0, 0 ],
"bindings": [
{
"binding_name": "#playername",
"binding_condition": "visible"
}
]
}
}
]
},
"skin_panel": {
"type": "panel",
"anchor_to": "bottom_right",
"anchor_from": "bottom_right",
"size": [ 32, 32 ],
"offset": [ "-15%", "-10%" ],
"controls": [
{ "@change_skin_button": { } },
{ "@skin_viewer_panel": { } }
]
},
//---------------------------------------------------------------------------
// Online Buttons Panel (and the lang button)
//---------------------------------------------------------------------------
"language_button@common.new_button": {
"$pressed_button_name": "button.menu_language",
"size": [ 24, 24 ],
"controls": [
{
"default@common.new_button_state_default": {
"controls": [
{ "@start.language_icon": { } }
]
}
},
{
"hover@common.new_button_state_hover": {
"controls": [
{ "@start.language_icon": { } }
]
}
},
{
"pressed@common.new_button_state_pressed": {
"controls": [
{
"@start.language_icon": {
"offset": [ 0, 1 ],
"alpha": 0.65
}
}
]
}
}
]
},
"feedback_button@common.button": {
"$pressed_button_name": "button.feedback_button",
"size": [ 24, 24 ],
"controls": [
{
"default@common.new_button_state_default": {
"controls": [
{ "@start.feedback_icon": { } }
]
}
},
{
"hover@common.new_button_state_hover": {
"controls": [
{ "@start.feedback_icon": { } }
]
}
},
{
"pressed@common.new_button_state_pressed": {
"controls": [
{
"@start.feedback_icon": {
"offset": [ 0, 1 ],
"alpha": 0.65
}
}
]
}
}
]
},
"xbl_signin_button@common.new_button": {
"$pressed_button_name": "button.xbl_signin",
"size": [ 48, 24 ],
"controls": [
{
"default@common.new_button_state_default": {
"controls": [
{
"@common.new_button_label": {
"text": "xbox.signin"
}
}
]
}
},
{
"hover@common.new_button_state_hover": {
"controls": [
{
"@common.new_button_label": {
"text": "xbox.signin"
}
}
]
}
},
{
"pressed@common.new_button_state_pressed": {
"controls": [
{
"@common.new_button_label": {
"text": "xbox.signin",
"offset": [ 0, 1 ]
}
}
]
}
}
]
},
"column_frame": {
"type": "panel"
},
"online_buttons_panel": {
"type": "panel",
"anchor_to": "bottom_left",
"anchor_from": "bottom_left",
"size": [ "default", 32 ],
"offset": [ "5%", "-10%" ],
"controls": [
{
"stacked_column": {
"type": "stack_panel",
"size": [ "100%", "100%" ],
"anchor_from": "top_left",
"anchor_to": "top_left",
"orientation": "horizontal",
"controls": [
{
"lang_btn@column_frame": {
"size": [ 28, 32 ],
"controls": [
{ "@language_button": { } }
]
}
},
{
"feedback_btn@column_frame": {
"ignored": "$feedback_ignored",
"size": [ 28, 32 ],
"controls": [
{ "@feedback_button": { } }
],
"bindings": [
{
"binding_name": "#feedback_visible",
"binding_name_override": "#visible"
}
]
}
},
{
"xbl_btn@column_frame": {
"ignored": "$win10_edition",
"size": [ 52, 32 ],
"controls": [
{ "@xbl_signin_button": { } }
],
"bindings": [
{
"binding_name": "#sign_in_visible",
"binding_name_override": "#visible"
}
]
}
}
]
}
}
]
},
//---------------------------------------------------------------------------
// Main Buttons Panel
//---------------------------------------------------------------------------
"main_button@common.new_button": {
"size": [ "100% - 2px", "100% - 2px" ]
},
"play_button@main_button": {
"$pressed_button_name": "button.menu_play",
"$button_label_text": "menu.play",
"default_focus_precedence": 1
},
"achievements_button@main_button": {
"$pressed_button_name": "button.menu_achievements",
"$button_label_text": "menu.achievements"
},
"settings_button@main_button": {
"$pressed_button_name": "button.menu_settings",
"$button_label_text": "menu.options"
},
"store_button@main_button": {
"$pressed_button_name": "button.menu_store",
"$button_label_text": "menu.store"
},
"buy_game_button@main_button": {
"$pressed_button_name": "button.menu_buy_game",
"$button_label_text": "trial.pauseScreen.buyGame"
},
"stacked_row": {
"type": "panel",
"size": [ "100%", 32 ]
},
"stacked_col": {
"type": "panel",
"size": [ "50%", "100%" ]
},
"main_buttons_panel": {
"type": "panel",
"anchor_from": "center",
"anchor_to": "top_middle",
"size": [ 120, 100 ],
"offset": [ 0, "-5%" ],
"controls": [
{
"stacked_rows": {
"type": "stack_panel",
"size": [ "100%", "100%" ],
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"controls": [
{
"@stacked_row": {
"controls": [
{ "@play_button": { } }
]
}
},
{
"@stacked_row": {
"ignored": "$achievements_ignored",
"controls": [
{ "@achievements_button": { } }
]
}
},
{
"@stacked_row": {
"controls": [
{
"stacked_columns": {
"type": "stack_panel",
"size": [ "100%", "100%" ],
"orientation": "horizontal",
"controls": [
{
"@stacked_col": {
"controls": [
{ "@settings_button": { } }
]
}
},
{
"@stacked_col": {
"controls": [
{ "@store_button": { } }
]
}
}
]
}
}
]
}
},
{
"@stacked_row": {
"ignored": "$not_trial",
"controls": [
{ "@buy_game_button": { } }
]
}
}
]
}
}
]
},
"gamepad_helpers": {
"type": "panel",
"offset": "$gamepad_helpers_offset",
"size": [ 140, 10 ],
"controls": [
{
"@common.gamepad_helper_a": {
"size": [ "50%", "100%" ],
"offset": "$gamepad_helper_a_offset",
"anchor_from": "left_middle",
"anchor_to": "left_middle"
}
},
{
"@common.gamepad_helper_b": {
"size": [ "50%", "100%" ],
"offset": "$gamepad_helper_b_offset",
"anchor_from": "right_middle",
"anchor_to": "right_middle"
}
}
]
},
//---------------------------------------------------------------------------
// Realms Invite Panel
//---------------------------------------------------------------------------
"invite_notification_icon": {
"type": "image",
"texture": "$invite_texture",
"uv": [ 0, 0 ],
"uv_size": [ 16, 16 ],
"size": [ 16, 16 ]
},
"realms_pending_invite_panel": {
"type": "panel",
"layer": 1,
"size": [ 24, 24 ],
"controls": [
{
"button@common.new_button": {
"$pressed_button_name": "button.menu_invite_notification",
"size": [ 20, 20 ],
"offset": [ 2, 2 ],
"controls": [
{
"default@start.invite_notification_icon": { "$invite_texture": "gui/newgui/invite_base.png" }
},
{
"hover@start.invite_notification_icon": { "$invite_texture": "gui/newgui/invite_hover.png" }
},
{
"pressed@start.invite_notification_icon": { "$invite_texture": "gui/newgui/invite_pressed.png" }
}
]
}
}
],
"bindings": [
{
"binding_name": "#realms_notification_visible",
"binding_name_override": "#visible"
}
]
},
//---------------------------------------------------------------------------
// Screens
//---------------------------------------------------------------------------
"start_screen@common.base_screen": {
"button_mappings": [
{
"from_button_id": "button.menu_cancel",
"to_button_id": "button.menu_exit",
"mapping_type": "global"
},
{
"from_button_id": "button.menu_up",
"to_button_id": "button.menu_up",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_down",
"to_button_id": "button.menu_down",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_left",
"to_button_id": "button.menu_left",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_right",
"to_button_id": "button.menu_right",
"mapping_type": "global",
"scope": "view"
}
],
"$screen_content": "start.start_screen_content"
},
"start_screen_content": {
"type": "panel",
"$achievements_ignored|default": false,
"$feedback_ignored|default": false,
"variables": [
{
"requires": "$not_trial",
"$gamepad_helpers_offset": [ -14, "40%" ],
"$gamepad_helper_a_offset": [ -5, 0 ],
"$gamepad_helper_b_offset": [ 5, 0 ]
},
{
"requires": "$trial",
"$gamepad_helpers_offset": [ "-7%", "40%" ],
"$gamepad_helper_a_offset": [ 0, 0 ],
"$gamepad_helper_b_offset": [ 0, 0 ]
},
{
"requires": "$win10_edition",
"$title_panel": "title_panel_win10"
},
{
"requires": "$osx_edition",
"$title_panel": "title_panel_win10"
},
{
"requires": "$education_edition",
"$title_panel": "title_panel_edu",
"$achievements_ignored": true
},
{
"requires": "$pocket_edition",
"$title_panel": "title_panel_pocket"
},
{
"requires": "$is_holographic",
"$title_panel": "title_panel_vr",
"$feedback_ignored": true
},
{
"requires": "$xbl_not_enabled",
"$achievements_ignored": true
}
],
"controls": [
{
"@$title_panel": { }
},
{
"@start.skin_panel": { }
},
{
"@start.gamepad_helpers": { }
},
{
"@start.main_buttons_panel": { }
},
{
"@start.online_buttons_panel": { }
},
{
"@start.text_panel": { }
},
{
"@start.realms_pending_invite_panel": {
"anchor_from": "top_left",
"anchor_to": "top_left"
}
}
]
}
}
+641
View File
@@ -0,0 +1,641 @@
{
"namespace": "store",
//--------------------------------------------------------------------------------
// Controls
//--------------------------------------------------------------------------------
"banner_fill": {
"type": "image",
"texture": "gui/newgui/Banners.png",
"uv": [ 0, 0 ],
"uv_size": [ 4, 4 ],
"nineslice_size": 1
},
"title_label": {
"type": "label",
"size": [ "100%", "14px" ],
"anchor_from": "top_left",
"anchor_to": "top_left",
"alignment": "center",
"color": [ 0.3, 0.3, 0.3 ]
},
"label": {
"type": "label",
"size": [ "100%", "14px" ],
"anchor_from": "top_left",
"anchor_to": "top_left",
"alignment": "center"
},
"button_image": {
"$button_text|default": "",
"$button_text_offset|default": [ 0, 0 ],
"type": "image",
"nineslice_size": 2,
"uv": [ 0, 0 ],
"uv_size": [ 6, 6 ],
"controls": [
{
"button_label": {
"type": "label",
"layer": 6,
"size": [ "100%", "100%" ],
"anchor_from": "center",
"anchor_to": "center",
"color": [ 0.3, 0.3, 0.3 ],
"offset": "$button_text_offset",
"text": "$button_text"
}
}
]
},
"chevron_button_image@button_image": {
"controls": [
{
"chevron_image": {
"type": "image",
"layer": 2,
"uv": [ 0, 0 ],
"uv_size": [ 4, 7 ],
"size": [ 4, 7 ],
"offset": "$chevron_offset",
"texture": "$chevron_image_name"
}
}
]
},
"cycle_pack_button@common.button": {
"controls": [
{
"default@chevron_button_image": {
"texture": "gui/newgui/ButtonWithBorder.png"
}
},
{
"hover@chevron_button_image": {
"texture": "gui/newgui/ButtonWithBorderHover.png"
}
},
{
"pressed@chevron_button_image": {
"texture": "gui/newgui/ButtonWithBorderPressed.png",
"$chevron_offset": [ 0, 1 ]
}
}
]
},
"cycle_pack_left_button@cycle_pack_button": {
"anchor_from": "bottom_left",
"anchor_to": "bottom_left",
"$chevron_image_name": "gui/newgui/chevron_left.png",
"$chevron_offset": [ 0, 0 ],
"$pressed_button_name": "button.cycle_pack_left"
},
"cycle_pack_right_button@cycle_pack_button": {
"anchor_from": "bottom_right",
"anchor_to": "bottom_right",
"$chevron_image_name": "gui/newgui/chevron_right.png",
"$chevron_offset": [ 0, 0 ],
"$pressed_button_name": "button.cycle_pack_right"
},
"restore_purchases@common.new_button": {
"anchor_from": "center",
"anchor_to": "center",
"$pressed_button_name": "button.restore_store",
"$button_label_text": "skins.restore.button"
},
//--------------------------------------------------------------------------------
// Content
//--------------------------------------------------------------------------------
"featured_key_art": {
"type": "panel",
"size": [ 160, "100%" ],
"controls": [
{
"bg@banner_fill": {
"layer": 3,
"offset": [ -0.5, 2 ],
"controls": [
{
"featured_key_art": {
"type": "image",
"texture": "$featured_texture_path",
"texture_file_system": "$featured_texture_file_system",
"layer": 4,
"size": [ "100% - 2px", "100% - 2px" ],
"uv": [ 0, 0 ],
"uv_size": [ 800, 450 ]
}
}
]
}
}
]
},
"featured_description": {
"type": "panel",
"size": [ "100%-160px", "100%" ],
"controls": [
{
"bg@banner_fill": {
"layer": 3,
"offset": [ -1.5, 2 ],
"controls": [
{
"text_panel": {
"type": "panel",
"layer": 4,
"anchor_from": "center",
"anchor_to": "center",
"size": [ "100% - 10px", "100% - 10px" ],
"controls": [
{
"header@store.label": {
"size": [ "100%", "20px" ],
"text": "$featured_title",
"alignment": "top_left",
"wrap": true,
"color": "yellow"
}
},
{
"body@store.label": {
"size": [ "100%", "40px" ],
"offset": [ 0, "21px" ],
"text": "$featured_desc",
"alignment": "top_left",
"wrap": true,
"clip": true,
"color": "white"
}
},
{
"footer@store.label": {
"text": "$featured_price",
"alignment": "right_middle",
"anchor_from": "bottom_right",
"anchor_to": "bottom_right",
"color": "yellow"
}
}
]
}
}
]
}
}
]
},
"featured": {
"type": "panel",
"controls": [
{
"featured_pic_and_desc": {
"type": "stack_panel",
"orientation": "horizontal",
"size": [ "100% - 3px", "100% - 4px" ],
"offset": [ 1, -2 ],
"controls": [
{
"@featured_key_art": {
"anchor_from": "top_left",
"anchor_to": "top_left"
}
},
{
"@featured_description": {
"anchor_from": "top_left",
"anchor_to": "top_left"
}
}
]
}
},
{
"featured_button@common.button": {
"$pressed_button_name": "button.select_featured",
"layer": 4,
"size": [ "100%", "100%" ],
"offset": [ 0, 0 ],
"default_control": "",
"hover_control": "hover",
"pressed_control": "pressed",
"focus_enabled": true,
"controls": [
{
"hover@common.focus_border_white": {
"size": [ "100% - 4px", "100% - 4px" ]
}
},
{
"pressed@common.focus_border_white": {
"size": [ "100% - 4px", "100% - 4px" ]
}
}
]
}
}
]
},
"offer_grid_item": {
"type": "panel",
"size": [ "default", "100%" ],
"anchor_from": "top_left",
"anchor_to": "top_left",
"controls": [
{
"frame@banner_fill": {
"size": [ 74, 42 ],
"layer": 3,
"controls": [
{
"offer_key_art": {
"type": "image",
"layer": 5,
"size": [ 72, 40 ],
"bindings": [
{
"binding_type": "collection_details",
"binding_collection_name": "category_collection",
"binding_collection_prefix": "category"
},
{
"binding_type": "collection",
"binding_collection_name": "offers_collection",
"binding_name": "#offer_texture_name",
"binding_name_override": "#texture"
},
{
"binding_type": "collection",
"binding_collection_name": "offers_collection",
"binding_name": "#offer_texture_file_system",
"binding_name_override": "#texture_file_system"
}
]
}
},
{
"offer_button": {
"type": "button",
"$focus_id|default": "",
"$focus_override_down|default": "",
"$focus_override_up|default": "",
"$focus_override_left|default": "",
"$focus_override_right|default": "",
"focus_identifier": "$focus_id",
"focus_change_down": "$focus_override_down",
"focus_change_up": "$focus_override_up",
"focus_change_left": "$focus_override_left",
"focus_change_right": "$focus_override_right",
"focus_enabled": true,
"layer": 4,
"default_control": "",
"hover_control": "hover",
"pressed_control": "pressed",
"bindings": [
{
"binding_type": "collection_details",
"binding_collection_name": "category_collection",
"binding_collection_prefix": "category"
},
{
"binding_type": "collection_details",
"binding_collection_name": "offers_collection",
"binding_collection_prefix": "offers"
}
],
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "button.select_offer",
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_ok",
"to_button_id": "button.select_offer",
"mapping_type": "pressed"
}
],
"controls": [
{
"hover@common.focus_border_white": {
}
},
{
"pressed@common.focus_border_white": {
}
}
]
}
}
]
}
}
],
"bindings": [
{
"binding_type": "collection_details",
"binding_collection_name": "category_collection",
"binding_collection_prefix": "category"
},
{
"binding_type": "collection",
"binding_collection_name": "offers_collection",
"binding_name": "#valid_offer_index",
"binding_name_override": "#visible"
}
]
},
"offer_grid": {
"type": "grid",
"size": [ "100% - 60px", "100%" ],
"offset": [ 30, 0 ],
"anchor_from": "top_left",
"anchor_to": "top_left",
"grid_item_template": "store.offer_grid_item",
"grid_dimension_binding": "#offer_grid_dimensions",
"collection_name": "offers_collection",
"bindings": [
{
"binding_name": "#offer_grid_dimensions"
}
]
},
"category_grid_item": {
"type": "panel",
"size": [ "100%", 62 ], // specify a height, therefore size grid to 'size of children'
"controls": [
{
"content": {
"type": "panel",
"size": [ "100% + 2px", "100% + 1px" ],
"offset": [ -1, 0 ],
"controls": [
{
"@label": {
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ "100%", 10 ],
"offset": [ 8, 4 ],
"alignment": "top_left",
"text": "#offer_category_name",
"bindings": [
{
"binding_type": "collection",
"binding_collection_name": "category_collection",
"binding_name": "#offer_category_name"
}
]
}
},
{
"bg@banner_fill": {
"size": [ "100% - 6px", "100% - 16px" ],
"offset": [ 1, 6 ],
"controls": [
{
"button_frame": {
"type": "panel",
"size": [ 30, "100%" ],
"anchor_from": "top_left",
"anchor_to": "top_left",
"controls": [
{
"@cycle_pack_left_button": {
"$pressed_button_name": "button.cycle_offer_left",
"size": [ "100% - 5px", "100% - 5px" ],
"anchor_from": "center",
"anchor_to": "center",
"bindings": [
{
"binding_type": "collection_details",
"binding_collection_name": "category_collection"
}
]
}
}
]
}
},
{
"@store.offer_grid": {
}
},
{
"button_frame": {
"type": "panel",
"size": [ 30, "100%" ],
"anchor_from": "top_right",
"anchor_to": "top_right",
"controls": [
{
"@cycle_pack_right_button": {
"$pressed_button_name": "button.cycle_offer_right",
"size": [ "100% - 5px", "100% - 5px" ],
"anchor_from": "center",
"anchor_to": "center",
"bindings": [
{
"binding_type": "collection_details",
"binding_collection_name": "category_collection"
}
]
}
}
]
}
}
]
}
}
]
}
}
]
},
"category_grid": {
"type": "grid",
"size": [ "100%", "default" ], // height is 'default' therefore based on 'size of children'
"anchor_from": "top_left",
"anchor_to": "top_left",
"grid_item_template": "store.category_grid_item",
"grid_dimension_binding": "#category_grid_dimensions",
"collection_name": "category_collection",
"bindings": [
{
"binding_name": "#category_grid_dimensions"
}
]
},
"scrolling_content_stack": {
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"type": "stack_panel",
"controls": [
{
"@featured": {
"size": [ "100%", 90 ]
}
},
{
"@category_grid": {
"size": [ "100%", "default" ]
}
},
{
"footer": {
"type": "panel",
"visible" : "$requires_restore_button",
"size": [ "100%", 30 ],
"controls": [
{
"@restore_purchases": {
"size": [ "28%", 30 ]
}
}
]
}
}
]
},
"main_panel": {
"type": "input_panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"offset": [ 0, 0 ],
"size": [ "100%", "100%" ],
"controls": [
{
"offers@common.scrolling_panel": {
"anchor_from": "top_left",
"anchor_to": "top_left",
"$scrolling_pane_size": [ "100%", "100%" ],
"$scrolling_pane_offset": [ 0, 0 ],
"$scroll_track_size": [ 3, "100% - 4px" ],
"$scroll_track_offset": [ -2, 2 ],
"$scroll_box_size": [ "5px", "100% - 4px" ],
"$scroll_box_offset": [ -1, 2 ],
"$scroll_box_offset_touch": [ 0, 2 ],
"$scrolling_content": "store.scrolling_content_stack",
"$show_background": false,
"$bar_visible": false
}
}
]
},
"popup_dialog__no_store_connection@popup_dialog.popup_dialog": {
"$middle_button_press": "button.close_dialog",
"$message_text": "skins.buy.noConnection",
"$middle_button_text": "gui.ok",
"controls": [
{ "@popup_dialog.popup_dialog_bg": { } },
{ "@popup_dialog.popup_dialog_message": { } },
{ "@popup_dialog.popup_dialog_middle_button": { } }
]
},
"popup_dialog__restore_popup@popup_dialog.popup_dialog": {
"$middle_button_press": "button.close_dialog",
"$message_text": "store.restore.description",
"controls": [
{ "@popup_dialog.popup_dialog_bg": { } },
{ "@popup_dialog.popup_dialog_message": { } }
]
},
"popup_dialog__restore_failed@popup_dialog.popup_dialog": {
"$middle_button_press": "button.close_dialog",
"$message_text": "store.restore.failed",
"$middle_button_text": "gui.ok",
"controls": [
{ "@popup_dialog.popup_dialog_bg": { } },
{ "@popup_dialog.popup_dialog_message": {} },
{ "@popup_dialog.popup_dialog_middle_button": { } }
]
},
//--------------------------------------------------------------------------------
// Screen
//--------------------------------------------------------------------------------
"store_screen@common.base_screen": {
"button_mappings": [
{
"from_button_id": "button.menu_cancel",
"to_button_id": "button.menu_exit",
"mapping_type": "global"
},
{
"from_button_id": "button.menu_up",
"to_button_id": "button.menu_up",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_down",
"to_button_id": "button.menu_down",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_left",
"to_button_id": "button.menu_left",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_right",
"to_button_id": "button.menu_right",
"mapping_type": "global",
"scope": "view"
}
],
"$default_text_color": [ 0.3, 0.3, 0.3 ],
"$screen_content": "store.store_screen_content"
},
"store_screen_content": {
"type": "panel",
"controls": [
{
"main_panel@realms_common.main_panel_no_bottom": {
"size": "$store_screen_size",
"offset": [ 0, 0 ],
"$text_name": "store.title",
"$child_control": "store.main_panel"
}
},
{
"popup_dialog_factory": {
"type": "factory",
"control_ids": {
"no_store_connection": "@store.popup_dialog__no_store_connection",
"restore_popup": "@popup_dialog__restore_popup",
"restore_failed": "@popup_dialog__restore_failed"
}
}
}
]
}
}
+457
View File
@@ -0,0 +1,457 @@
{
"namespace": "test",
//---------------------------------------------------------------------------
// Common
//---------------------------------------------------------------------------
"button": {
"type": "button",
"$focus_id|default": "",
"$focus_override_down|default": "",
"$focus_override_up|default": "",
"$focus_override_left|default": "",
"$focus_override_right|default": "",
"focus_identifier": "$focus_id",
"focus_change_down": "$focus_override_down",
"focus_change_up": "$focus_override_up",
"focus_change_left": "$focus_override_left",
"focus_change_right": "$focus_override_right",
"focus_enabled": true,
"layer": 1,
"size": [ 100, 20 ],
"sound_name": "random.click",
"sound_volume": 1.0,
"sound_pitch": 1.0,
"default_control": "default",
"hover_control": "hover",
"pressed_control": "pressed"
},
"button_text": {
"type": "label",
"layer": 1,
"font_size": "small",
"text": "go button",
"shadow": false
},
"button_image": {
"type": "image",
"texture": "gui/newgui/NormalButtonStroke.png",
"layer": 2,
"nineslice_size": 4.0,
"uv": [ 0, 0 ],
"uv_size": [ 12, 12 ],
"controls": [
{
"@button_text": {
}
}
]
},
"go_button@button": {
"anchor_to": "top_left",
"anchor_from": "top_left",
"size": [ 40, 15 ],
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "button.menu_play",
"mapping_type": "pressed"
}
],
"controls": [
{
"default@button_image": {
}
},
{
"hover@button_image": {
}
},
{
"pressed@button_image": {
}
}
]
},
//---------------------------------------------------------------------------
// Animations
//---------------------------------------------------------------------------
"anim_guy_walk": {
"anim_type": "flip_book",
"initial_uv": [ 0, 0 ],
"frame_count": 5,
"frame_step": 23,
"fps": 8
},
"anim_guy_wait": {
"anim_type": "wait",
"duration": 3,
"next": "@anim_guy_move_back"
},
"anim_guy_move_back": {
"anim_type": "offset",
"easing": "linear",
"duration": 4,
"from": [ "85%", 0 ],
"to": [ "10%", 0 ],
"next": "@anim_guy_move_forward"
},
"anim_guy_move_forward": {
"anim_type": "offset",
"easing": "in_out_back",
"duration": 3,
"from": [ "10%", 0 ],
"to": [ "85%", 0 ],
"next": "@anim_guy_wait"
},
"anim_arrow_color": {
"anim_type": "color",
"easing": "in_out_expo",
"duration": 15,
"from": [ 0, 1, 0, 1 ],
"to": [ 1, 0, 0, 1 ]
},
"anim_color_cycle": {
"anim_type": "color",
"duration": 2,
"from": [ 0, 1, 0, 1 ],
"to": [ 1, 0, 1, 1 ],
"next": "@anim_color_cycle"
},
"anim_color_flash_wait": {
"anim_type": "wait",
"duration": 1,
"next": "@anim_color_flash"
},
"anim_color_flash": {
"anim_type": "color",
"duration": 0.2,
"from": [ 0, 0, 0, 1 ],
"to": [ 1, 0.25, 0, 1 ],
"next": "@anim_color_flash_wait"
},
"anim_move": {
"anim_type": "offset",
"duration": 10
},
"anim_move_along_top@anim_move": {
"from": [ "2%", "20%" ],
"to": [ "98%", "20%" ],
"duration": 5,
"easing": "out_bounce",
"next": "@anim_move_along_right"
},
"anim_move_along_right@anim_move": {
"duration": 1,
"from": [ "98%", "20%" ],
"to": [ "98%", "80%" ],
"easing": "in_out_back",
"next": "@anim_move_along_bottom"
},
"anim_move_along_bottom@anim_move": {
"from": [ "98%", "80%" ],
"to": [ "2%", "80%" ],
"easing": "in_bounce",
"duration": 6,
"next": "@anim_move_along_left"
},
"anim_move_along_left@anim_move": {
"from": [ "2%", "80%" ],
"to": [ "2%", "20%" ],
"duration": 1,
"easing": "in_out_circ",
"next": "@anim_move_along_top"
},
"anim_move_with_condition_forward": {
"anim_type": "offset",
"activated": "#active",
"easing": "out_expo",
"from": [ 10, -10 ],
"to": [ 240, -10 ],
"duration": 5,
"next": "@anim_move_with_condition_back"
},
"anim_move_with_condition_back": {
"anim_type": "offset",
"easing": "in_expo",
"activated": "#active",
"from": [ 240, -10 ],
"to": [ 10, -10 ],
"duration": 5,
"next": "@anim_move_with_condition_forward"
},
"anim_move_sub_square_a": {
"anim_type": "offset",
"from": [ -12, 12 ],
"to": [ 12, -12 ],
"next": "@anim_move_sub_square_b"
},
"anim_move_sub_square_b": {
"anim_type": "offset",
"from": [ 12, -12 ],
"to": [ -12, 12 ],
"next": "@anim_move_sub_square_a"
},
"anim_portal_uv_scroll": {
"anim_type": "uv",
"from": [ 0, 0 ],
"to": [ 0, 256 ],
"duration": 4,
"next": "@anim_portal_uv_scroll"
},
"anim_portal_scale_big": {
"anim_type": "size",
"easing": "in_sine",
"start_event": "button.menu_achievements",
"from": [ 16, 16 ],
"to": [ 64, 32 ],
"duration": 1.5,
"next": "@anim_portal_scale_small"
},
"anim_portal_scale_small": {
"anim_type": "size",
"easing": "out_sine",
"from": [ 64, 32 ],
"to": [ 16, 16 ],
"duration": 1.5,
"next": "@anim_portal_scale_big"
},
//---------------------------------------------------------------------------
// Pieces
//---------------------------------------------------------------------------
"arrow_image": {
"type": "image",
"texture": "gui/newgui/arrow.png",
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"uv_size": [ 16, 13 ],
"uv": [ 0, 0 ],
"size": [ 16, 13 ],
"color": "@anim_arrow_color"
},
"walking_image": {
"type": "image",
"texture": "gui/newgui/walking.png",
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ 23, 36 ],
"uv_size": [ 23, 36 ],
"uv": "@anim_guy_walk",
"offset": "@anim_guy_move_forward"
},
"portal_image": {
"type": "image",
"anchor_from": "center",
"anchor_to": "center",
"offset": [ 0, 0 ],
"texture": "portal.png",
"size": "@anim_portal_scale_big",
"uv": "@anim_portal_uv_scroll",
"uv_size": [ 16, 16 ]
},
"sub_square_thing": {
"type": "image",
"anchor_from": "center",
"anchor_to": "center",
"size": [ 4, 4 ],
"texture": "gui/newgui/Dot2.png",
"layer": 3,
"uv": [ 0, 0 ],
"uv_size": [ 9, 9 ],
"color": "@anim_color_cycle",
"offset": "@anim_move_sub_square_a"
},
"square_thing": {
"type": "image",
"anchor_from": "top_left",
"anchor_to": "center",
"size": [ 10, 10 ],
"texture": "gui/newgui/NormalButtonNoStroke.png",
"layer": 2,
"nineslice_size": 4.0,
"uv": [ 0, 0 ],
"uv_size": [ 10, 10 ],
"color": "@anim_color_cycle",
"offset": "@anim_move_along_top",
"controls": [
{
"@sub_square_thing": { }
}
]
},
//---------------------------------------------------------------------------
// Screens
//---------------------------------------------------------------------------
"root_panel": {
"type": "panel",
"size": [ "90%", "90%" ]
},
"anchored_panel": {
"type": "image",
"anchor_from": "top_left",
"anchor_to": "top_left",
"texture": "gui/newgui/NormalButtonNoStroke.png",
"layer": 2,
"nineslice_size": 4.0,
"uv": [ 0, 0 ],
"uv_size": [ 10, 10 ]
},
"panel_1@anchored_panel": {
"size": [ "100%", "25%" ],
"offset": [ 0, 0 ],
"controls": [
{
"@go_button": { }
},
{
"@square_thing": {
"color": "@anim_color_flash",
"offset": "@anim_move_with_condition_forward",
"anchor_from": "bottom_left",
"anchor_to": "bottom_left"
}
}
]
},
"panel_2@anchored_panel": {
"size": [ "100%", "25%" ],
"offset": [ 0, "25%" ],
"controls": [
{
"@square_thing": { }
}
]
},
"panel_3@anchored_panel": {
"size": [ "100%", "25%" ],
"offset": [ 0, "50%" ],
"controls": [
{
"portal@portal_image": { }
},
{
"@go_button": {
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "button.menu_achievements",
"mapping_type": "pressed"
}
]
}
}
]
},
"panel_4@anchored_panel": {
"size": [ "100%", "25%" ],
"offset": [ 0, "75%" ],
"controls": [
{
"@walking_image": { }
},
{
"@arrow_image": { }
}
]
},
"anims@common.base_screen": {
"send_telemetry": false,
"button_mappings": [
{
"from_button_id": "button.menu_cancel",
"to_button_id": "button.menu_exit",
"mapping_type": "global"
},
{
"from_button_id": "button.menu_up",
"to_button_id": "button.menu_up",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_down",
"to_button_id": "button.menu_down",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_left",
"to_button_id": "button.menu_left",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_right",
"to_button_id": "button.menu_right",
"mapping_type": "global",
"scope": "view"
}
],
"$screen_content": "test.test_anims_screen_content"
},
"test_anims_screen_content": {
"type": "panel",
"controls": [
{
"@root_panel": {
"controls": [
{
"panel_1@panel_1": { }
},
{
"panel_2@panel_2": { }
},
{
"panel_3@panel_3": { }
},
{
"panel_4@panel_4": { }
}
]
}
}
]
}
}
+187
View File
@@ -0,0 +1,187 @@
{
"namespace": "toast_screen",
"toast_renderer": {
"type": "custom",
"renderer": "toast_renderer"
},
"popup_anim_wait": {
"anim_type": "wait",
"duration": "$display_time",
"next": "@toast_screen.popup_anim_end"
},
"popup_anim_start": {
"anim_type": "offset",
"easing": "spring",
"from": [ 0, 0 ],
"to": "$popup_distance",
"duration": "$transition_in_time",
"next": "@toast_screen.popup_anim_wait"
},
"popup_anim_end": {
"anim_type": "offset",
"easing": "in_sine",
"to": [ 0, 0 ],
"from": "$popup_distance",
"duration": "$transition_out_time",
"destroy_at_end": "popup",
"end_event": "toast_end"
},
"xbox_icon": {
"type": "image",
"texture": "gui/newgui/xbox4.png",
"uv": [ 0, 0 ],
"uv_size": [ 27, 27 ],
"size": [ 13, 13 ]
},
"gamer_score_icon": {
"type": "image",
"texture": "gui/achievements/g.png",
"uv": [ 0, 0 ],
"uv_size": [ 11, 11 ],
"size": [ 7, 7 ]
},
"toast_label": {
"type": "label",
"color": [ 1.0, 1.0, 1.0 ],
"layer": 1,
"shadow": false,
"font_size": "large",
"offset": [ 22, 5 ],
"clip": true,
"size": [ "100%-26px", "100%" ]
},
"popup@common.input_panel": {
"anchor_from": "top_right",
"anchor_to": "bottom_right",
"size": "$popup_size",
"offset": "$popup_offset",
"controls": [
{
"background": {
"type": "image",
"uv": [ 0, 0 ],
"nineslice_size": 4.0,
"uv_size": [ 16, 16 ],
"texture": "gui/greyBorder.png"
}
},
{
"icon_trophy@toast_screen.xbox_icon": {
"offset": [ 6, 0 ],
"layer": 1,
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"bindings": [
{
"binding_name": "#is_achievement",
"binding_name_override": "#visible"
}
]
}
},
{
"icon_xbox@toast_screen.xbox_icon": {
"offset": [ 6, 0 ],
"layer": 1,
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"bindings": [
{
"binding_name": "#is_invite",
"binding_name_override": "#visible"
}
]
}
},
{
"title@toast_screen.toast_label": {
"text": "#toast_title",
"color": [ 1.0, 1.0, 1.0 ],
"size": [ "100% - 27px", "100% - 10px" ],
"offset": [ 22, 5 ],
"alignment": "top_left",
"anchor_from": "top_left",
"anchor_to": "top_left",
"bindings": [
{
"binding_name": "#toast_title"
}
]
}
},
{
"subtitle": {
"type": "stack_panel",
"orientation": "horizontal",
"offset": [ 22, -1 ],
"size": [ "100%-26px", "50%" ],
"anchor_from": "bottom_left",
"anchor_to": "bottom_left",
"controls": [
{
"icon_padding": {
"type": "panel",
"size": [ 9, 7 ],
"bindings": [
{
"binding_name": "#is_achievement",
"binding_name_override": "#visible"
}
],
"controls": [
{
"gamer_score_icon@toast_screen.gamer_score_icon": {
"offset": [ 0, 2 ],
"layer": 1,
"anchor_from": "left_middle",
"anchor_to": "left_middle"
}
}
]
}
},
{
"subtext@toast_screen.toast_label": {
"size": [ "default", 10 ],
"text": "#toast_subtitle",
"alignment": "bottom_left",
"bindings": [
{
"binding_name": "#toast_subtitle"
}
]
}
}
]
}
}
],
"anims": [
"@toast_screen.popup_anim_start"
]
},
"toast_screen@common.base_screen": {
"send_telemetry": false,
"screen_not_flushable": true,
"render_game_behind": true,
"is_showing_menu": false,
"is_modal": true,
"low_frequency_rendering": true,
"should_steal_mouse": false,
"render_only_when_topmost": false,
"screen_draws_last": true,
"factory": {
"name": "toast_factory",
"control_name": "popup@toast_screen.popup"
}
}
}
+320
View File
@@ -0,0 +1,320 @@
{
"namespace": "trialUpsell",
"normal_stroke_button": {
"type": "image",
"texture": "gui/newgui/NormalButtonStroke.png",
"layer": 2,
"nineslice_size": 4.0,
"uv": [ 0, 0 ],
"uv_size": [ 12, 12 ]
},
"normal_description_label": {
"type": "label",
"color": [ 0.25, 0.25, 0.25, 1.0 ],
"alignment": "top_left",
"wrap": true,
"anchor_from": "center",
"anchor_to": "center",
"layer": 2
},
"trialTime": {
"type": "custom",
"renderer": "trial_time_renderer",
"size": [ "default", 10 ],
"offset": [ 0, "1%" ],
"layer": 3,
"anchor_from": "top_left",
"anchor_to": "top_left"
},
"trial_label": {
"type": "label",
"offset": [ 0, "3%" ],
"color": [ 0.25, 0.25, 0.25, 1.0 ],
"alignment": "top_middle",
"layer": 2,
"text": "trial.upsell.trialLabel",
"anchor_from": "center",
"anchor_to": "center"
},
"trial_description_panel": {
"type": "panel",
"size": [ "94%", "100%" ],
"offset": [ 0, "15%" ],
"controls": [
{ "description_text@normal_description_label": { "text": "trial.upsell.description" } }
]
},
"trial_expired_description_panel": {
"type": "panel",
"size": [ "94%", "100%" ],
"offset": [ 0, "15%" ],
"controls": [
{ "line1@normal_description_label": { "text": "trial.upsell.expiredDescription.line1" } },
{
"line2@normal_description_label": {
"offset": [ 0, "23%" ],
"text": "trial.upsell.expiredDescription.line2"
}
},
{
"line3@normal_description_label": {
"offset": [ 0, "30%" ],
"text": "trial.upsell.expiredDescription.line3"
}
},
{
"line4@normal_description_label": {
"offset": [ 0, "37%" ],
"text": "trial.upsell.expiredDescription.line4"
}
},
{
"line5@normal_description_label": {
"offset": [ 0, "44%" ],
"text": "trial.upsell.expiredDescription.line5"
}
}
]
},
"continue_button@common.button": {
"$pressed_button_name": "button.menu_continue",
"default_control": "default",
"hover_control": "hover",
"pressed_control": "pressed",
"controls": [
{
"default@common.button_state_default": {
"controls": [
{
"@common.button_text": {
"text": "demo.help.later"
}
}
]
}
},
{
"hover@common.button_state_hover": {
"controls": [
{
"@common.button_text": {
"text": "demo.help.later",
"color": [ 1.0, 1.0, 0.2 ]
}
}
]
}
},
{
"pressed@common.button_state_pressed": {
"controls": [
{
"@common.button_text": {
"text": "demo.help.later",
"color": [ 1.0, 1.0, 0.2 ],
"alpha": 0.65
}
}
]
}
}
]
},
"buy_button@common.button": {
"$pressed_button_name": "button.menu_buy_game",
"default_control": "default",
"hover_control": "hover",
"pressed_control": "pressed",
"controls": [
{
"default@common.button_state_default": {
"controls": [
{
"@common.button_text": {
"text": "demo.help.buy"
}
}
]
}
},
{
"hover@common.button_state_hover": {
"controls": [
{
"@common.button_text": {
"text": "demo.help.buy",
"color": [ 1.0, 1.0, 0.2 ]
}
}
]
}
},
{
"pressed@common.button_state_pressed": {
"controls": [
{
"@common.button_text": {
"text": "demo.help.buy",
"color": [ 1.0, 1.0, 0.2 ],
"alpha": 0.65
}
}
]
}
}
]
},
"root_panel": {
"type": "panel",
"size": [ "80%", "70%" ],
"anchor_to": "center",
"anchor_from": "center"
},
"common_panel": {
"type": "panel",
"controls": [
{ "bg_image@common.dialog_background_opaque": { "layer": 1 } },
{ "@trial_label": { } },
{
"buy@buy_button": {
"size": [ "48%", "15%" ],
"offset": [ "2%", "-3%" ],
"anchor_to": "bottom_left",
"anchor_from": "bottom_left"
}
},
{
"continue@continue_button": {
"size": [ "48%", "15%" ],
"offset": [ "-2%", "-3%" ],
"anchor_to": "bottom_right",
"anchor_from": "bottom_right"
}
}
]
},
"upsell_panel": {
"type": "panel",
"controls": [
{ "@trial_description_panel": { } }
]
},
"upsell_expired_panel": {
"type": "panel",
"controls": [
{ "@trial_expired_description_panel": { } }
]
},
"trial_upsell_screen@common.base_screen": {
"button_mappings": [
{
"from_button_id": "button.menu_cancel",
"to_button_id": "button.menu_exit",
"mapping_type": "global"
},
{
"from_button_id": "button.menu_up",
"to_button_id": "button.menu_up",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_down",
"to_button_id": "button.menu_down",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_left",
"to_button_id": "button.menu_left",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_right",
"to_button_id": "button.menu_right",
"mapping_type": "global",
"scope": "view"
}
],
"$screen_content": "trialUpsell.trial_upsell_screen_content"
},
"trial_upsell_screen_content": {
"type": "panel",
"controls": [
{ "@trialTime": { } },
{
"@root_panel": {
"controls": [
{ "@common_panel": { } },
{ "@trial_description_panel": { } }
]
}
}
]
},
"trial_upsell_expired_screen@common.base_screen": {
"button_mappings": [
{
"from_button_id": "button.menu_cancel",
"to_button_id": "button.menu_exit",
"mapping_type": "global"
},
{
"from_button_id": "button.menu_up",
"to_button_id": "button.menu_up",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_down",
"to_button_id": "button.menu_down",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_left",
"to_button_id": "button.menu_left",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_right",
"to_button_id": "button.menu_right",
"mapping_type": "global",
"scope": "view"
}
],
"$screen_content": "trialUpsell.trial_upsell_expired_screen_content"
},
"trial_upsell_expired_screen_content": {
"type": "panel",
"controls": [
{ "@trialTime": { } },
{
"@root_panel": {
"controls": [
{ "@common_panel": { } },
{ "@trial_expired_description_panel": { } }
]
}
}
]
}
}
File diff suppressed because it is too large. Load diff
+120
View File
@@ -0,0 +1,120 @@
{
"namespace": "common-classic",
"button": {
"type": "button",
"$focus_id|default": "",
"$focus_override_down|default": "",
"$focus_override_up|default": "",
"$focus_override_left|default": "",
"$focus_override_right|default": "",
"focus_identifier": "$focus_id",
"focus_change_down": "$focus_override_down",
"focus_change_up": "$focus_override_up",
"focus_change_left": "$focus_override_left",
"focus_change_right": "$focus_override_right",
"focus_enabled": true,
"layer": 1,
"size": [ 100, 20 ],
"sound_name": "random.click",
"sound_volume": 1.0,
"sound_pitch": 1.0,
"default_control": "default",
"hover_control": "hover",
"pressed_control": "pressed",
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "button.menu_select",
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_ok",
"to_button_id": "button.menu_select",
"mapping_type": "focused"
}
]
},
"button_state_default": {
"type": "image",
"texture": "gui/newgui/classic-button.png",
"nineslice_size": 2.0,
"uv_size": [ 5, 5 ]
},
"button_state_hover@button_state_default": {
"texture": "gui/newgui/classic-button-hover.png"
},
"button_state_pressed@button_state_default": {
"texture": "gui/newgui/classic-button-pressed.png"
},
"toggle@common.toggle": {
"$unchecked_control": "common-classic.toggle_unchecked_state",
"$checked_control": "common-classic.toggle_checked_state",
"$unchecked_hover_control": "common-classic.toggle_unchecked_hovered_state",
"$checked_hover_control": "common-classic.toggle_checked_hovered_state",
"$unchecked_locked_control": "common-classic.toggle_unchecked_hovered_state",
"$checked_locked_control": "common-classic.toggle_checked_hovered_state"
},
"toggle_checked_state": {
"type": "image",
"texture": "gui/touchgui.png",
"layer": 2,
"nineslice_size": 3.0,
"uv": [ 199, 206 ],
"uv_size": [ 38, 20 ],
"size": [ 38, 20 ]
},
"toggle_unchecked_state": {
"type": "image",
"texture": "gui/touchgui.png",
"layer": 2,
"nineslice_size": 3.0,
"uv": [ 160, 206 ],
"uv_size": [ 38, 20 ],
"size": [ 38, 20 ]
},
"toggle_checked_hovered_state": {
"type": "panel",
"size": [ 38, 20 ],
"controls": [
{ "@toggle_checked_state": { } },
{
"hover": {
"type": "image",
"texture": "gui/touchgui.png",
"layer": 3,
"nineslice_size": 3.0,
"uv": [ 160, 226 ],
"uv_size": [ 38, 20 ]
}
}
]
},
"toggle_unchecked_hovered_state": {
"type": "panel",
"size": [ 38, 20 ],
"controls": [
{ "@toggle_unchecked_state": { } },
{
"hover": {
"type": "image",
"texture": "gui/touchgui.png",
"layer": 3,
"nineslice_size": 3.0,
"uv": [ 199, 226 ],
"uv_size": [ 38, 20 ]
}
}
]
}
}
+30
View File
@@ -0,0 +1,30 @@
{
"namespace": "ui_holo_cursor",
"special_render": {
"type": "custom",
"renderer": "ui_holo_cursor"
},
"ui_holo_cursor@common.base_screen": {
"send_telemetry": false,
"screen_not_flushable": true,
"render_game_behind": true,
"is_showing_menu": false,
"is_modal": true,
"should_steal_mouse": false,
"render_only_when_topmost": false,
"screen_draws_last": true,
"low_frequency_rendering": true,
"$screen_content": "ui_holo_cursor.ui_holo_cursor_content"
},
"ui_holo_cursor_content": {
"type": "panel",
"controls": [
{
"@special_render": { }
}
]
}
}
+111
View File
@@ -0,0 +1,111 @@
{
"namespace": "vr_align_screen",
"text_message": {
"type": "label",
"wrap": true,
"anchor_to": "center",
"anchor_from": "center",
"layer": 2,
"offset": [ 0, 32 ],
"alignment": "center",
"shadow": true,
"text": "#text",
"color": [ 1.0, 1.0, 1.0, 1.0 ],
"bindings": [
{
"binding_name": "#message",
"binding_name_override": "#text"
}
]
},
"text_panel": {
"type": "panel",
"size": [ "50%", "100%" ],
"anchor_to": "center",
"anchor_from": "center",
"controls": [
{
"@text_message": { }
}
]
},
"warning_label": {
"type": "label",
"anchor_to": "center",
"anchor_from": "center",
"layer": 2,
"alignment": "center",
"offset": [ 0, 62 ],
"size": [ "70%", "100%" ],
"shadow": true,
"text": "#text",
"color": [ 0.8, 0.7, 0.0, 1.0 ],
"bindings": [
{
"binding_name": "#warning",
"binding_name_override": "#text"
},
{
"binding_name": "#showwarning",
"binding_name_override": "#visible"
}
]
},
"vrinfo_label": {
"type": "label",
"anchor_to": "center",
"anchor_from": "center",
"layer": 2,
"wrap": true,
"alignment": "center",
"offset": [ 0, -32 ],
"size": [ "70%", "100%" ],
"shadow": true,
"text": "vr.alignscreen.info",
"color": [ 1.0, 1.0, 1.0, 1.0 ]
},
"special_render": {
"type": "custom",
"renderer": "vr_align_renderer"
},
"vr_align_screen@common.base_screen": {
"send_telemetry": false,
"button_mappings": [
{
"from_button_id": "button.controller_select",
"to_button_id": "button.controller_select",
"mapping_type": "global"
},
{
"from_button_id": "button.menu_cancel",
"to_button_id": "button.menu_exit",
"mapping_type": "global"
}
],
"$screen_content": "vr_align_screen.vr_align_screen_content"
},
"vr_align_screen_content": {
"type": "panel",
"controls": [
{
"@text_panel": { }
},
{
"@warning_label": { }
},
{
"@vrinfo_label": { }
},
{
"@special_render": { }
}
]
}
}
+607
View File
@@ -0,0 +1,607 @@
{
"namespace": "vrscheme",
"win10_default_button": {
"type": "image",
"nineslice_size": 2.0,
"texture": "gui/newgui/ButtonWithBorder.png",
"layer": 1,
"uv": [ 0, 0 ],
"uv_size": [ 6, 6 ]
},
"win10_hover_button@vrscheme.win10_default_button": {
"texture": "gui/newgui/ButtonWithBorderHover.png"
},
"win10_pressed_button@vrscheme.win10_default_button": {
"texture": "gui/newgui/ButtonWithBorderPressed.png"
},
"gamepad_helpers": {
"type": "panel",
"size": [ 100, 10 ],
"offset": [ 0, "45%" ],
"controls": [
{
"@common.gamepad_helper_a": {
"size": [ "50%", "100%" ],
"offset": [ 0, "2%" ],
"anchor_from": "center",
"anchor_to": "center"
}
}
]
},
"rift_options_bg": {
"type": "panel",
"controls": [
{
"bg_image@common.dialog_background_hollow_2": {
"layer": 1
}
}
]
},
"rift_button_text": {
"type": "label",
"layer": 4,
"color": [ 0.2, 0.2, 0.2, 1.0 ],
"text": "$rift_button_display_text",
"alignment": "center"
},
"rift_control_button@common.button": {
"size": [ "50%-2px", "100%" ],
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "$pressed_button_name",
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_ok",
"to_button_id": "$pressed_button_name",
"mapping_type": "focused"
}
],
"controls": [
{
"default@vrscheme.win10_default_button": {
"controls": [
{ "@$rift_button": { } }
]
}
},
{
"hover@vrscheme.win10_hover_button": {
"controls": [
{
"@$rift_button": {
"color": [ 1.0, 1.0, 0.0, 1.0 ]
}
}
]
}
},
{
"pressed@vrscheme.win10_pressed_button": {
"controls": [
{
"@$rift_button": {
"color": [ 1.0, 1.0, 0.0, 1.0 ],
"alpha": 0.65
}
}
]
}
}
],
"property_bag": {
"experimental_radio_button_state": false,
"classic_radio_button_state": false
},
"bindings": [
{
"binding_type": "view",
"source_control_name": "vr_classic_scheme_panel_button",
"source_property_name": "#toggle_state",
"target_property_name": "classic_radio_button_state"
}
]
},
"play_button@vrscheme.rift_control_button": {
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ "50%-2px", "100%" ],
"$pressed_button_name": "button.menu_exit",
"$rift_button": "rift_button_text",
"$rift_button_display_text": "gui.ok"
},
"more_information_button@vrscheme.rift_control_button": {
"anchor_from": "top_right",
"anchor_to": "top_right",
"size": [ "50%-2px", "100%" ],
"$pressed_button_name": "button.menu_vr_more_information",
"$rift_button": "rift_button_text",
"$rift_button_display_text": "vr.moreInformation"
},
"button_panel": {
"type": "panel",
"anchor_from": "bottom_left",
"anchor_to": "bottom_left",
"size": [ "100%-10px", 25 ],
"offset": [ 5, -5 ],
"controls": [
{ "@vrscheme.more_information_button": { } },
{ "@vrscheme.play_button": { } }
]
},
"rift_control_title": {
"type": "label",
"layer": 4,
"size": [ "90%", "100%" ],
"offset": [ 0, 8 ],
"text": "vr.controls.title",
"alignment": "top_middle",
"color": [ 0.2, 0.2, 0.2, 1.0 ]
},
"plain_text": {
"type": "label",
"anchor_from": "top_left",
"anchor_to": "top_left",
"layer": 4,
"text": "vr.controls.title",
"wrap": true,
"shadow": false,
"alignment": "top_left",
"color": [ 0.0, 0.0, 0.0, 1.0 ]
},
"vr_scheme_classic_title@vrscheme.plain_text": {
"text": "vr.controls.title.classic",
"color": [ 1.0, 1.0, 1.0, 1.0 ],
"offset": [ 15, 4 ],
"size": [ "100%-15px", "100%-4px" ]
},
"vr_scheme_classic_description@vrscheme.plain_text": {
"text": "vr.controls.classicDescription",
"color": [ 0.72, 0.72, 0.72, 1.0 ],
"offset": [ 15, 15 ],
"size": [ "100%-15px", "100%-15px" ]
},
"vr_scheme_experimental_title@vrscheme.plain_text": {
"text": "vr.controls.title.experimental",
"color": [ 1.0, 1.0, 1.0, 1.0 ],
"offset": [ 15, 4 ],
"size": [ "100%-15px", "100%-4px" ]
},
"vr_scheme_experimental_description@vrscheme.plain_text": {
"text": "vr.controls.experimentalDescription",
"color": [ 0.72, 0.72, 0.72, 1.0 ],
"offset": [ 15, 15 ],
"size": [ "100%-15px", "100%-15px" ]
},
"vr_scheme_shared_more_info@vrscheme.plain_text": {
"text": "vr.controls.sharedDescription",
"color": [ 1.0, 1.0, 1.0, 1.0 ]
},
"vr_experimental_scheme_panel@common.toggle": {
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ "100%", "45%" ],
"$unchecked_control": "vrscheme.vr_experimental_scheme_panel_unchecked",
"$checked_control": "vrscheme.vr_experimental_scheme_panel_checked",
"$unchecked_hover_control": "vrscheme.vr_experimental_scheme_panel_unchecked_hover",
"$checked_hover_control": "vrscheme.vr_experimental_scheme_panel_checked_hover",
"$unchecked_locked_control": "vrscheme.vr_experimental_scheme_panel_unchecked",
"$checked_locked_control": "vrscheme.vr_experimental_scheme_panel_checked",
"$radio_toggle_group": true,
"$toggle_name": "radio_button_group",
"$toggle_group_default_selected": 0,
"$toggle_group_forced_index": 0,
"$toggle_state_binding_name": "#enhanced_radio_state"
},
"vr_experimental_scheme_panel_unchecked": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"controls": [
{
"@vrscheme.vr_scheme_experimental_title": { }
},
{
"@vrscheme.vr_scheme_experimental_description": { }
},
{
"@common.radio_toggle_unchecked_state": {
"anchor_from": "top_left",
"anchor_to": "top_left"
}
}
]
},
"vr_experimental_scheme_panel_unchecked_hover@vr_experimental_scheme_panel_unchecked": {
"controls": [
{
"@vrscheme.vr_scheme_experimental_title": { }
},
{
"@vrscheme.vr_scheme_experimental_description": { }
},
{
"@common.radio_toggle_unchecked_hover_state": {
"anchor_from": "top_left",
"anchor_to": "top_left"
}
}
]
},
"vr_experimental_scheme_panel_checked": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"controls": [
{
"@vrscheme.vr_scheme_experimental_title": { }
},
{
"@vrscheme.vr_scheme_experimental_description": { }
},
{
"@common.radio_toggle_checked_state": {
"anchor_from": "top_left",
"anchor_to": "top_left"
}
}
]
},
"vr_experimental_scheme_panel_checked_hover@vr_experimental_scheme_panel_checked": {
"controls": [
{
"@vrscheme.vr_scheme_experimental_title": { }
},
{
"@vrscheme.vr_scheme_experimental_description": { }
},
{
"@common.radio_toggle_checked_hover_state": {
"anchor_from": "top_left",
"anchor_to": "top_left"
}
}
]
},
"vr_classic_scheme_panel@common.toggle": {
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ "100%", "35%" ],
"offset": [ 0, "45%" ],
"$unchecked_control": "vrscheme.vr_classic_scheme_panel_unchecked",
"$checked_control": "vrscheme.vr_classic_scheme_panel_checked",
"$unchecked_hover_control": "vrscheme.vr_classic_scheme_panel_unchecked_hover",
"$checked_hover_control": "vrscheme.vr_classic_scheme_panel_checked_hover",
"$unchecked_locked_control": "vrscheme.vr_classic_scheme_panel_unchecked",
"$checked_locked_control": "vrscheme.vr_classic_scheme_panel_checked",
"$radio_toggle_group": true,
"$toggle_name": "radio_button_group",
"$toggle_group_default_selected": 0,
"$toggle_group_forced_index": 1,
"$toggle_state_binding_name": "#classic_radio_state"
},
"vr_classic_scheme_panel_unchecked": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"controls": [
{
"@vrscheme.vr_scheme_classic_title": { }
},
{
"@vrscheme.vr_scheme_classic_description": { }
},
{
"@common.radio_toggle_unchecked_state": {
"anchor_from": "top_left",
"anchor_to": "top_left"
}
}
]
},
"vr_classic_scheme_panel_unchecked_hover@vr_classic_scheme_panel_unchecked": {
"controls": [
{
"@vrscheme.vr_scheme_classic_title": { }
},
{
"@vrscheme.vr_scheme_classic_description": { }
},
{
"@common.radio_toggle_unchecked_hover_state": {
"anchor_from": "top_left",
"anchor_to": "top_left"
}
}
]
},
"vr_classic_scheme_panel_checked": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"controls": [
{
"@vrscheme.vr_scheme_classic_title": { }
},
{
"@vrscheme.vr_scheme_classic_description": { }
},
{
"@common.radio_toggle_checked_state": {
"anchor_from": "top_left",
"anchor_to": "top_left"
}
}
]
},
"vr_classic_scheme_panel_checked_hover@vr_classic_scheme_panel_checked": {
"controls": [
{
"@vrscheme.vr_scheme_classic_title": { }
},
{
"@vrscheme.vr_scheme_classic_description": { }
},
{
"@common.radio_toggle_checked_hover_state": {
"anchor_from": "top_left",
"anchor_to": "top_left"
}
}
]
},
"vr_shared_info_panel": {
"type": "panel",
"anchor_from": "bottom_left",
"anchor_to": "bottom_left",
"size": [ "100%", "20%" ],
"controls": [
{
"@vrscheme.vr_scheme_shared_more_info": { }
}
]
},
"vr_schemes_content_panel": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ "100%-24px", "100%-60px" ],
"offset": [ 12, 26 ],
"controls": [
{ "@vrscheme.vr_experimental_scheme_panel": { } },
{ "vr_classic_scheme_panel_button@vrscheme.vr_classic_scheme_panel": { } },
{ "@vrscheme.vr_shared_info_panel": { } }
]
},
"rift_options_panel": {
"type": "panel",
"anchor_from": "center",
"anchor_to": "center",
"size": [ "80%", "80%" ],
"controls": [
{ "@vrscheme.rift_options_bg": { } },
{ "@vrscheme.rift_control_title": { } },
{ "@vrscheme.vr_schemes_content_panel": { } },
{ "@vrscheme.button_panel": { } }
]
},
//---------------------------------------------------------------------------
// More Information
//---------------------------------------------------------------------------
"rift_information_button@common.button": {
"size": [ "50%-2px", "100%" ],
"button_mappings": [
{
"from_button_id": "button.menu_select",
"to_button_id": "$pressed_button_name",
"mapping_type": "pressed"
},
{
"from_button_id": "button.menu_ok",
"to_button_id": "$pressed_button_name",
"mapping_type": "focused"
}
],
"controls": [
{
"default@vrscheme.win10_default_button": {
"controls": [
{ "@$rift_button": { } }
]
}
},
{
"hover@vrscheme.win10_hover_button": {
"controls": [
{
"@$rift_button": {
"color": [ 1.0, 1.0, 0.0, 1.0 ]
}
}
]
}
},
{
"pressed@vrscheme.win10_pressed_button": {
"controls": [
{
"@$rift_button": {
"color": [ 1.0, 1.0, 0.0, 1.0 ],
"alpha": 0.65
}
}
]
}
}
]
},
"back_button@vrscheme.rift_information_button": {
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ "50%-2px", "100%" ],
"$pressed_button_name": "button.menu_vr_back",
"$rift_button": "rift_button_text",
"$rift_button_display_text": "gui.back"
},
"more_options_button@vrscheme.rift_information_button": {
"anchor_from": "top_right",
"anchor_to": "top_right",
"size": [ "50%-2px", "100%" ],
"$pressed_button_name": "button.menu_vr_more_options",
"$rift_button": "rift_button_text",
"$rift_button_display_text": "vr.moreOptions"
},
"information_button_panel": {
"type": "panel",
"anchor_from": "bottom_left",
"anchor_to": "bottom_left",
"size": [ "100%-10px", 25 ],
"offset": [ 5, -5 ],
"controls": [
{ "@vrscheme.more_options_button": { } },
{ "@vrscheme.back_button": { } }
]
},
"vr_scheme_information_label@vrscheme.plain_text": {
"text": "vr.detailedInformation",
"color": [ 1.0, 1.0, 1.0, 1.0 ]
},
"vr_scheme_go_to_vr_label@vrscheme.plain_text": {
"text": "vr.detailedInformationLink",
"color": [ 1.0, 1.0, 1.0, 1.0 ]
},
"vr_information_text_panel": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ "100%", "70%" ],
"controls": [
{
"@vrscheme.vr_scheme_information_label": { }
}
]
},
"vr_go_to_vr_text_panel": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ "100%", "30%" ],
"offset": [ 0, "70%" ],
"controls": [
{
"@vrscheme.vr_scheme_go_to_vr_label": { }
}
]
},
"vr_information_panel": {
"type": "panel",
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ "100%-24px", "100%-60px" ],
"offset": [ 12, 26 ],
"controls": [
{
"@vrscheme.vr_information_text_panel": { }
},
{
"@vrscheme.vr_go_to_vr_text_panel": { }
}
]
},
"rift_information_panel": {
"type": "panel",
"anchor_from": "center",
"anchor_to": "center",
"size": [ "65%", "80%" ],
"controls": [
{ "@vrscheme.rift_options_bg": { } },
{ "@vrscheme.rift_control_title": { } },
{ "@vrscheme.vr_information_panel": { } },
{ "@vrscheme.information_button_panel": { } }
]
},
//---------------------------------------------------------------------------
// Screens
//---------------------------------------------------------------------------
"scheme_screen@common.base_screen": {
"button_mappings": [
{
"from_button_id": "button.menu_cancel",
"to_button_id": "button.menu_cancel",
"mapping_type": "global"
}
],
"$screen_content": "vrscheme.scheme_screen_content"
},
"scheme_screen_content": {
"type": "panel",
"controls": [
{ "@vrscheme.rift_options_panel": { } }
]
},
"vr_information_screen@common.base_screen": {
"button_mappings": [
{
"from_button_id": "button.menu_cancel",
"to_button_id": "button.menu_vr_back",
"mapping_type": "global"
}
],
"$screen_content": "vrscheme.vr_information_screen_content"
},
"vr_information_screen_content": {
"type": "panel",
"controls": [
{ "@vrscheme.rift_information_panel": { } }
]
}
}
+270
View File
@@ -0,0 +1,270 @@
/********************************************************
+* (c) Mojang. All rights reserved *
+* (c) Microsoft. All rights reserved. *
+*********************************************************/
{
"namespace": "xbl_failed",
"Xbox_icon": {
"type": "image",
"texture": "gui/newgui/xbox4.png",
"layer": 3,
"uv": [ 0, 0 ],
"uv_size": [ 27, 27 ],
"size": [ 20, 20 ]
},
"xbl_signin_label": {
"type": "panel",
"layer": 2,
"controls": [
{
"@Xbox_icon": {
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"offset": [24, 0]
}
},
{
"@common.new_button_label": {
"text": "xbox.signin"
}
}
]
},
"notnow_label@common.new_button_label": {
"text": "xbox.notnow"
},
"xbl_signin_button@common.new_button": {
"$pressed_button_name": "button.xbl_signin",
"controls": [
{
"default@common.new_button_state_default": {
"controls": [
{
"@xbl_failed.xbl_signin_label": { }
}
]
}
},
{
"hover@common.new_button_state_hover": {
"controls": [
{
"@xbl_failed.xbl_signin_label": { }
}
]
}
},
{
"pressed@common.new_button_state_pressed": {
"controls": [
{
"@xbl_failed.xbl_signin_label": {
"offset": [ 0, 1 ]
}
}
]
}
}
]
},
"notnow_button@common.new_button": {
"$pressed_button_name": "button.xbl_notnow",
"controls": [
{
"default@common.new_button_state_default": {
"controls": [
{
"@xbl_failed.notnow_label": { }
}
]
}
},
{
"hover@common.new_button_state_hover": {
"controls": [
{
"@xbl_failed.notnow_label": { }
}
]
}
},
{
"pressed@common.new_button_state_pressed": {
"controls": [
{
"@xbl_failed.notnow_label": {
"offset": [ 0, 1 ]
}
}
]
}
}
]
},
"title_image_panel": {
"type": "panel",
"controls": [
{
"message_label": {
"type": "label",
"size": [ "100%", "100%" ],
"anchor_from": "right_middle",
"anchor_to": "right_middle",
"offset": [0, 16],
"alignment": "top_middle",
"wrap": true,
"clip": true,
"text": "#message",
"layer": 2,
"color": [ 1,1,1 ],
"bindings": [
{
"binding_name": "#message"
}
]
}
}
]
},
"main_panel": {
"type": "input_panel",
"size": [ "80%", "65%" ],
"variables": [
{
"requires": "$desktop_screen",
"$xbox_button_size": [ "100%-14px", 30 ],
"$xbox_button_offset": [ 7, -6 ]
},
{
"requires": "$pocket_screen",
"$xbox_button_size": [ "50%-7px", 30 ],
"$xbox_button_offset": [ 7, -6 ]
}
],
"controls": [
{
"@common.common_panel": {
"$dialog_background": "dialog_background_hollow_2",
"$show_close_button": false
}
},
{
"title_label": {
"type": "label",
"size": [ "100%", 25 ],
"alignment": "center",
"text": "xbox.signinquestion",
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"layer": 2,
"color": [ 0, 0, 0 ]
}
},
{
"myimage@title_image_panel": {
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ "100%-16px", "100%-46px" ],
"offset": [ 8, 8 ]
}
},
{
"a@xbl_signin_button": {
"size": "$xbox_button_size",
"anchor_from": "bottom_left",
"anchor_to": "bottom_left",
"offset": "$xbox_button_offset"
}
},
{
"a@notnow_button": {
"size": [ "50%-7px", 30 ],
"anchor_from": "bottom_right",
"anchor_to": "bottom_right",
"offset": [ -7, -6 ],
"ignored": "$desktop_screen"
}
}
]
},
"gamepad_helpers": {
"type": "panel",
"layer": 2,
"controls": [
{
"@common.gamepad_helper_a": {
"size": [ 30, 10 ],
"offset": [ -70, -2 ],
"anchor_from": "bottom_right",
"anchor_to": "bottom_right"
}
}
]
},
// -----------------------------------------------
//
// screen
//
// -----------------------------------------------
"xbl_failed_screen@common.base_screen": {
"button_mappings": [
{
"from_button_id": "button.menu_cancel",
"to_button_id": "button.menu_exit",
"mapping_type": "global"
},
{
"from_button_id": "button.menu_up",
"to_button_id": "button.menu_up",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_down",
"to_button_id": "button.menu_down",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_left",
"to_button_id": "button.menu_left",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_right",
"to_button_id": "button.menu_right",
"mapping_type": "global",
"scope": "view"
}
],
"$screen_content": "xbl_failed.xbl_failed_screen_content"
},
"xbl_failed_screen_content": {
"type": "panel",
"controls": [
{
"root_panel": {
"type": "panel",
"controls": [
{ "@gamepad_helpers": { } },
{ "@main_panel": { "layer": 1 } }
]
}
}
]
}
}
+294
View File
@@ -0,0 +1,294 @@
/********************************************************
+* (c) Mojang. All rights reserved *
+* (c) Microsoft. All rights reserved. *
+*********************************************************/
{
"namespace": "xbl_first_launch",
"splash_text": {
"type": "custom",
"renderer": "splash_text_renderer",
"size": [ 0.1, 0.1 ],
"layer": 2,
"anchor_from": "bottom_right",
"anchor_to": "bottom_right"
},
"title_panel_pocket": {
"type": "panel",
"offset": [ 0, "10%" ],
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"size": [ "100%", "12.5%x" ],
"controls": [
{
"title_image": {
"type": "image",
"layer": 1,
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"texture": "gui/title.png",
"uv": [ 0, 0 ],
"uv_size": [ 512, 64 ]
}
},
{
"@splash_text": {
"offset": [ "-28%", "-4%x" ]
}
}
]
},
"Xbox_icon": {
"type": "image",
"texture": "gui/newgui/xbox4.png",
"layer": 3,
"uv": [ 0, 0 ],
"uv_size": [ 27, 27 ],
"size": [ 20, 20 ]
},
"xbl_signin_label": {
"type": "panel",
"layer": 2,
"controls": [
{
"@Xbox_icon": {
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"offset": [24, 0]
}
},
{
"@common.new_button_label": {
"text": "xbox.signin"
}
}
]
},
"notnow_label@common.new_button_label": {
"text": "xbox.notnow"
},
"xbl_signin_button@common.new_button": {
"$pressed_button_name": "button.xbl_signin",
"controls": [
{
"default@common.new_button_state_default": {
"controls": [
{
"@xbl_first_launch.xbl_signin_label": { }
}
]
}
},
{
"hover@common.new_button_state_hover": {
"controls": [
{
"@xbl_first_launch.xbl_signin_label": { }
}
]
}
},
{
"pressed@common.new_button_state_pressed": {
"controls": [
{
"@xbl_first_launch.xbl_signin_label": {
"offset": [ 0, 1 ]
}
}
]
}
}
]
},
"notnow_button@common.new_button": {
"$pressed_button_name": "button.xbl_notnow",
"controls": [
{
"default@common.new_button_state_default": {
"controls": [
{
"@xbl_first_launch.notnow_label": { }
}
]
}
},
{
"hover@common.new_button_state_hover": {
"controls": [
{
"@xbl_first_launch.notnow_label": { }
}
]
}
},
{
"pressed@common.new_button_state_pressed": {
"controls": [
{
"@xbl_first_launch.notnow_label": {
"offset": [ 0, 1 ]
}
}
]
}
}
]
},
"title_image_panel": {
"type": "panel",
"controls": [
{
"title_image": {
"type": "image",
"layer": 1,
"anchor_from": "top_left",
"anchor_to": "top_left",
"texture": "gui/newgui/train.jpg",
"offset": [ 2, 2 ],
"size": [ "109.876%y", "100%" ],
"uv_size": [ 267, 243 ]
}
},
{
"message_label": {
"type": "label",
"size": [ "100%-109.876%y-4px", "100%" ],
"anchor_from": "right_middle",
"anchor_to": "right_middle",
"offset": [0, 2],
"alignment": "top_middle",
"wrap": true,
"clip": true,
"text": "#message",
"layer": 2,
"color": [ 1,1,1 ],
"bindings": [
{
"binding_name": "#message"
}
]
}
}
]
},
"main_panel": {
"type": "input_panel",
"size": "$xbl_first_launch_screen_size",
"offset": [0, "15%"],
"controls": [
{
"@common.common_panel": {
"$dialog_background": "dialog_background_hollow_4",
"$show_close_button": false
}
},
{
"myimage@title_image_panel": {
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ "100%-16px", "100%-52px" ],
"offset": [ 8, 8 ]
}
},
{
"a@xbl_signin_button": {
"size": [ "50%-10px", 30 ],
"anchor_from": "bottom_right",
"anchor_to": "bottom_right",
"offset": [ -10, -10 ]
}
},
{
"a@notnow_button": {
"size": [ "50%-10px", 30 ],
"anchor_from": "bottom_left",
"anchor_to": "bottom_left",
"offset": [ 10, -10 ]
}
}
]
},
"gamepad_helpers": {
"type": "panel",
"layer": 2,
"controls": [
{
"@common.gamepad_helper_a": {
"size": [ 30, 10 ],
"offset": [ -70, -2 ],
"anchor_from": "bottom_right",
"anchor_to": "bottom_right"
}
}
]
},
// -----------------------------------------------
//
// screen
//
// -----------------------------------------------
"xbl_first_launch_screen@common.base_screen": {
"button_mappings": [
{
"from_button_id": "button.menu_cancel",
"to_button_id": "button.menu_exit",
"mapping_type": "global"
},
{
"from_button_id": "button.menu_up",
"to_button_id": "button.menu_up",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_down",
"to_button_id": "button.menu_down",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_left",
"to_button_id": "button.menu_left",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_right",
"to_button_id": "button.menu_right",
"mapping_type": "global",
"scope": "view"
}
],
"$screen_content": "xbl_first_launch.xbl_first_launch_screen_content"
},
"xbl_first_launch_screen_content": {
"type": "panel",
"controls": [
{
"@title_panel_pocket": { }
},
{
"root_panel": {
"type": "panel",
"controls": [
{ "@gamepad_helpers": { } },
{ "@main_panel": { "layer": 1 } }
]
}
}
]
}
}
+283
View File
@@ -0,0 +1,283 @@
{
"namespace": "xbl_login",
"language_icon": {
"type": "image",
"texture": "gui/newgui/Language16.png",
"layer": 3,
"uv": [ 0, 0 ],
"uv_size": [ 16, 16 ],
"size": [ 18, 18 ]
},
"text_label": {
"type": "label",
"shadow": false,
"layer": 2
},
"play_button_text@common.button_text": {
"text": "xbox.signin"
},
"messageline1_pocket": {
"type": "label",
"shadow": false,
"wrap": true,
"alignment": "top_middle",
"text": "xbox.signin.error.pocket.line1",
"visible": "$pocket_edition"
},
"messageline2_pocket": {
"type": "label",
"shadow": false,
"wrap": true,
"alignment": "top_middle",
"text": "xbox.signin.error.pocket.line2",
"visible": "$pocket_edition"
},
"messageline3_pocket": {
"type": "label",
"shadow": false,
"wrap": true,
"alignment": "top_middle",
"text": "xbox.signin.error.pocket.line3",
"visible": "$pocket_edition"
},
"xbl_login_screen@common.base_screen": {
"button_mappings": [
{
"from_button_id": "button.menu_up",
"to_button_id": "button.menu_up",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_down",
"to_button_id": "button.menu_down",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_left",
"to_button_id": "button.menu_left",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_right",
"to_button_id": "button.menu_right",
"mapping_type": "global",
"scope": "view"
}
],
"$screen_content": "xbl_login.xbl_login_screen_content"
},
"xbl_login_screen_content": {
"type": "panel",
"variables": [
{
"requires": "$win10_edition",
"$win10_visible": true,
"$pocket_visible": false
},
{
"requires": "$pocket_edition",
"$win10_visible": false,
"$pocket_visible": true
}
],
"controls": [
{
"title_panel": {
"type": "panel",
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"controls": [
{
"win10_title_image": {
"type": "image",
"size": [ "55%", "10.6%x" ],
"offset": [ 0, "10%" ],
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"layer": 1,
"texture": "gui/titleOriginal.png",
"uv": [ 0, 0 ],
"uv_size": [ 1936, 375 ],
"visible": "$win10_visible"
}
},
{
"pocket_title_image": {
"type": "image",
"size": [ "100%", "12.5%x" ],
"offset": [ 0, "10%" ],
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"layer": 1,
"texture": "gui/title.png",
"uv": [ 0, 0 ],
"uv_size": [ 512, 64 ],
"visible": "$pocket_visible"
}
}
]
}
},
{
"copyright@text_label": {
"alignment": "bottom_left",
"text": "menu.copyright"
}
},
{
"development_version@text_label": {
"alignment": "bottom_middle",
"text": "#development_version",
"bindings": [
{
"binding_name": "#development_version",
"binding_condition": "visible"
}
]
}
},
{
"version@text_label": {
"alignment": "bottom_right",
"text": "#version",
"bindings": [
{
"binding_name": "#version",
"binding_condition": "visible"
}
]
}
},
{
"language@common.button": {
"$pressed_button_name": "button.menu_language",
"size": [ 24, 24 ],
"offset": [ "-5%", "-10%" ],
"anchor_to": "bottom_right",
"anchor_from": "bottom_right",
"controls": [
{
"default@common.button_state_default": {
"controls": [
{ "@xbl_login.language_icon": { } }
]
}
},
{
"hover@common.button_state_hover": {
"controls": [
{ "@xbl_login.language_icon": { } }
]
}
},
{
"pressed@common.button_state_pressed": {
"controls": [
{ "@xbl_login.language_icon": { } }
]
}
}
]
}
},
{
"message_panel": {
"type": "panel",
"size": [ "80%", "20%" ],
"controls": [
{
"messageline_win10": {
"type": "label",
"shadow": false,
"wrap": true,
"alignment": "top_middle",
"text": "xbox.signin.error",
"visible": "$win10_edition"
}
},
{
"messageline_pocket_panel": {
"type": "panel",
"controls": [
{ "@messageline1_pocket": { } },
{
"@messageline2_pocket": {
"offset": [ 0, 20 ]
}
},
{
"@messageline3_pocket": {
"offset": [ 0, 30 ]
}
}
]
}
}
]
}
},
{
"button_panel": {
"type": "panel",
"anchor_to": "bottom_middle",
"anchor_from": "bottom_middle",
"size": [ "35%", "13%" ],
"offset": [ 0, "-10%" ],
"controls": [
{
"play@common.button": {
"size": [ "100%", "100%" ],
"$pressed_button_name": "button.menu_play",
"controls": [
{
"default@common.button_state_default": {
"controls": [
{ "@xbl_login.play_button_text": { } }
]
}
},
{
"hover@common.button_state_hover": {
"controls": [
{
"@xbl_login.play_button_text": {
"color": [ 1.0, 1.0, 0.2 ]
}
}
]
}
},
{
"pressed@common.button_state_pressed": {
"controls": [
{
"@xbl_login.play_button_text": {
"color": [ 1.0, 1.0, 0.2 ],
"alpha": 0.65
}
}
]
}
}
]
}
}
]
}
}
]
}
}
+240
View File
@@ -0,0 +1,240 @@
/********************************************************
+* (c) Mojang. All rights reserved *
+* (c) Microsoft. All rights reserved. *
+*********************************************************/
{
"namespace": "xbl_optional_signin",
"Xbox_icon": {
"type": "image",
"texture": "gui/newgui/xbox4.png",
"layer": 3,
"uv": [ 0, 0 ],
"uv_size": [ 27, 27 ],
"size": [ 20, 20 ]
},
"xbl_signin_label": {
"type": "panel",
"layer": 2,
"controls": [
{
"@Xbox_icon": {
"anchor_from": "left_middle",
"anchor_to": "left_middle",
"offset": [ 24, 0 ]
}
},
{
"@common.new_button_label": {
"text": "xbox.signInLong"
}
}
]
},
"xbl_signin_button@common.new_button": {
"$pressed_button_name": "button.xbl_signin",
"controls": [
{
"default@common.new_button_state_default": {
"controls": [
{
"@xbl_optional_signin.xbl_signin_label": { }
}
]
}
},
{
"hover@common.new_button_state_hover": {
"controls": [
{
"@xbl_optional_signin.xbl_signin_label": { }
}
]
}
},
{
"pressed@common.new_button_state_pressed": {
"controls": [
{
"@xbl_optional_signin.xbl_signin_label": {
"offset": [ 0, 1 ]
}
}
]
}
}
]
},
"dialog_image": {
"type": "image",
"layer": 2,
"anchor_from": "top_left",
"anchor_to": "top_left",
"texture": "#texture",
"size": [ "137.666%y-2px", "100%-2px" ],
"offset": [ 1, 1 ],
"uv_size": [ 413, 300 ],
"bindings": [
{
"binding_name": "#texture"
}
]
},
"dialog_image_border": {
"type": "image",
"layer": 1,
"anchor_from": "top_left",
"anchor_to": "top_left",
"texture": "gui/newgui/Grey.png",
"size": [ "137.666%y", "100%" ]
},
"title_image_panel": {
"type": "panel",
"controls": [
{
"@dialog_image": { }
},
{
"@dialog_image_border": { }
},
{
"message_label": {
"type": "label",
"size": [ "100%-137.666%y-16px", "100%" ],
"anchor_from": "right_middle",
"anchor_to": "right_middle",
"offset": [ -4, 1 ],
"alignment": "top_middle",
"wrap": true,
"clip": true,
"text": "#message",
"layer": 2,
"color": [ 1, 1, 1 ],
"bindings": [
{
"binding_name": "#message"
}
]
}
}
]
},
"main_panel": {
"type": "input_panel",
"size": "$xbl_optional_signin_screen_size",
"controls": [
{ "@common.common_panel": { "$dialog_background": "dialog_background_hollow_3" } },
{
"title_label": {
"type": "label",
"size": [ "100%", 25 ],
"alignment": "center",
"text": "#title",
"anchor_from": "top_middle",
"anchor_to": "top_middle",
"layer": 2,
"color": [ 0, 0, 0 ],
"bindings": [
{
"binding_name": "#title"
}
]
}
},
{
"myimage@title_image_panel": {
"anchor_from": "top_left",
"anchor_to": "top_left",
"size": [ "100%-18px", "100%-67px" ],
"offset": [ 10, 25 ]
}
},
{
"a@xbl_signin_button": {
"size": [ "100%-20px", 30 ],
"anchor_from": "bottom_left",
"anchor_to": "bottom_left",
"offset": [ 10, -10 ]
}
}
]
},
"gamepad_helpers": {
"type": "panel",
"layer": 2,
"controls": [
{
"@common.gamepad_helper_a": {
"size": [ 30, 10 ],
"offset": [ -70, -2 ],
"anchor_from": "bottom_right",
"anchor_to": "bottom_right"
}
}
]
},
// -----------------------------------------------
//
// screen
//
// -----------------------------------------------
"xbl_optional_signin_screen@common.base_screen": {
"button_mappings": [
{
"from_button_id": "button.menu_cancel",
"to_button_id": "button.menu_exit",
"mapping_type": "global"
},
{
"from_button_id": "button.menu_up",
"to_button_id": "button.menu_up",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_down",
"to_button_id": "button.menu_down",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_left",
"to_button_id": "button.menu_left",
"mapping_type": "global",
"scope": "view"
},
{
"from_button_id": "button.menu_right",
"to_button_id": "button.menu_right",
"mapping_type": "global",
"scope": "view"
}
],
"$screen_content": "xbl_optional_signin.xbl_optional_signin_screen_content"
},
"xbl_optional_signin_screen_content": {
"type": "panel",
"controls": [
{
"root_panel": {
"type": "panel",
"controls": [
{ "@gamepad_helpers": { } },
{ "@main_panel": { "layer": 1 } }
]
}
}
]
}
}