Skip to content

Commit bba1141

Browse files
New Abstract Option system
1 parent e66fe9c commit bba1141

6 files changed

Lines changed: 352 additions & 1 deletion

File tree

18.5 KB
Binary file not shown.

Resources/RLIb.meta

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Resources/RLIb/RLibWindow.uss

Lines changed: 345 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,345 @@
1+
.rlib-root {
2+
padding: 16px;
3+
flex-direction: column;
4+
flex-grow: 1;
5+
}
6+
7+
/* ── Header ── */
8+
.rlib-header {
9+
flex-direction: column;
10+
margin-bottom: 20px;
11+
padding-bottom: 18px;
12+
border-bottom-width: 1px;
13+
border-bottom-color: rgba(77, 77, 77, 0.5);
14+
}
15+
16+
.rlib-header__title {
17+
font-size: 18px;
18+
-unity-font-style: bold;
19+
margin-bottom: 8px;
20+
}
21+
22+
.rlib-header__description {
23+
white-space: normal;
24+
font-size: 11px;
25+
color: rgba(179, 179, 179, 1);
26+
margin-bottom: 12px;
27+
}
28+
29+
/* ── Stats Card ── */
30+
.rlib-stats {
31+
flex-direction: row;
32+
padding: 10px 12px;
33+
background-color: rgba(51, 64, 77, 0.3);
34+
border-radius: 4px;
35+
margin-bottom: 20px;
36+
}
37+
38+
.rlib-stats__item {
39+
flex-direction: column;
40+
margin-right: 16px;
41+
align-items: flex-start;
42+
flex-shrink: 0;
43+
}
44+
45+
.rlib-stats__item--last {
46+
margin-right: 0;
47+
}
48+
49+
.rlib-stats__name {
50+
font-size: 10px;
51+
color: rgba(179, 179, 179, 1);
52+
margin-bottom: 6px;
53+
-unity-font-style: bold;
54+
}
55+
56+
.rlib-stats__value {
57+
font-size: 14px;
58+
-unity-font-style: bold;
59+
color: rgba(230, 230, 230, 1);
60+
}
61+
62+
.rlib-stats__value--positive {
63+
color: rgba(128, 230, 128, 1);
64+
}
65+
66+
.rlib-stats__value--negative {
67+
color: rgba(230, 153, 128, 1);
68+
}
69+
70+
/* ── Options Section ── */
71+
.rlib-options {
72+
margin-bottom: 18px;
73+
flex-grow: 1;
74+
flex-shrink: 1;
75+
min-height: 0;
76+
}
77+
78+
.rlib-options__title {
79+
font-size: 14px;
80+
-unity-font-style: bold;
81+
margin-bottom: 12px;
82+
}
83+
84+
.rlib-options__scroll {
85+
flex-grow: 1;
86+
flex-shrink: 1;
87+
margin-bottom: 10px;
88+
}
89+
90+
/* ── Option Group Card ── */
91+
.rlib-group {
92+
margin-bottom: 14px;
93+
background-color: rgba(38, 38, 38, 0.4);
94+
padding: 10px;
95+
border-radius: 6px;
96+
}
97+
98+
.rlib-group__foldout {
99+
-unity-font-style: bold;
100+
font-size: 12px;
101+
margin-left: 0;
102+
margin-bottom: 4px;
103+
}
104+
105+
.rlib-group__content {
106+
margin-left: 6px;
107+
margin-top: 6px;
108+
padding-left: 12px;
109+
border-left-width: 2px;
110+
border-left-color: rgba(102, 102, 102, 0.3);
111+
}
112+
113+
/* ── Option Item ── */
114+
.rlib-option {
115+
margin-bottom: 10px;
116+
padding: 6px 8px;
117+
background-color: rgba(51, 51, 51, 0.25);
118+
border-radius: 3px;
119+
}
120+
121+
.rlib-option--hidden {
122+
display: none;
123+
}
124+
125+
.rlib-option__toggle {
126+
margin-bottom: 4px;
127+
font-size: 11px;
128+
}
129+
130+
.rlib-option__enum-row {
131+
flex-direction: row;
132+
align-items: center;
133+
margin-bottom: 4px;
134+
}
135+
136+
.rlib-option__enum-label {
137+
font-size: 11px;
138+
-unity-font-style: bold;
139+
margin-right: 8px;
140+
flex-shrink: 0;
141+
}
142+
143+
.rlib-option__enum-field {
144+
min-width: 100px;
145+
max-width: 150px;
146+
font-size: 10px;
147+
}
148+
149+
.rlib-option__description {
150+
white-space: normal;
151+
font-size: 10px;
152+
margin-left: 16px;
153+
color: rgba(153, 153, 153, 1);
154+
}
155+
156+
.rlib-option__unsupported {
157+
font-size: 10px;
158+
color: rgba(255, 153, 51, 1);
159+
}
160+
161+
/* ── Progress ── */
162+
.rlib-progress {
163+
margin-bottom: 18px;
164+
padding: 12px 14px;
165+
background-color: rgba(38, 51, 64, 0.4);
166+
border-radius: 6px;
167+
display: none;
168+
flex-grow: 1;
169+
flex-shrink: 1;
170+
min-height: 0;
171+
justify-content: center;
172+
}
173+
174+
.rlib-progress--visible {
175+
display: flex;
176+
}
177+
178+
.rlib-progress__label {
179+
font-size: 11px;
180+
margin-bottom: 8px;
181+
color: rgba(217, 217, 217, 1);
182+
-unity-text-align: middle-center;
183+
}
184+
185+
.rlib-progress__bar {
186+
height: 20px;
187+
}
188+
189+
/* ── Tuple Table ── */
190+
.rlib-table {
191+
margin-top: 4px;
192+
}
193+
194+
.rlib-table__header {
195+
flex-direction: row;
196+
padding: 4px 6px;
197+
background-color: rgba(255, 255, 255, 0.05);
198+
border-bottom-width: 1px;
199+
border-bottom-color: rgba(255, 255, 255, 0.1);
200+
margin-bottom: 2px;
201+
}
202+
203+
.rlib-table__header-cell {
204+
flex: 1;
205+
font-size: 10px;
206+
-unity-font-style: bold;
207+
color: rgba(179, 179, 179, 1);
208+
}
209+
210+
.rlib-table__rows {
211+
flex-direction: column;
212+
overflow: hidden;
213+
}
214+
215+
.rlib-table__row {
216+
flex-direction: row;
217+
align-items: flex-start;
218+
margin-bottom: 3px;
219+
overflow: hidden;
220+
}
221+
222+
.rlib-table__cell {
223+
flex: 1;
224+
min-width: 0;
225+
margin-right: 4px;
226+
font-size: 11px;
227+
overflow: hidden;
228+
}
229+
230+
.rlib-table__remove-button {
231+
width: 24px;
232+
height: 24px;
233+
font-size: 12px;
234+
padding: 0;
235+
margin-left: 4px;
236+
color: rgba(200, 100, 100, 1);
237+
background-color: rgba(200, 100, 100, 0.15);
238+
border-width: 1px;
239+
border-color: rgba(200, 100, 100, 0.4);
240+
border-radius: 4px;
241+
-unity-text-align: middle-center;
242+
flex-shrink: 0;
243+
}
244+
245+
.rlib-table__remove-button:hover {
246+
background-color: rgba(200, 100, 100, 0.35);
247+
border-color: rgba(200, 100, 100, 0.6);
248+
}
249+
250+
.rlib-table__add-button {
251+
margin-top: 6px;
252+
width: 24px;
253+
height: 24px;
254+
font-size: 14px;
255+
padding: 0;
256+
color: rgba(128, 200, 128, 1);
257+
background-color: rgba(128, 200, 128, 0.15);
258+
border-width: 1px;
259+
border-color: rgba(128, 200, 128, 0.4);
260+
border-radius: 4px;
261+
-unity-text-align: middle-center;
262+
}
263+
264+
.rlib-table__add-button:hover {
265+
background-color: rgba(128, 200, 128, 0.35);
266+
border-color: rgba(128, 200, 128, 0.6);
267+
}
268+
269+
/* ── Object field ── */
270+
.rlib-option__object-field {
271+
flex-grow: 1;
272+
min-width: 100px;
273+
max-width: 250px;
274+
font-size: 10px;
275+
}
276+
277+
/* ── Table layout fixes ── */
278+
.rlib-table__header {
279+
flex-direction: row;
280+
align-items: center;
281+
overflow: hidden;
282+
}
283+
284+
.rlib-table__header-cell {
285+
flex: 1;
286+
min-width: 0;
287+
overflow: hidden;
288+
}
289+
290+
.rlib-table__cell--label {
291+
flex: 1;
292+
min-width: 0;
293+
color: rgba(179, 179, 179, 1);
294+
font-size: 11px;
295+
-unity-font-style: bold;
296+
padding: 4px 4px 0 4px;
297+
overflow: hidden;
298+
}
299+
300+
/* ── String field ── */
301+
.rlib-option__text-field {
302+
flex-grow: 1;
303+
min-width: 0;
304+
font-size: 11px;
305+
}
306+
307+
/* ── Table header column alignment fix ── */
308+
.rlib-table__header-cell--label {
309+
flex: 1;
310+
min-width: 0;
311+
}
312+
313+
.rlib-table__header-cell--value {
314+
flex: 1;
315+
}
316+
317+
/* ── Shapekey suggestion dropdown ── */
318+
.rlib-suggestion__list {
319+
max-height: 140px;
320+
margin-top: 2px;
321+
background-color: rgba(30, 30, 30, 0.97);
322+
border-width: 1px;
323+
border-color: rgba(100, 100, 100, 0.6);
324+
border-radius: 4px;
325+
padding: 2px;
326+
}
327+
328+
.rlib-suggestion__item {
329+
background-color: rgba(0, 0, 0, 0);
330+
border-width: 0;
331+
border-radius: 3px;
332+
padding: 4px 8px;
333+
font-size: 11px;
334+
-unity-text-align: middle-left;
335+
margin-bottom: 1px;
336+
}
337+
338+
.rlib-suggestion__item:hover {
339+
background-color: rgba(80, 120, 180, 0.3);
340+
}
341+
342+
.rlib-suggestion--selected {
343+
background-color: rgba(80, 120, 180, 0.55);
344+
color: rgba(230, 230, 230, 1);
345+
}

Resources/RLIb/RLibWindow.uss.meta

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 Bytes
Binary file not shown.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "net.bitforged.rlib",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"displayName": "RetroLib",
55
"description": "A collection of editor tooling and generic tools shared across Retro assets.",
66
"unity": "2022.3",

0 commit comments

Comments
 (0)