Initial commit
This commit is contained in:
commit
c630089742
4782 files changed
+178521
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user