forked from x2605/gvv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata.lua
277 lines (249 loc) · 9.46 KB
/
data.lua
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
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
-- 데이터
local suffix = '_gvv-mod'
data:extend{
{
type = 'custom-input',
name = 'toggle-main-frame'..suffix,
key_sequence = 'CONTROL + SHIFT + V'
},
{
type = "sprite",
name = "gvv-mod_folder-opened",
filename = "__gvv__/icons/folder-opened.png",
priority = "extra-high-no-scale",
width = 32,
height = 32,
flags = {"gui-icon"},
mipmap_count = 1,
scale = 0.5
},
{
type = "sprite",
name = "gvv-mod_folder-closed",
filename = "__gvv__/icons/folder-closed.png",
priority = "extra-high-no-scale",
width = 32,
height = 32,
flags = {"gui-icon"},
mipmap_count = 1,
scale = 0.5
},
{
type = "font",
name = "var-outline-gvv-mod",
from = "default-bold",
size = 14,
border = true,
border_color = {}
},
}
local default_gui = data.raw['gui-style'].default
local copytbl = function(dupl,source)
default_gui[dupl] = table.deepcopy(source)
return default_gui[dupl]
end
local emptywidget = function(dupl)
default_gui[dupl] = {type = 'empty_widget_style', graphical_set = {}}
return default_gui[dupl]
end
local c
default_gui['hflow'..suffix] = {
type = "horizontal_flow_style",
padding = 0,
vertical_spacing = 0,
horizontal_spacing = 0,
}
default_gui['vflow'..suffix] = {
type = "vertical_flow_style",
padding = 0,
vertical_spacing = 0,
horizontal_spacing = 0,
}
c = copytbl('output'..suffix, default_gui.label)
c.single_line = false
c = copytbl('frame'..suffix, default_gui.frame)
c.graphical_set.base.draw_type = 'outer'
c.graphical_set.base.center = {position = {25, 8}, size = {1, 1}}
c.top_padding = 0
c.right_padding = 0
c.bottom_padding = 0
c.left_padding = 0
c.vertical_spacing = 0
c.horizontal_spacing = 0
c.horizontal_flow_style = default_gui['hflow'..suffix]
c.vertical_flow_style = default_gui['vflow'..suffix]
c = copytbl('frame-bg'..suffix, default_gui.frame)
c.graphical_set = {base = {center = {position = {8, 8}, size = {1, 1}}}}
c.top_padding = 0
c.right_padding = 0
c.bottom_padding = 0
c.left_padding = 0
c.use_header_filler = false
c = emptywidget('empty-frame-bg'..suffix)
c.graphical_set = {base = {center = {position = {8, 8}, size = {1, 1}}}}
c = copytbl('tabbed_pane_frame'..suffix, default_gui.tabbed_pane_frame)
c.top_padding = 0
c.right_padding = 0
c.bottom_padding = 0
c.left_padding = 0
c.vertical_spacing = 0
c.horizontal_spacing = 0
c.graphical_set.base.center = {position = {25, 8}, size = {1, 1}}
c.graphical_set.base.bottom = nil
c = emptywidget('empty-tabbed_pane_frame-bg'..suffix)
c.graphical_set = {
base = {
center = {position = {76, 8}, size = {1, 1}},
bottom = {position = {76, 9}, size = {1, 8}}
},
shadow = table.deepcopy(default_gui.subheader_frame.graphical_set.shadow)
}
c.horizontally_stretchable = 'on'
c = emptywidget('vertical-divider'..suffix)
c.graphical_set = {
base = {
left = {position = {68, 8}, size = {8, 1}},
center = {position = {76, 8}, size = {1, 1}},
right = {position = {77, 8}, size = {8, 1}}
},
shadow = table.deepcopy(default_gui.frame.graphical_set.shadow)
}
c.vertically_stretchable = 'on'
c = copytbl('tabbed_pane'..suffix, default_gui.tabbed_pane)
c.tab_content_frame.parent = 'tabbed_pane_frame'..suffix
c = copytbl('inside-wrap'..suffix, default_gui['frame'..suffix])
c.graphical_set = {
base = {
position = {17, 0}, corner_size = 8, draw_type = 'inner',
center = {position = {25, 8}, size = {1, 1}},
}
}
c = copytbl('inside_deep_frame'..suffix, default_gui.inside_deep_frame)
c.graphical_set.base = {
center = {position = {336, 0}, size = {1, 1}},
opacity = 0.75,
background_blur = true
}
c = copytbl('scroll_pane'..suffix, default_gui.scroll_pane_under_subheader)
c.horizontally_stretchable = 'on'
c.vertically_stretchable = 'on'
c.horizontal_scrollbar_style = table.deepcopy(default_gui.scroll_pane.horizontal_scrollbar_style)
c.horizontal_scrollbar_style.height=18
c.horizontal_scrollbar_style.thumb_button_style = table.deepcopy(default_gui.horizontal_scrollbar.thumb_button_style)
c.horizontal_scrollbar_style.thumb_button_style.height=16
c.vertical_scrollbar_style = table.deepcopy(default_gui.scroll_pane.vertical_scrollbar_style)
c.vertical_scrollbar_style.width=18
c.vertical_scrollbar_style.thumb_button_style = table.deepcopy(default_gui.vertical_scrollbar.thumb_button_style)
c.vertical_scrollbar_style.thumb_button_style.width=16
c = copytbl('c_sub_mod'..suffix, default_gui.rounded_button)
c.horizontally_stretchable = 'on'
c.horizontally_squashable = 'off'
c.horizontal_align = "left"
c = emptywidget('branch'..suffix)
c.graphical_set = {base = {center = {position = {76, 8}, size = {1, 1}}}}
c = emptywidget('branch-hide'..suffix)
c.graphical_set = {base = {center = {position = {25, 8}, size = {1, 1}}}}
default_gui['tree-item'..suffix] = {
type = "button_style",
font = "default",
horizontal_align = "left",
vertical_align = "center",
icon_horizontal_align = "left",
default_font_color = {1, 1, 1},
top_padding = 0,
bottom_padding = 0,
left_padding = 0,
right_padding = 0,
minimal_width = 1,
minimal_height = 1,
default_graphical_set = {base = {center = {position = {25, 8}, size = {1, 1}}}},
hovered_font_color = {1, 1, 1},
hovered_graphical_set =
{
base = {center = {position = {25, 8}, size = {1, 1}}},
glow = table.deepcopy(default_gui.button.hovered_graphical_set.glow),
},
clicked_font_color = {1, 1, 1},
clicked_vertical_offset = 0,
clicked_graphical_set =
{
base = {center = {position = {8, 25}, size = {1, 1}}},
glow = table.deepcopy(default_gui.button.hovered_graphical_set.glow),
},
left_click_sound = table.deepcopy(default_gui.button.left_click_sound),
disabled_font_color = {179, 179, 179},
disabled_graphical_set =
{
base = {center = {position = {25, 8}, size = {1, 1}}},
},
selected_font_color = button_hovered_font_color,
selected_graphical_set =
{
base = {center = {position = {25, 8}, size = {1, 1}}},
},
selected_hovered_font_color = button_hovered_font_color,
selected_hovered_graphical_set =
{
base = {center = {position = {25, 8}, size = {1, 1}}},
glow = table.deepcopy(default_gui.button.hovered_graphical_set.glow),
},
selected_clicked_font_color = button_hovered_font_color,
selected_clicked_graphical_set =
{
base = {center = {position = {8, 25}, size = {1, 1}}},
glow = table.deepcopy(default_gui.button.hovered_graphical_set.glow),
},
strikethrough_color = {0.5, 0.5, 0.5},
pie_progress_color = {1, 1, 1},
}
c = copytbl('tree-item-folder'..suffix, default_gui['tree-item'..suffix])
c.hovered_graphical_set.glow = table.deepcopy(default_gui.green_button.hovered_graphical_set.glow)
c.clicked_graphical_set.glow = table.deepcopy(default_gui.green_button.hovered_graphical_set.glow)
c.selected_hovered_graphical_set.glow = table.deepcopy(default_gui.green_button.hovered_graphical_set.glow)
c.selected_clicked_graphical_set.glow = table.deepcopy(default_gui.green_button.hovered_graphical_set.glow)
c = copytbl('tracked-tree-item'..suffix, default_gui['tree-item'..suffix])
local a, b = 337, 56
c.default_graphical_set.base.center.position = {a, b}
c.hovered_graphical_set.base.center.position = {a, b}
c.disabled_graphical_set.base.center.position = {a, b}
c.selected_graphical_set.base.center.position = {a, b}
c.selected_hovered_graphical_set.base.center.position = {a, b}
c = copytbl('tracked-tree-item-folder'..suffix, default_gui['tree-item-folder'..suffix])
local a, b = 337, 56
c.default_graphical_set.base.center.position = {a, b}
c.hovered_graphical_set.base.center.position = {a, b}
c.disabled_graphical_set.base.center.position = {a, b}
c.selected_graphical_set.base.center.position = {a, b}
c.selected_hovered_graphical_set.base.center.position = {a, b}
c = copytbl('tree-item-luaobj'..suffix, default_gui['tree-item'..suffix])
c.hovered_graphical_set.glow = table.deepcopy(default_gui.red_button.hovered_graphical_set.glow)
c.clicked_graphical_set.glow = table.deepcopy(default_gui.red_button.hovered_graphical_set.glow)
c.selected_hovered_graphical_set.glow = table.deepcopy(default_gui.red_button.hovered_graphical_set.glow)
c.selected_clicked_graphical_set.glow = table.deepcopy(default_gui.red_button.hovered_graphical_set.glow)
c = copytbl('tracked-tree-item-luaobj'..suffix, default_gui['tree-item-luaobj'..suffix])
local a, b = 355, 161
c.default_graphical_set.base.center.position = {a, b}
c.hovered_graphical_set.base.center.position = {a, b}
c.disabled_graphical_set.base.center.position = {a, b}
c.selected_graphical_set.base.center.position = {a, b}
c.selected_hovered_graphical_set.base.center.position = {a, b}
c = copytbl('tree-item-func'..suffix, default_gui['tree-item'..suffix])
c.clicked_graphical_set = {base = {center = {position = {25, 8}, size = {1, 1}}}}
c.selected_clicked_graphical_set = {base = {center = {position = {25, 8}, size = {1, 1}}}}
c.hovered_graphical_set.glow = nil
c.clicked_graphical_set.glow = nil
c.selected_hovered_graphical_set.glow = nil
c.left_click_sound = nil
c = copytbl('tree-item-na'..suffix, default_gui['tree-item-func'..suffix])
c = copytbl('list_box_scroll_pane-transparent'..suffix, default_gui.list_box_scroll_pane)
c.background_graphical_set = {
position = {187, 0},
corner_size = 1,
overall_tiling_vertical_size = 20,
overall_tiling_vertical_spacing = 8,
overall_tiling_vertical_padding = 4,
overall_tiling_horizontal_padding = 4,
}
c.graphical_set = {base = {center = {position = {25, 8}, size = {1, 1}}}}
c = copytbl('list_box-transparent'..suffix, default_gui.list_box)
c.scroll_pane_style.parent = 'list_box_scroll_pane-transparent'..suffix