Skip to content

Commit 005614f

Browse files
author
ozelot379
committed
Convert dialog ui
1 parent 367dcbe commit 005614f

4 files changed

Lines changed: 53 additions & 10 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Changelog
22

33
## [x]
4-
- Convert dialog ui
4+
- Convert dialog, inventory and recipe book ui
55
- Possible bugs fixed in:
66
- Fix dye
77
- Fix enchanted item glint

‎src/converter/ButtonConverter.js‎

Lines changed: 44 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class ButtonConverter extends AbstractConverter {
2626
image.autoCropTransparent();
2727

2828
const metadata = {
29-
nineslice_size: 4,
29+
nineslice_size: 5,
3030
base_size: [width, height]
3131
};
3232

@@ -67,25 +67,34 @@ class ButtonConverter extends AbstractConverter {
6767
[0, 46, 200, 20, [
6868
"textures/ui/button_borderless_darkpressednohover",
6969
"textures/ui/button_borderless_lightpressednohover",
70-
"textures/ui/disabledButtonNoBorder"
70+
"textures/ui/disabledButtonNoBorder",
71+
"textures/ui/recipe_book_button_borderless_lightpressednohover"
7172
]],
7273
[0, 66, 200, 20, [
7374
"textures/ui/button_borderless_dark",
7475
"textures/ui/button_borderless_light",
75-
"textures/ui/pocket_button_default"
76+
"textures/ui/pocket_button_default",
77+
"textures/ui/recipe_book_button_borderless_light",
78+
"textures/ui/recipe_book_dark_button",
79+
"textures/ui/recipe_book_light_button"
7680
]],
7781
[0, 86, 200, 20, [
7882
"textures/ui/button_borderless_darkhover",
7983
"textures/ui/button_borderless_darkpressed",
8084
"textures/ui/button_borderless_lighthover",
8185
"textures/ui/button_borderless_lightpressed",
8286
"textures/ui/pocket_button_hover",
83-
"textures/ui/pocket_button_pressed"
87+
"textures/ui/pocket_button_pressed",
88+
"textures/ui/recipe_book_button_borderless_lighthover",
89+
"textures/ui/recipe_book_button_borderless_lightpressed",
90+
"textures/ui/recipe_book_dark_button_pressed",
91+
"textures/ui/recipe_book_light_button_pressed"
8492
]]
8593
],
8694
[
8795
"textures/ui/focus_border_selected",
88-
"textures/ui/focus_border_white"
96+
"textures/ui/focus_border_white",
97+
"textures/ui/world_screenshot_focus_border"
8998
]
9099
],
91100
[
@@ -94,13 +103,16 @@ class ButtonConverter extends AbstractConverter {
94103
[
95104
[0, 0, 28, 32, [
96105
"textures/ui/pocket_tab_left_side",
106+
"textures/ui/recipe_book_side_toggle_dark",
97107
"textures/ui/TabLeftBack",
98108
"textures/ui/TabLeftBackBottomMost",
99109
"textures/ui/TabLeftBackTopMost",
100110
"textures/ui/TabTopBackLeftMost"
101111
]],
102112
[28, 0, 28, 32, [
103-
"textures/ui/TabTopBack"
113+
"textures/ui/recipe_back_panel",
114+
"textures/ui/TabTopBack",
115+
"textures/ui/toolbar_background"
104116
]],
105117
[140, 0, 28, 32, [
106118
"textures/ui/pocket_tab_right_side",
@@ -112,6 +124,7 @@ class ButtonConverter extends AbstractConverter {
112124
"textures/ui/XTab"
113125
]],
114126
[0, 32, 28, 32, [
127+
"textures/ui/recipe_book_side_toggle_dark_hover",
115128
"textures/ui/TabLeftFront",
116129
"textures/ui/TabLeftFrontBottomMost",
117130
"textures/ui/TabLeftFrontTopMost",
@@ -129,6 +142,31 @@ class ButtonConverter extends AbstractConverter {
129142
]]
130143
],
131144
[]
145+
],
146+
[
147+
"textures/gui/container/generic_54.png",
148+
256,
149+
[
150+
[7, 17, 18, 18, [
151+
"textures/ui/cell_image",
152+
"textures/ui/recipe_book_item_bg"
153+
]]
154+
],
155+
[
156+
"textures/ui/recipe_book_pane_bg",
157+
"textures/ui/recipe_book_touch_cell_selected"
158+
]
159+
],
160+
[
161+
"textures/gui/container/creative_inventory/tab_item_search.png",
162+
256,
163+
[
164+
[79, 3, 92, 14, [
165+
"textures/ui/edit_box_indent",
166+
"textures/ui/edit_box_indent_hover"
167+
]]
168+
],
169+
[]
132170
]
133171
];
134172
}

‎src/converter/CopyConverter.js‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ class CopyConverter extends AbstractConverter {
6464
// UI
6565
["textures/blocks/brick.png", "textures/ui/icon_recipe_construction.png"],
6666
["textures/blocks/chest_front.png", "textures/ui/inventory_icon.png"],
67+
["textures/blocks/empty_armor_slot_boots.png", "textures/ui/empty_armor_slot_boots.png"],
68+
["textures/blocks/empty_armor_slot_chestplate.png", "textures/ui/empty_armor_slot_chestplate.png"],
69+
["textures/blocks/empty_armor_slot_helmet.png", "textures/ui/empty_armor_slot_helmet.png"],
70+
["textures/blocks/empty_armor_slot_leggings.png", "textures/ui/empty_armor_slot_leggings.png"],
71+
["textures/blocks/empty_armor_slot_shield.png", "textures/ui/empty_armor_slot_shield.png"],
6772
["textures/blocks/grass_side_carried.png", "textures/ui/icon_recipe_nature.png"],
6873
["textures/items/book_normal.png", "textures/ui/creative_icon.png"],
6974
["textures/items/bed_red.png", "textures/ui/icon_recipe_item.png"],

‎src/converter/DespriteConverter.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ class DespriteConverter extends AbstractConverter {
4848
["textures/gui/widgets.png", 256, [
4949
[0, 0, 1, 22, "textures/ui/hotbar_start_cap.png"],
5050
[1, 0, 20, 22, "textures/ui/hotbar_0.png"],
51-
[1, 0, 20, 22, "textures/ui/pocket_ui_highlight_slot.png"],
5251
[21, 0, 20, 22, "textures/ui/hotbar_1.png"],
5352
[41, 0, 20, 22, "textures/ui/hotbar_2.png"],
5453
[61, 0, 20, 22, "textures/ui/hotbar_3.png"],
@@ -58,8 +57,9 @@ class DespriteConverter extends AbstractConverter {
5857
[141, 0, 20, 22, "textures/ui/hotbar_7.png"],
5958
[161, 0, 20, 22, "textures/ui/hotbar_8.png"],
6059
[181, 0, 1, 22, "textures/ui/hotbar_end_cap.png"],
61-
[0, 22, 24, 24, "textures/ui/selected_hotbar_slot.png"],
62-
[0, 22, 24, 24, "textures/ui/pocket_ui_highlight_selected_slot.png"]
60+
[0, 22, 24, 24, "textures/ui/pocket_ui_highlight_selected_slot.png"],
61+
[0, 22, 24, 24, "textures/ui/pocket_ui_highlight_slot.png"],
62+
[0, 22, 24, 24, "textures/ui/selected_hotbar_slot.png"]
6363
]],
6464

6565
// Mob effect background

0 commit comments

Comments
 (0)