forked from CleanroomMC/ModularUI
-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathGuiTextures.java
More file actions
227 lines (199 loc) · 8.98 KB
/
Copy pathGuiTextures.java
File metadata and controls
227 lines (199 loc) · 8.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
package com.cleanroommc.modularui.drawable;
import com.cleanroommc.modularui.ModularUI;
import com.cleanroommc.modularui.api.GuiAxis;
import static com.cleanroommc.modularui.drawable.UITexture.icon;
public interface GuiTextures {
UITexture GEAR = icon("gear", 0, 0);
UITexture MORE = icon("more", 16, 0);
UITexture SAVED = icon("saved", 32, 0);
UITexture SAVE = icon("save", 48, 0);
UITexture ADD = icon("add", 64, 0);
UITexture DUPE = icon("dupe", 80, 0);
UITexture REMOVE = icon("remove", 96, 0);
UITexture POSE = icon("pose", 112, 0);
UITexture FILTER = icon("filter", 128, 0);
UITexture MOVE_UP = icon("move_up", 144, 0, 16, 8);
UITexture MOVE_DOWN = icon("move_down", 144, 8, 16, 8);
UITexture LOCKED = icon("locked", 160, 0);
UITexture UNLOCKED = icon("unlocked", 176, 0);
UITexture COPY = icon("copy", 192, 0);
UITexture PASTE = icon("paste", 208, 0);
UITexture CUT = icon("cut", 224, 0);
UITexture REFRESH = icon("refresh", 240, 0);
UITexture DOWNLOAD = icon("download", 0, 16);
UITexture UPLOAD = icon("upload", 16, 16);
UITexture SERVER = icon("server", 32, 16);
UITexture FOLDER = icon("folder", 48, 16);
UITexture IMAGE = icon("image", 64, 16);
UITexture EDIT = icon("edit", 80, 16);
UITexture MATERIAL = icon("material", 96, 16);
UITexture CLOSE = icon("close", 112, 16);
UITexture LIMB = icon("limb", 128, 16);
UITexture CODE = icon("code", 144, 16);
UITexture MOVE_LEFT = icon("move_left", 144, 16, 8, 16);
UITexture MOVE_RIGHT = icon("move_right", 152, 16, 8, 16);
UITexture HELP = icon("help", 160, 16);
UITexture LEFT_HANDLE = icon("left_handle", 176, 16);
UITexture MAIN_HANDLE = icon("main_handle", 192, 16);
UITexture RIGHT_HANDLE = icon("right_handle", 208, 16);
UITexture REVERSE = icon("reverse", 224, 16);
UITexture BLOCK = icon("", 240, 16);
UITexture FAVORITE = icon("block", 0, 32);
UITexture VISIBLE = icon("visible", 16, 32);
UITexture INVISIBLE = icon("invisible", 32, 32);
UITexture PLAY = icon("play", 48, 32);
UITexture PAUSE = icon("pause", 64, 32);
UITexture MAXIMIZE = icon("maximize", 80, 32);
UITexture MINIMIZE = icon("minimize", 96, 32);
UITexture STOP = icon("stop", 112, 32);
UITexture FULLSCREEN = icon("fullscreen", 128, 32);
UITexture ALL_DIRECTIONS = icon("all_directions", 144, 32);
UITexture SPHERE = icon("sphere", 160, 32);
UITexture SHIFT_TO = icon("shift_to", 176, 32);
UITexture SHIFT_FORWARD = icon("shift_forward", 192, 32);
UITexture SHIFT_BACKWARD = icon("shift_backward", 208, 32);
UITexture MOVE_TO = icon("move_to", 224, 32);
UITexture GRAPH = icon("graph", 240, 32);
UITexture WRENCH = icon("wrench", 0, 48);
UITexture EXCLAMATION = icon("exclamation", 16, 48);
UITexture LEFTLOAD = icon("leftload", 32, 48);
UITexture RIGHTLOAD = icon("rightload", 48, 48);
UITexture BUBBLE = icon("bubble", 64, 48);
UITexture FILE = icon("file", 80, 48);
UITexture PROCESSOR = icon("processor", 96, 48);
UITexture MAZE = icon("maze", 112, 48);
UITexture BOOKMARK = icon("bookmark", 128, 48);
UITexture SOUND = icon("sound", 144, 48);
UITexture SEARCH = icon("search", 160, 48);
UITexture CHECKMARK = icon("checkmark", 176, 48);
UITexture FAVORITE_OUTLINE = icon("favorite_outline", 192, 48);
UITexture CHECKBOARD = icon("checkboard", 0, 240);
UITexture DISABLED = icon("disabled", 16, 240);
UITexture CURSOR = icon("cursor", 32, 240);
UITexture MUI_LOGO = UITexture.builder()
.location(ModularUI.ID, "modular_ui_logo")
.imageSize(603, 603)
.name("logo")
.build();
UITexture MC_BACKGROUND = UITexture.builder()
.location(ModularUI.ID, "gui/background/vanilla_background")
.imageSize(195, 136)
.adaptable(4)
.name("vanilla_background")
.defaultColorType()
.build();
UITexture MENU_BACKGROUND = UITexture.builder()
.location(ModularUI.ID, "gui/background/menu")
.imageSize(18, 18)
.adaptable(1)
.name("menu")
.defaultColorType()
.build();
UITexture MC_BUTTON = UITexture.builder()
.location(ModularUI.ID, "gui/widgets/mc_button")
.imageSize(16, 32) // texture is 32x64, but this looks nicer
.subAreaUV(0f, 0f, 1f, 0.5f)
.adaptable(2).tiled()
.name("mc_button")
.defaultColorType()
.build();
UITexture MC_BUTTON_PRESSED = UITexture.builder()
.location(ModularUI.ID, "gui/widgets/mc_button")
.imageSize(16, 32)
.subAreaUV(0f, 0.5f, 1f, 1f)
.adaptable(2).tiled()
.name("mc_button_pressed")
.defaultColorType()
.build();
UITexture MC_BUTTON_HOVERED = UITexture.builder()
.location(ModularUI.ID, "gui/widgets/mc_button_hovered")
.imageSize(16, 32)
.subAreaUV(0f, 0f, 1f, 0.5f)
.adaptable(2).tiled()
.name("mc_button_hovered")
.build();
UITexture MC_BUTTON_HOVERED_PRESSED = UITexture.builder()
.location(ModularUI.ID, "gui/widgets/mc_button_hovered")
.imageSize(16, 32)
.subAreaUV(0f, 0.5f, 1f, 1f)
.adaptable(2).tiled()
.name("mc_button_hovered_pressed")
.build();
UITexture MC_BUTTON_DISABLED = UITexture.builder()
.location(ModularUI.ID, "gui/widgets/mc_button_disabled")
.imageSize(16, 16)
.fullImage()
.adaptable(1).tiled()
.name("mc_button_disabled")
.defaultColorType()
.build();
UITexture BUTTON_CLEAN = UITexture.builder()
.location(ModularUI.ID, "gui/widgets/base_button")
.imageSize(18, 18)
.adaptable(1)
.name("vanilla_button").canApplyTheme()
.build();
UITexture DISPLAY = UITexture.builder()
.location(ModularUI.ID, "gui/background/display")
.imageSize(143, 75)
.adaptable(2)
.name("display")
.build();
UITexture DISPLAY_SMALL = UITexture.builder()
.location(ModularUI.ID, "gui/background/display_small")
.imageSize(18, 18)
.adaptable(1)
.name("display_small")
.build();
UITexture SLOT_ITEM = UITexture.builder()
.location(ModularUI.ID, "gui/slot/item")
.imageSize(18, 18)
.adaptable(1)
.canApplyTheme()
.name("slot_item")
.build();
UITexture SLOT_ITEM_PLAYER = UITexture.builder()
.location(ModularUI.ID, "gui/slot/item_player")
.imageSize(18, 18)
.adaptable(1)
.name("slot_item_player")
.build();
UITexture SLOT_ITEM_HOTBAR = UITexture.builder()
.location(ModularUI.ID, "gui/slot/item_hotbar")
.imageSize(18, 18)
.adaptable(1)
.name("slot_item_hotbar")
.build();
UITexture SLOT_FLUID = UITexture.builder()
.location(ModularUI.ID, "gui/slot/fluid")
.imageSize(18, 18)
.adaptable(1)
.canApplyTheme()
.name("slot_fluid")
.build();
UITexture PROGRESS_ARROW = UITexture.builder()
.location(ModularUI.ID, "gui/widgets/progress_bar_arrow")
.imageSize(20, 40)
.canApplyTheme()
.build();
UITexture PROGRESS_CYCLE = UITexture.builder()
.location(ModularUI.ID, "gui/widgets/progress_bar_mixer")
.imageSize(20, 40)
.canApplyTheme()
.build();
UITexture CYCLE_BUTTON_DEMO = UITexture.builder()
.location(ModularUI.ID, "gui/widgets/cycle_button_demo")
.imageSize(18, 54)
.build();
UITexture CHECK_BOX = UITexture.fullImage(ModularUI.ID, "gui/widgets/toggle_config");
UITexture CROSS = UITexture.fullImage(ModularUI.ID, "gui/icons/cross");
UITexture CROSS_TINY = UITexture.fullImage(ModularUI.ID, "gui/icons/cross_tiny");
UITexture ARROW_UP = UITexture.fullImage(ModularUI.ID, "gui/icons/arrow_up");
UITexture ARROW_DOWN = UITexture.fullImage(ModularUI.ID, "gui/icons/arrow_down");
UITexture CHECK_BOX_EMPTY = CHECK_BOX.getSubArea(0, 0, 1f, 0.5f);
UITexture CHECK_BOX_FULL = CHECK_BOX.getSubArea(0, 0.5f, 1f, 1f);
TabTexture TAB_TOP = TabTexture.of(UITexture.fullImage(ModularUI.ID, "gui/tab/tabs_top", ColorType.DEFAULT), GuiAxis.Y, false, 28, 32, 4);
TabTexture TAB_BOTTOM = TabTexture.of(UITexture.fullImage(ModularUI.ID, "gui/tab/tabs_bottom", ColorType.DEFAULT), GuiAxis.Y, true, 28, 32, 4);
TabTexture TAB_LEFT = TabTexture.of(UITexture.fullImage(ModularUI.ID, "gui/tab/tabs_left", ColorType.DEFAULT), GuiAxis.X, false, 32, 28, 4);
TabTexture TAB_RIGHT = TabTexture.of(UITexture.fullImage(ModularUI.ID, "gui/tab/tabs_right", ColorType.DEFAULT), GuiAxis.X, true, 32, 28, 4);
}