Advertisement
Guest User

Inventory JSON Win 10

a guest
Jul 30th, 2015
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 36.35 KB | None | 0 0
  1. {
  2. "namespace": "inventory",
  3.  
  4. //---------------------------------------------------------------------------
  5. // Common
  6. //---------------------------------------------------------------------------
  7.  
  8. "normal_button": {
  9. "type": "image",
  10. "texture": "gui/newgui/NormalButtonNoStroke.png",
  11. "z_order": 2,
  12. "nineslice_size": 4.0,
  13. "uv": [ 0, 0 ],
  14. "uv_size": [ 10, 10 ]
  15. },
  16.  
  17. "normal_stroke_button": {
  18. "type": "image",
  19. "texture": "gui/newgui/NormalButtonStroke.png",
  20. "z_order": 2,
  21. "nineslice_size": 4.0,
  22. "uv": [ 0, 0 ],
  23. "uv_size": [ 12, 12 ]
  24. },
  25.  
  26. "x_image": {
  27. "type": "image",
  28. "texture": "gui/newgui/X3_ThisOneMostLikely.png",
  29. "size": [ 6, 6 ],
  30. "uv": [ 0, 0 ],
  31. "uv_size": [ 10, 10 ]
  32. },
  33.  
  34. "close_button_state": {
  35. "type": "image",
  36. "texture": "gui/newgui/buttonNew.png",
  37. "z_order": 2,
  38. "nineslice_size": 1.0,
  39. "uv": [ 0, 0 ],
  40. "uv_size": [ 5, 5 ],
  41. "controls": [
  42. {"@x_image": {
  43. "z_order": 3
  44. }}
  45. ]
  46. },
  47.  
  48. "close_button": {
  49. "type": "button",
  50. "size": [ 10, 10 ],
  51. "anchor_from": "top_right",
  52. "anchor_to": "top_right",
  53. "offset": [ -5, 5 ],
  54. "default_control": "default",
  55. "hover_control": "hover",
  56. "pressed_control": "pressed",
  57. "focus_enabled": false,
  58. "button_mappings": [
  59. {"from_button_id": "button.menu_select",
  60. "to_button_id": "button.menu_exit",
  61. "condition": "hover"
  62. },
  63. {"from_button_id": "button.menu_ok",
  64. "to_button_id": "button.menu_exit",
  65. "condition": "focus"
  66. }
  67. ],
  68. "controls": [
  69. {"default@close_button_state": {
  70. }},
  71. {"hover@close_button_state": {
  72. }},
  73. {"pressed@close_button_state": {
  74. }}
  75. ]
  76. },
  77.  
  78. "cell_image": {
  79. "type": "image",
  80. "texture": "gui/newgui/Indent.png",
  81. "z_order": 2,
  82. "nineslice_size": 1.0,
  83. "uv": [ 0, 0 ],
  84. "uv_size": [ 5, 5 ]
  85. },
  86.  
  87. "highlight_slot": {
  88. "type": "image",
  89. "texture": "gui/gui.png",
  90. "size": [ 16, 16 ],
  91. "z_order": 10,
  92. "alpha": 0.5,
  93. "uv": [ 13, 196 ],
  94. "uv_size": [ 1, 1 ]
  95. },
  96.  
  97. "hover_text":{
  98. "type": "custom",
  99. "renderer": "hover_text_renderer",
  100. "z_order": 16
  101. },
  102.  
  103. "screen_background": {
  104. "type": "image",
  105. "texture": "gui/gui.png",
  106. "z_order": -10,
  107. "alpha": 0.75,
  108. "uv": [ 0, 0 ],
  109. "uv_size": [ 1, 1 ]
  110. },
  111.  
  112. "stack_count_label": {
  113. "type": "label",
  114. "anchor_from": "top_left",
  115. "anchor_to": "top_left",
  116. "alignment": "left",
  117. "font_size": "small",
  118. "z_order": 10,
  119. "shadow": true,
  120. "offset": [ 1, 1 ],
  121. "text": "#inventory_stack_count",
  122. "bindings": [
  123. { "binding_name": "#inventory_stack_count",
  124. "binding_type": "collection" }
  125. ]
  126. },
  127.  
  128. "durability_bar": {
  129. "type": "custom",
  130. "renderer": "progress_bar_renderer",
  131. "z_order": 15,
  132. "offset": [ 0, 5 ],
  133. "size": [ 12, 1 ],
  134. "property_bag": {
  135. "is_durability": true,
  136. "round_value": true
  137. },
  138. "bindings": [
  139. { "binding_name": "#item_durability_visible",
  140. "binding_name_override": "#progress_bar_visible",
  141. "binding_type": "collection"},
  142. { "binding_name": "#item_durability_total_amount",
  143. "binding_name_override": "#progress_bar_total_amount",
  144. "binding_type": "collection"},
  145. { "binding_name": "#item_durability_current_amount",
  146. "binding_name_override": "#progress_bar_current_amount",
  147. "binding_type": "collection"}
  148. ]
  149. },
  150.  
  151. "durability_bar_grabbed@durability_bar": {
  152. "z_order": 50,
  153. "offset": [ -2, 5 ],
  154. "size": [ 16, 1 ],
  155. "bindings": [
  156. { "binding_name": "#item_durability_visible",
  157. "binding_name_override": "#progress_bar_visible"},
  158. { "binding_name": "#item_durability_total_amount",
  159. "binding_name_override": "#progress_bar_total_amount"},
  160. { "binding_name": "#item_durability_current_amount",
  161. "binding_name_override": "#progress_bar_current_amount"}
  162. ]
  163. },
  164.  
  165. "item_renderer": {
  166. "type": "custom",
  167. "renderer": "inventory_item_renderer",
  168. "z_order": 6,
  169. "offset": [ 1.5, 0 ]
  170. },
  171.  
  172. "item_foil_renderer@item_renderer": {
  173. "renderer": "inventory_foil_item_renderer",
  174. "z_order": 7
  175. },
  176.  
  177. "gamepad_helpers": {
  178. "type": "panel",
  179. "anchor_from": "bottom_middle",
  180. "anchor_to": "bottom_middle",
  181. "size": [ "98%", 16 ],
  182. "controls": [
  183. {"@common.gamepad_helper_a": {
  184. "size": [36, "100%"],
  185. "anchor_from": "left_middle",
  186. "anchor_to": "left_middle"
  187. }},
  188. {"@common.gamepad_helper_b": {
  189. "offset": [36, 0],
  190. "size": [72, "100%"],
  191. "anchor_from": "left_middle",
  192. "anchor_to": "left_middle"
  193. }},
  194. {"@common.gamepad_helper_x": {
  195. "offset": [-100, 0],
  196. "size": [72, "100%"],
  197. "anchor_from": "right_middle",
  198. "anchor_to": "right_middle"
  199. }},
  200. {"@common.gamepad_helper_y": {
  201. "size": [100, "100%"],
  202. "offset": [-10, 0],
  203. "anchor_from": "right_middle",
  204. "anchor_to": "right_middle"
  205. }}
  206. ]
  207. },
  208.  
  209. //---------------------------------------------------------------------------
  210. // Player and armor
  211. //---------------------------------------------------------------------------
  212.  
  213. "armor_image": {
  214. "type": "image",
  215. "z_order": 3,
  216. "size": [ 16, 16 ],
  217. "nineslice_size": 1.0,
  218. "uv": [ 0, 0 ],
  219. "uv_size": [ 16, 16 ],
  220. "binding_collection_name": "armor_items",
  221. "bindings": [
  222. { "binding_name": "#visible",
  223. "binding_type": "collection" }
  224. ]
  225. },
  226.  
  227. "armor_item_icon@item_renderer": {
  228. "binding_collection_name": "armor_items",
  229. "bindings": [
  230. { "binding_name": "#item_id_aux",
  231. "binding_type": "collection" }
  232. ]
  233. },
  234.  
  235. "armor_item_foil@item_foil_renderer": {
  236. "binding_collection_name": "armor_items",
  237. "bindings": [
  238. { "binding_name": "#item_id_aux",
  239. "binding_type": "collection" }
  240. ]
  241. },
  242.  
  243. "armor_slot_button": {
  244. "type": "button",
  245. "z_order": 2,
  246. "focus_enabled": true,
  247. "hover_control": "hover",
  248. "binding_collection_name": "armor_items",
  249. "button_mappings": [
  250. {"from_button_id": "button.menu_select",
  251. "to_button_id": "button.armor_take_place",
  252. "condition": "hover"
  253. },
  254. {"from_button_id": "button.menu_ok",
  255. "to_button_id": "button.armor_take_place",
  256. "condition": "focus"
  257. },
  258. {"from_button_id": "button.menu_secondary_select",
  259. "to_button_id": "button.armor_take_place",
  260. "condition": "hover"
  261. },
  262. {"from_button_id": "button.controller_select",
  263. "to_button_id": "button.armor_take_place",
  264. "condition": "focus"
  265. },
  266. {"from_button_id": "button.menu_auto_place",
  267. "to_button_id": "button.armor_auto_place",
  268. "condition": "hover"
  269. },
  270. {"from_button_id": "button.controller_secondary_select",
  271. "to_button_id": "button.armor_auto_place",
  272. "condition": "focus"
  273. },
  274. {"from_button_id": "button.menu_inventory_drop",
  275. "to_button_id": "button.armor_drop_one",
  276. "condition": "hover"
  277. },
  278. {"from_button_id": "button.menu_inventory_drop_all",
  279. "to_button_id": "button.armor_drop_all",
  280. "condition": "hover"
  281. },
  282. {"from_button_id": "button.menu_double_select",
  283. "to_button_id": "button.armor_coalesce_stack",
  284. "condition": "hover"
  285. }
  286. ],
  287. "controls": [
  288. { "hover@highlight_slot": {
  289. "controls": [
  290. { "armor_hover_text@hover_text": {
  291. "binding_collection_name": "armor_items",
  292. "bindings": [
  293. { "binding_name": "#hover_text",
  294. "binding_type": "collection" }
  295. ]
  296. }}
  297. ]
  298. }}
  299. ]
  300. },
  301.  
  302. "armor_grid_item": {
  303. "type": "grid_item",
  304. "size": [ 18, 18 ],
  305. "anchor_from": "top_left",
  306. "anchor_to": "top_left"
  307. },
  308.  
  309. "player_armor_panel": {
  310. "type": "panel",
  311. "size": [ 88, 83 ],
  312. "anchor_to": "top_left",
  313. "anchor_from": "top_left",
  314. "controls": [
  315. {"player_bg": {
  316. "type": "image",
  317. "texture": "gui/newgui/Black.png",
  318. "size": [ 54, 72 ],
  319. "uv": [ 0, 0 ],
  320. "uv_size": [ 2, 2 ],
  321. "z_order": 2,
  322. "anchor_from": "top_left",
  323. "anchor_to": "top_left",
  324. "offset": [ 25, 7 ],
  325. "controls": [
  326. {"player_renderer": {
  327. "type": "custom",
  328. "renderer": "live_player_renderer",
  329. "size": [ 30, 30 ],
  330. "z_order": 3,
  331. "anchor_from": "center",
  332. "anchor_to": "center",
  333. "offset": [ 15, 0 ]
  334. }}
  335. ]
  336. }},
  337. {"armor_grid": {
  338. "type": "grid",
  339. "size": [ 18, 72 ],
  340. "anchor_from": "top_left",
  341. "anchor_to": "top_left",
  342. "offset": [ 7, 7 ],
  343. "grid_dimensions": [ 1, 4 ],
  344. "controls": [
  345. {"head_grid_item@armor_grid_item": {
  346. "grid_position": [ 0, 0 ],
  347. "controls": [
  348. {"@cell_image": {
  349. }},
  350. {"@armor_image": {
  351. "texture": "gui/newgui/empty_armor_slot_helmet.png"
  352. }},
  353. {"@armor_item_icon": {
  354. }},
  355. {"@armor_slot_button": {
  356. }},
  357. {"@durability_bar": {
  358. "binding_collection_name": "armor_items"
  359. }}
  360. ]
  361. }},
  362. {"chest_grid_item@armor_grid_item": {
  363. "grid_position": [ 0, 1 ],
  364. "controls": [
  365. {"@cell_image": {
  366. }},
  367. {"@armor_image": {
  368. "texture": "gui/newgui/empty_armor_slot_chestplate.png"
  369. }},
  370. {"@armor_item_icon": {
  371. }},
  372. {"@armor_slot_button": {
  373. }},
  374. {"@durability_bar": {
  375. "binding_collection_name": "armor_items"
  376. }}
  377. ]
  378. }},
  379. {"legs_grid_item@armor_grid_item": {
  380. "grid_position": [ 0, 2 ],
  381. "controls": [
  382. {"@cell_image": {
  383. }},
  384. {"@armor_image": {
  385. "texture": "gui/newgui/empty_armor_slot_leggings.png"
  386. }},
  387. {"@armor_item_icon": {
  388. }},
  389. {"@armor_slot_button": {
  390. }},
  391. {"@durability_bar": {
  392. "binding_collection_name": "armor_items"
  393. }}
  394. ]
  395. }},
  396. {"feet_grid_item@armor_grid_item": {
  397. "grid_position": [ 0, 3 ],
  398. "controls": [
  399. {"@cell_image": {
  400. }},
  401. {"@armor_image": {
  402. "texture": "gui/newgui/empty_armor_slot_boots.png"
  403. }},
  404. {"@armor_item_icon": {
  405. }},
  406. {"@armor_slot_button": {
  407. }},
  408. {"@durability_bar": {
  409. "binding_collection_name": "armor_items"
  410. }}
  411. ]
  412. }}
  413. ]
  414. }}
  415. ]
  416. },
  417.  
  418. //---------------------------------------------------------------------------
  419. // Crafting panels, 2x2 and 3x3
  420. //---------------------------------------------------------------------------
  421.  
  422. "crafting_input_icon@item_renderer": {
  423. "binding_collection_name": "crafting_input_items",
  424. "bindings": [
  425. { "binding_name": "#item_id_aux",
  426. "binding_type": "collection" }
  427. ]
  428. },
  429.  
  430. "crafting_input_foil@item_foil_renderer": {
  431. "binding_collection_name": "crafting_input_items",
  432. "bindings": [
  433. { "binding_name": "#item_id_aux",
  434. "binding_type": "collection" }
  435. ]
  436. },
  437.  
  438. "crafting_output_icon@item_renderer": {
  439. },
  440.  
  441. "crafting_output_foil@item_foil_renderer": {
  442. },
  443.  
  444. "crafting_selected_icon@item_renderer": {
  445. "z_order": 28,
  446. "size": [ "130%", "130%" ],
  447. "offset": [ 2, 0 ],
  448. "bindings": [
  449. { "binding_name": "#crafting_selected_item",
  450. "binding_name_override": "#item_id_aux" }
  451. ],
  452. "controls": [
  453. {"@crafting_selected_stack_size_text": {
  454. }}
  455. ]
  456. },
  457.  
  458. "crafting_selected_foil@item_foil_renderer": {
  459. "z_order": 29,
  460. "offset": [ 2, 1 ],
  461. "bindings": [
  462. { "binding_name": "#crafting_selected_item",
  463. "binding_name_override": "#item_id_aux" }
  464. ]
  465. },
  466.  
  467. "crafting_selected_stack_size_text": {
  468. "type": "label",
  469. "anchor_from": "top_left",
  470. "anchor_to": "top_left",
  471. "alignment": "left",
  472. "font_size": "large",
  473. "z_order": 30,
  474. "shadow": true,
  475. "offset": [ -3, -3 ],
  476. "color": [ 1.0, 1.0, 0.0, 1.0 ],
  477. "text": "#crafting_selected_item_stack_count",
  478. "bindings": [
  479. { "binding_name": "#crafting_selected_item_stack_count" }
  480. ]
  481. },
  482.  
  483. "crafting_hold_icon": {
  484. "type": "custom",
  485. "renderer": "progress_bar_renderer",
  486. "z_order": 15,
  487. "offset": [ 0, -7 ],
  488. "size": [ 15, 3 ],
  489. "bindings": [
  490. { "binding_name": "#progress_bar_visible" },
  491. { "binding_name": "#progress_bar_total_amount" },
  492. { "binding_name": "#progress_bar_current_amount" }
  493. ]
  494. },
  495.  
  496. "crafting_selected_icon_button": {
  497. "type": "button",
  498. "anchor_from": "top_left",
  499. "anchor_to": "top_left",
  500. "alignment": "left",
  501. "default_control": "default",
  502. "hover_control": "hover",
  503. "pressed_control": "pressed",
  504. "z_order": -10,
  505. "size": [ 18, 18 ],
  506. "offset": [ 0, 0 ],
  507. "follows_cursor": true,
  508. "sound_name": "random.click",
  509. "sound_volume": 1.0,
  510. "sound_pitch": 1.0,
  511. "always_handle_pointer": true,
  512. "controls": [
  513. {"default@crafting_selected_icon": {
  514. }},
  515. {"pressed@crafting_selected_icon": {
  516. }},
  517. {"hover@crafting_selected_icon": {
  518. }},
  519. {"@durability_bar_grabbed": {}}
  520. ]
  521. },
  522.  
  523. "crafting_hold_icon_button": {
  524. "type": "button",
  525. "default_control": "default",
  526. "hover_control": "hover",
  527. "pressed_control": "pressed",
  528. "z_order": -10,
  529. "size": [ 10, 10 ],
  530. "offset": [ 0, 0 ],
  531. "follows_cursor": true,
  532. "sound_name": "random.click",
  533. "sound_volume": 1.0,
  534. "sound_pitch": 1.0,
  535. "always_handle_pointer": true,
  536. "controls": [
  537. {"default@crafting_hold_icon": {
  538. }},
  539. {"pressed@crafting_hold_icon": {
  540. }},
  541. {"hover@crafting_hold_icon": {
  542. }}
  543. ]
  544. },
  545.  
  546. "crafting_selected_foil_button@crafting_selected_icon_button": {
  547. "controls": [
  548. {"default@crafting_selected_foil": {
  549. }},
  550. {"pressed@crafting_selected_foil": {
  551. }},
  552. {"hover@crafting_selected_foil": {
  553. }}
  554. ]
  555. },
  556.  
  557. "crafting_input_button": {
  558. "type": "button",
  559. "z_order": 2,
  560. "focus_enabled": true,
  561. "hover_control": "hover",
  562. "binding_collection_name": "crafting_input_items",
  563. "button_mappings": [
  564. {"from_button_id": "button.menu_select",
  565. "to_button_id": "button.crafting_in_take_all_place_all",
  566. "condition": "hover"
  567. },
  568. {"from_button_id": "button.menu_ok",
  569. "to_button_id": "button.crafting_in_take_all_place_all",
  570. "condition": "focus"
  571. },
  572. {"from_button_id": "button.menu_secondary_select",
  573. "to_button_id": "button.crafting_in_take_half_place_one",
  574. "condition": "hover"
  575. },
  576. {"from_button_id": "button.controller_select",
  577. "to_button_id": "button.crafting_in_take_half_place_one",
  578. "condition": "focus"
  579. },
  580. {"from_button_id": "button.menu_auto_place",
  581. "to_button_id": "button.crafting_in_auto_place",
  582. "condition": "hover"
  583. },
  584. {"from_button_id": "button.controller_secondary_select",
  585. "to_button_id": "button.crafting_in_auto_place",
  586. "condition": "focus"
  587. },
  588. {"from_button_id": "button.menu_inventory_drop",
  589. "to_button_id": "button.crafting_in_drop_one",
  590. "condition": "hover"
  591. },
  592. {"from_button_id": "button.menu_inventory_drop_all",
  593. "to_button_id": "button.crafting_in_drop_all",
  594. "condition": "hover"
  595. },
  596. {"from_button_id": "button.menu_double_select",
  597. "to_button_id": "button.crafting_in_coalesce_stack",
  598. "condition": "hover"
  599. }
  600. ],
  601. "controls": [
  602. { "hover@highlight_slot": {
  603. "controls": [
  604. { "armor_hover_text@hover_text": {
  605. "binding_collection_name": "crafting_input_items",
  606. "bindings": [
  607. { "binding_name": "#hover_text",
  608. "binding_type": "collection" }
  609. ]
  610. }}
  611. ]
  612. }}
  613. ]
  614. },
  615.  
  616. "crafting_output_button": {
  617. "type": "button",
  618. "z_order": 2,
  619. "focus_enabled": true,
  620. "hover_control": "hover",
  621. "button_mappings": [
  622. {"from_button_id": "button.menu_select",
  623. "to_button_id": "button.crafting_out_take_one",
  624. "condition": "hover"
  625. },
  626. {"from_button_id": "button.menu_ok",
  627. "to_button_id": "button.crafting_out_take_one",
  628. "condition": "focus"
  629. },
  630. {"from_button_id": "button.menu_secondary_select",
  631. "to_button_id": "button.crafting_out_take_one",
  632. "condition": "hover"
  633. },
  634. {"from_button_id": "button.controller_select",
  635. "to_button_id": "button.crafting_out_take_one",
  636. "condition": "focus"
  637. },
  638. {"from_button_id": "button.menu_auto_place",
  639. "to_button_id": "button.crafting_out_auto_place_max",
  640. "condition": "hover"
  641. },
  642. {"from_button_id": "button.controller_secondary_select",
  643. "to_button_id": "button.crafting_out_auto_place_max",
  644. "condition": "focus"
  645. },
  646. {"from_button_id": "button.menu_inventory_drop",
  647. "to_button_id": "button.crafting_out_drop_one",
  648. "condition": "hover"
  649. },
  650. {"from_button_id": "button.menu_inventory_drop_all",
  651. "to_button_id": "button.crafting_out_drop_all",
  652. "condition": "hover"
  653. },
  654. {"from_button_id": "button.menu_double_select",
  655. "to_button_id": "button.crafting_out_take_one",
  656. "condition": "hover"
  657. }
  658. ]
  659. },
  660.  
  661. "crafting_input_grid_item": {
  662. "type": "grid_item",
  663. "size": [ 18, 18 ],
  664. "anchor_from": "top_left",
  665. "anchor_to": "top_left",
  666. "controls": [
  667. {"@cell_image": {
  668. }},
  669. {"@crafting_input_icon": {
  670. }},
  671. {"@crafting_input_foil": {
  672. }},
  673. {"@crafting_input_button": {
  674. }},
  675. {"@stack_count_label": {
  676. "binding_collection_name": "crafting_input_items"
  677. }},
  678. {"@durability_bar": {
  679. "binding_collection_name": "crafting_input_items"
  680. }}
  681. ]
  682. },
  683.  
  684. "crafting_label": {
  685. "type": "label",
  686. "size": [ 1, 1 ],
  687. "anchor_from": "top_left",
  688. "anchor_to": "top_left",
  689. "offset": [ 0, 10 ],
  690. "alignment": "left",
  691. "text": "container.crafting",
  692. "color": [ 0.25, 0.25, 0.25, 1.0 ],
  693. "z_order": 2
  694. },
  695.  
  696. "crafting_arrow": {
  697. "type": "image",
  698. "z_order": 3,
  699. "texture": "gui/newgui/arrow.png",
  700. "anchor_from": "top_left",
  701. "anchor_to": "top_left",
  702. "size": [ 16, 13 ],
  703. "uv": [ 0, 0 ],
  704. "uv_size": [ 16, 13 ]
  705. },
  706.  
  707. "crafting_arrow_large": {
  708. "type": "image",
  709. "z_order": 3,
  710. "texture": "gui/newgui/arrow_large.png",
  711. "anchor_from": "top_left",
  712. "anchor_to": "top_left",
  713. "size": [ 22, 15 ],
  714. "uv": [ 0, 0 ],
  715. "uv_size": [ 22, 15 ]
  716. },
  717.  
  718. "crafting_grid_3x3": {
  719. "type": "grid",
  720. "size": [ 54, 54 ],
  721. "anchor_from": "top_left",
  722. "anchor_to": "top_left",
  723. "offset": [ 0, 16 ],
  724. "grid_dimensions": [ 3, 3 ],
  725. "grid_item_template": "crafting_input_grid_item"
  726. },
  727.  
  728. "crafting_grid_2x2": {
  729. "type": "grid",
  730. "size": [ 36, 36 ],
  731. "anchor_from": "top_left",
  732. "anchor_to": "top_left",
  733. "offset": [ 0, 25 ],
  734. "grid_dimensions": [ 2, 2 ],
  735. "grid_item_template": "crafting_input_grid_item"
  736. },
  737.  
  738. "crafting_output_panel": {
  739. "type": "panel",
  740. "size": [ 18, 18 ],
  741. "anchor_from": "top_left",
  742. "anchor_to": "top_left"
  743. },
  744.  
  745. "survival_crafting_output@crafting_output_panel": {
  746. "offset": [ 56, 34 ],
  747. "controls": [
  748. {"@cell_image": {
  749. }},
  750. {"@crafting_output_icon": {
  751. "bindings": [
  752. { "binding_name": "#survival_crafting_output_item",
  753. "binding_name_override": "#item_id_aux" }
  754. ]
  755. }},
  756. {"@crafting_output_foil": {
  757. }},
  758. {"@crafting_output_button": {
  759. "controls": [
  760. { "hover@highlight_slot": {
  761. "controls": [
  762. { "@hover_text": {
  763. "bindings": [
  764. { "binding_name": "#survival_crafting_output_hover_text",
  765. "binding_name_override": "#hover_text"
  766. }
  767. ]
  768. }}
  769. ]
  770. }}
  771. ]
  772. }},
  773. {"@stack_count_label": {
  774. "bindings": [
  775. { "binding_name": "#survival_crafting_output_item_stack_count",
  776. "binding_name_override": "#inventory_stack_count" }
  777. ]
  778. }}
  779. ]
  780. },
  781.  
  782. "work_bench_output@crafting_output_panel": {
  783. "offset": [ 94, 34 ],
  784. "controls": [
  785. {"@cell_image": {
  786. "size": [26, 26]
  787. }},
  788. {"@crafting_output_icon": {
  789. "bindings": [
  790. { "binding_name": "#work_bench_output_item",
  791. "binding_name_override": "#item_id_aux" }
  792. ]
  793. }},
  794. {"@crafting_output_button": {
  795. "controls": [
  796. { "hover@highlight_slot": {
  797. "controls": [
  798. { "@hover_text": {
  799. "bindings": [
  800. { "binding_name": "#work_bench_output_hover_text",
  801. "binding_name_override": "#hover_text"
  802. }
  803. ]
  804. }}
  805. ]
  806. }}
  807. ]
  808. }},
  809. {"@stack_count_label": {
  810. "bindings": [
  811. { "binding_name": "#work_bench_output_item_stack_count",
  812. "binding_name_override": "#inventory_stack_count" }
  813. ]
  814. }}
  815. ]
  816. },
  817.  
  818. "stone_cutter_output@crafting_output_panel": {
  819. "offset": [ 94, 34 ],
  820. "controls": [
  821. {"@cell_image": {
  822. "size": [26, 26]
  823. }},
  824. {"@crafting_output_icon": {
  825. "bindings": [
  826. { "binding_name": "#stone_cutter_output_item",
  827. "binding_name_override": "#item_id_aux" }
  828. ]
  829. }},
  830. {"@crafting_output_button": {
  831. "controls": [
  832. { "hover@highlight_slot": {
  833. "controls": [
  834. { "@hover_text": {
  835. "bindings": [
  836. { "binding_name": "#stone_cutter_output_hover_text",
  837. "binding_name_override": "#hover_text"
  838. }
  839. ]
  840. }}
  841. ]
  842. }}
  843. ]
  844. }},
  845. {"@stack_count_label": {
  846. "bindings": [
  847. { "binding_name": "#stone_cutter_output_item_stack_count",
  848. "binding_name_override": "#inventory_stack_count" }
  849. ]
  850. }}
  851. ]
  852. },
  853.  
  854. "work_bench_panel_3x3": {
  855. "type": "panel",
  856. "anchor_to": "top_left",
  857. "anchor_from": "top_left",
  858. "controls": [
  859. {"@crafting_label": {
  860. "offset": [ -1, 6 ]
  861. }},
  862. {"@crafting_label": {
  863. "offset": [ -21, 72 ],
  864. "alignment": "left",
  865. "text": "container.inventory"
  866. }},
  867. {"@crafting_arrow_large": {
  868. "offset": [ 61, 35 ]
  869. }},
  870. {"@crafting_grid_3x3": {}},
  871. {"@work_bench_output": {}}
  872. ]
  873. },
  874.  
  875. "stone_cutter_panel_3x3": {
  876. "type": "panel",
  877. "anchor_to": "top_left",
  878. "anchor_from": "top_left",
  879. "controls": [
  880. {"@crafting_label": {
  881. "offset": [ -1, 6 ],
  882. "text": "container.stonecutter"
  883. }},
  884. {"@crafting_label": {
  885. "offset": [ -21, 72 ],
  886. "alignment": "left",
  887. "text": "container.inventory"
  888. }},
  889. {"@crafting_arrow_large": {
  890. "offset": [ 61, 35 ]
  891. }},
  892. {"@crafting_grid_3x3": {}},
  893. {"@stone_cutter_output": {}}
  894. ]
  895. },
  896.  
  897. "crafting_panel_2x2": {
  898. "type": "panel",
  899. "size": [ 88, 83 ],
  900. "anchor_from": "top_middle",
  901. "anchor_to": "top_left",
  902. "controls": [
  903. {"@crafting_label": {
  904. "offset": [ -1, 15 ],
  905. "alignment": "left",
  906. "text": "container.crafting"
  907. }},
  908. {"@crafting_arrow": {
  909. "offset": [ 38, 37 ]
  910. }},
  911. {"@crafting_grid_2x2": {
  912. }},
  913. {"@survival_crafting_output": {
  914. }}
  915. ]
  916. },
  917.  
  918. //---------------------------------------------------------------------------
  919. // Inventory panel (the bottom half)
  920. //---------------------------------------------------------------------------
  921.  
  922. "inventory_item_icon@item_renderer": {
  923. "binding_collection_name": "inventory_items",
  924. "bindings": [
  925. { "binding_name": "#item_id_aux",
  926. "binding_type": "collection" }
  927. ]
  928. },
  929.  
  930. "inventory_item_foil@item_foil_renderer": {
  931. "binding_collection_name": "inventory_items",
  932. "bindings": [
  933. { "binding_name": "#item_id_aux",
  934. "binding_type": "collection" }
  935. ]
  936. },
  937.  
  938. "inventory_slot_button_prototype": {
  939. "type": "button",
  940. "focus_enabled": true,
  941. "hover_control": "hover",
  942. "z_order": 2,
  943. "binding_collection_name": "inventory_items",
  944. "button_mappings": [
  945. {"from_button_id": "button.menu_select",
  946. "to_button_id": "button.inventory_take_all_place_all",
  947. "condition": "hover"
  948. },
  949. {"from_button_id": "button.menu_ok",
  950. "to_button_id": "button.inventory_take_all_place_all",
  951. "condition": "focus"
  952. },
  953. {"from_button_id": "button.menu_secondary_select",
  954. "to_button_id": "button.inventory_take_half_place_one",
  955. "condition": "hover"
  956. },
  957. {"from_button_id": "button.controller_select",
  958. "to_button_id": "button.inventory_take_half_place_one",
  959. "condition": "focus"
  960. },
  961. {"from_button_id": "button.menu_auto_place",
  962. "to_button_id": "button.inventory_auto_place",
  963. "condition": "hover"
  964. },
  965. {"from_button_id": "button.controller_secondary_select",
  966. "to_button_id": "button.inventory_auto_place",
  967. "condition": "focus"
  968. },
  969. {"from_button_id": "button.menu_inventory_drop",
  970. "to_button_id": "button.inventory_drop_one",
  971. "condition": "hover"
  972. },
  973. {"from_button_id": "button.menu_inventory_drop_all",
  974. "to_button_id": "button.inventory_drop_all",
  975. "condition": "hover"
  976. },
  977. {"from_button_id": "button.menu_double_select",
  978. "to_button_id": "button.inventory_coalesce_stack",
  979. "condition": "hover"
  980. }
  981. ],
  982. "controls": [
  983. { "hover@highlight_slot": {
  984. "controls": [
  985. { "armor_hover_text@hover_text": {
  986. "binding_collection_name": "inventory_items",
  987. "bindings": [
  988. { "binding_name": "#hover_text",
  989. "binding_type": "collection" }
  990. ]
  991. }}
  992. ]
  993. }}
  994. ]
  995. },
  996.  
  997. "inventory_grid_item": {
  998. "type": "grid_item",
  999. "size": [ 18, 18 ],
  1000. "anchor_from": "top_left",
  1001. "anchor_to": "top_left",
  1002. "controls": [
  1003. {"@cell_image": {
  1004. }},
  1005. {"@inventory_item_icon": {
  1006. }},
  1007. {"@inventory_item_foil": {
  1008. }},
  1009. {"inventory_slot_button@inventory_slot_button_prototype": {
  1010. }},
  1011. {"@stack_count_label": {
  1012. "binding_collection_name": "inventory_items"
  1013. }},
  1014. {"@durability_bar": {
  1015. "binding_collection_name": "inventory_items"
  1016. }}
  1017. ]
  1018. },
  1019.  
  1020. "hotbar_item_icon@item_renderer": {
  1021. "binding_collection_name": "hotbar_items",
  1022. "bindings": [
  1023. { "binding_name": "#item_id_aux",
  1024. "binding_type": "collection" }
  1025. ]
  1026. },
  1027.  
  1028. "hotbar_item_foil@item_foil_renderer": {
  1029. "binding_collection_name": "hotbar_items",
  1030. "bindings": [
  1031. { "binding_name": "#item_id_aux",
  1032. "binding_type": "collection" }
  1033. ]
  1034. },
  1035.  
  1036. "hotbar_slot_button_prototype": {
  1037. "type": "button",
  1038. "z_order": 2,
  1039. "focus_enabled": true,
  1040. "hover_control": "hover",
  1041. "binding_collection_name": "hotbar_items",
  1042. "button_mappings": [
  1043. {"from_button_id": "button.menu_select",
  1044. "to_button_id": "button.hotbar_take_all_place_all",
  1045. "condition": "hover"
  1046. },
  1047. {"from_button_id": "button.menu_ok",
  1048. "to_button_id": "button.hotbar_take_all_place_all",
  1049. "condition": "focus"
  1050. },
  1051. {"from_button_id": "button.menu_secondary_select",
  1052. "to_button_id": "button.hotbar_take_half_place_one",
  1053. "condition": "hover"
  1054. },
  1055. {"from_button_id": "button.controller_select",
  1056. "to_button_id": "button.hotbar_take_half_place_one",
  1057. "condition": "focus"
  1058. },
  1059. {"from_button_id": "button.menu_auto_place",
  1060. "to_button_id": "button.hotbar_auto_place",
  1061. "condition": "hover"
  1062. },
  1063. {"from_button_id": "button.controller_secondary_select",
  1064. "to_button_id": "button.hotbar_auto_place",
  1065. "condition": "focus"
  1066. },
  1067. {"from_button_id": "button.menu_inventory_drop",
  1068. "to_button_id": "button.hotbar_drop_one",
  1069. "condition": "hover"
  1070. },
  1071. {"from_button_id": "button.menu_inventory_drop_all",
  1072. "to_button_id": "button.hotbar_drop_all",
  1073. "condition": "hover"
  1074. },
  1075. {"from_button_id": "button.menu_double_select",
  1076. "to_button_id": "button.hotbar_coalesce_stack",
  1077. "condition": "hover"
  1078. }
  1079. ],
  1080. "controls": [
  1081. { "hover@highlight_slot": {
  1082. "controls": [
  1083. { "armor_hover_text@hover_text": {
  1084. "binding_collection_name": "hotbar_items",
  1085. "bindings": [
  1086. { "binding_name": "#hover_text",
  1087. "binding_type": "collection" }
  1088. ]
  1089. }}
  1090. ]
  1091. }}
  1092. ]
  1093. },
  1094.  
  1095. "hotbar_grid_item": {
  1096. "type": "grid_item",
  1097. "size": [ 18, 18 ],
  1098. "anchor_to": "top_left",
  1099. "anchor_from": "top_left",
  1100. "controls": [
  1101. {"@cell_image": {
  1102. }},
  1103. {"@hotbar_item_icon": {
  1104. }},
  1105. {"@hotbar_item_foil": {
  1106. }},
  1107. {"hotbar_slot_button@hotbar_slot_button_prototype": {
  1108. }},
  1109. {"@stack_count_label": {
  1110. "binding_collection_name": "hotbar_items"
  1111. }},
  1112. {"@durability_bar":{
  1113. "binding_collection_name": "hotbar_items"
  1114. }}
  1115. ]
  1116. },
  1117.  
  1118. "inventory_panel": {
  1119. "type": "panel",
  1120. "size": [ 88, 83 ],
  1121. "anchor_from": "top_left",
  1122. "anchor_to": "top_left",
  1123. "controls": [
  1124. {"inventory_grid": {
  1125. "type": "grid",
  1126. "size": [ 162, 54 ],
  1127. "anchor_from": "top_left",
  1128. "anchor_to": "top_left",
  1129. "offset": [ 7, 0 ],
  1130. "grid_dimensions": [ 9, 3 ],
  1131. "grid_item_template": "inventory_grid_item"
  1132. }},
  1133. {"hotbar_grid": {
  1134. "type": "grid",
  1135. "size": [ 162, 18 ],
  1136. "anchor_from": "top_left",
  1137. "anchor_to": "top_left",
  1138. "offset": [ 7, 58 ],
  1139. "grid_dimensions": [ 9, 1 ],
  1140. "grid_item_template": "hotbar_grid_item"
  1141. }}
  1142. ]
  1143. },
  1144.  
  1145. //---------------------------------------------------------------------------
  1146. // Base Panels
  1147. //---------------------------------------------------------------------------
  1148.  
  1149. // Top half of ui, elements specific to survival inventory
  1150. // - player with armor on left
  1151. // - small crafting panel (2x2) on right
  1152. "survival_panel_top_half": {
  1153. "type": "panel",
  1154. "size": [ 176, 83 ],
  1155. "anchor_to": "top_left",
  1156. "anchor_from": "top_left",
  1157. "controls": [
  1158. {"@player_armor_panel": {}},
  1159. {"@crafting_panel_2x2": {}}
  1160. ]
  1161. },
  1162.  
  1163. // Top half of ui, elements specific to crafting screen
  1164. // - large crafting panel 3x3 on top half
  1165. "crafting_panel_top_half": {
  1166. "type": "panel",
  1167. "size": [ 176, 83 ],
  1168. "anchor_from": "top_left",
  1169. "anchor_to": "top_left"
  1170. },
  1171.  
  1172. // Bottom half of ui, inventory panel
  1173. "inventory_panel_bottom_half": {
  1174. "type": "panel",
  1175. "size": [ 176, 83 ],
  1176. "anchor_from": "left_middle",
  1177. "anchor_to": "top_left",
  1178. "controls": [
  1179. {"@inventory_panel": {}}
  1180. ]
  1181. },
  1182.  
  1183. // Common panel contains the bg image and the close button
  1184. "common_panel": {
  1185. "type": "panel",
  1186. "controls": [
  1187. {"bg_image@normal_stroke_button": {
  1188. "z_order": 1
  1189. }},
  1190. {"@close_button": {
  1191. "z_order": 1
  1192. }}
  1193. ]
  1194. },
  1195.  
  1196. // Root panel all others parented to
  1197. "root_panel": {
  1198. "type": "panel",
  1199. "size": [ 176, 166 ],
  1200. "anchor_from": "center",
  1201. "anchor_to": "center"
  1202. },
  1203.  
  1204. // Base Input Panel
  1205. "input_panel": {
  1206. "type": "input_panel",
  1207. "z_order": 1
  1208. },
  1209.  
  1210. //---------------------------------------------------------------------------
  1211. // Screens, survival inventory and crafting
  1212. //---------------------------------------------------------------------------
  1213.  
  1214. "screen_common": {
  1215. "type": "screen",
  1216. "button_mappings": [
  1217. {"from_button_id": "button.menu_cancel",
  1218. "to_button_id": "button.menu_exit",
  1219. "condition": "none"
  1220. },
  1221. {"from_button_id": "button.menu_inventory_cancel",
  1222. "to_button_id": "button.menu_exit",
  1223. "condition": "none"
  1224. },
  1225. {"from_button_id": "button.menu_up",
  1226. "to_button_id": "button.menu_up",
  1227. "condition": "none",
  1228. "scope": "view"
  1229. },
  1230. {"from_button_id": "button.menu_down",
  1231. "to_button_id": "button.menu_down",
  1232. "condition": "none",
  1233. "scope": "view"
  1234. },
  1235. {"from_button_id": "button.menu_left",
  1236. "to_button_id": "button.menu_left",
  1237. "condition": "none",
  1238. "scope": "view"
  1239. },
  1240. {"from_button_id": "button.menu_right",
  1241. "to_button_id": "button.menu_right",
  1242. "condition": "none",
  1243. "scope": "view"
  1244. },
  1245. {"from_button_id": "button.menu_select",
  1246. "to_button_id": "button.cursor_drop_all",
  1247. "condition": "hover"
  1248. },
  1249. {"from_button_id": "button.menu_secondary_select",
  1250. "to_button_id": "button.cursor_drop_one",
  1251. "condition": "hover"
  1252. }
  1253. ]
  1254. },
  1255.  
  1256. "crafting_screen@screen_common": {
  1257. "controls": [
  1258. {"@gamepad_helpers": {}},
  1259. {"@screen_background": {}},
  1260. {"@root_panel": {
  1261. "controls": [
  1262. {"@input_panel": {}},
  1263. {"@common_panel": {}},
  1264. {"@crafting_panel_top_half": {
  1265. "controls": [
  1266. {"@work_bench_panel_3x3": {
  1267. "offset": [29, 0]
  1268. }}
  1269. ]
  1270. }},
  1271. {"@inventory_panel_bottom_half": {}},
  1272. {"@crafting_selected_icon_button": {}},
  1273. {"@crafting_selected_foil_button": {}},
  1274. {"@crafting_hold_icon_button": {}}
  1275. ]
  1276. }}
  1277. ]
  1278. },
  1279.  
  1280. "stone_cutter_screen@screen_common": {
  1281. "controls": [
  1282. {"@gamepad_helpers": {}},
  1283. {"@screen_background": {}},
  1284. {"@root_panel": {
  1285. "controls": [
  1286. {"@input_panel": {}},
  1287. {"@common_panel": {}},
  1288. {"@crafting_panel_top_half": {
  1289. "controls": [
  1290. {"@stone_cutter_panel_3x3": {
  1291. "offset": [29, 0]
  1292. }}
  1293. ]
  1294. }},
  1295. {"@inventory_panel_bottom_half": {}},
  1296. {"@crafting_selected_icon_button": {}},
  1297. {"@crafting_selected_foil_button": {}},
  1298. {"@crafting_hold_icon_button": {}}
  1299. ]
  1300. }}
  1301. ]
  1302. },
  1303.  
  1304. "survival_screen@screen_common": {
  1305. "controls": [
  1306. {"@gamepad_helpers": {}},
  1307. {"@screen_background": {}},
  1308. {"@root_panel": {
  1309. "controls": [
  1310. {"@input_panel": {}},
  1311. {"@common_panel": {}},
  1312. {"@survival_panel_top_half": {}},
  1313. {"@inventory_panel_bottom_half": {}},
  1314. {"@crafting_selected_icon_button": {}},
  1315. {"@crafting_selected_foil_button": {}},
  1316. {"@crafting_hold_icon_button": {}}
  1317. ]
  1318. }}
  1319. ]
  1320. }
  1321. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement