Skip to content

Commit 5dad5cd

Browse files
[Sky Island] Warp Pulse UI (CleverRaven#70361)
* Initial Commit * Linting * _reen -> green * Rework condition logic * Color changes, include indication for being safe * Finalize conditions * Add check for awayfromhome to conditions
1 parent 4c98257 commit 5dad5cd

File tree

1 file changed

+148
-0
lines changed

1 file changed

+148
-0
lines changed

data/mods/Sky_Island/ui.json

Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
[
2+
{
3+
"//": "Extend with the expedition widget",
4+
"copy-from": "legacy_classic_sidebar",
5+
"type": "widget",
6+
"id": "legacy_classic_sidebar",
7+
"extend": { "widgets": [ "sky_island_expedition_timer" ] }
8+
},
9+
{
10+
"copy-from": "legacy_compact_sidebar",
11+
"type": "widget",
12+
"id": "legacy_compact_sidebar",
13+
"extend": { "widgets": [ "sky_island_expedition_timer" ] }
14+
},
15+
{
16+
"copy-from": "legacy_labels_narrow_sidebar",
17+
"type": "widget",
18+
"id": "legacy_labels_narrow_sidebar",
19+
"extend": { "widgets": [ "sky_island_expedition_timer" ] }
20+
},
21+
{
22+
"copy-from": "legacy_labels_sidebar",
23+
"type": "widget",
24+
"id": "legacy_labels_sidebar",
25+
"extend": { "widgets": [ "sky_island_expedition_timer" ] }
26+
},
27+
{
28+
"copy-from": "structured_sidebar",
29+
"type": "widget",
30+
"id": "structured_sidebar",
31+
"extend": { "widgets": [ "sky_island_expedition_timer" ] }
32+
},
33+
{
34+
"copy-from": "spacebar",
35+
"type": "widget",
36+
"id": "spacebar",
37+
"extend": { "widgets": [ "sky_island_expedition_timer" ] }
38+
},
39+
{
40+
"id": "sky_island_expedition_timer",
41+
"type": "widget",
42+
"label": "Expedition Timer:",
43+
"style": "text",
44+
"clauses": [
45+
{
46+
"id": "safe_at_home",
47+
"text": "HOME SAFE",
48+
"color": "light_blue",
49+
"condition": {
50+
"and": [
51+
{
52+
"or": [
53+
{ "u_at_om_location": "sky_island_core" },
54+
{ "u_at_om_location": "sky_island_edge" },
55+
{ "u_at_om_location": "sky_island_corner" }
56+
]
57+
},
58+
{ "not": { "u_has_trait": "awayfromhome" } }
59+
]
60+
}
61+
},
62+
{
63+
"id": "nine_left",
64+
"text": "+-+-+-+-+-+-+-+-+",
65+
"color": "light_blue",
66+
"condition": { "and": [ { "u_has_trait": "awayfromhome" }, { "math": [ "timeawayfromhome", "==", "0" ] } ] }
67+
},
68+
{
69+
"id": "eight_left",
70+
"text": "+-+-+-+-+-+-+-+",
71+
"color": "green",
72+
"condition": { "and": [ { "u_has_trait": "awayfromhome" }, { "math": [ "readablepulsesleft", ">=", "8" ] } ] }
73+
},
74+
{
75+
"id": "seven_left",
76+
"text": "+-+-+-+-+-+-+",
77+
"color": "light_green",
78+
"condition": { "and": [ { "u_has_trait": "awayfromhome" }, { "math": [ "readablepulsesleft", "==", "7" ] } ] }
79+
},
80+
{
81+
"id": "six_left",
82+
"text": "+-+-+-+-+-+",
83+
"color": "light_green",
84+
"condition": { "and": [ { "u_has_trait": "awayfromhome" }, { "math": [ "readablepulsesleft", "==", "6" ] } ] }
85+
},
86+
{
87+
"id": "five_left",
88+
"text": "+-+-+-+-+",
89+
"color": "yellow",
90+
"condition": { "and": [ { "u_has_trait": "awayfromhome" }, { "math": [ "readablepulsesleft", "==", "5" ] } ] }
91+
},
92+
{
93+
"id": "four_left",
94+
"text": "+-+-+-+",
95+
"color": "yellow",
96+
"condition": { "and": [ { "u_has_trait": "awayfromhome" }, { "math": [ "readablepulsesleft", "==", "4" ] } ] }
97+
},
98+
{
99+
"id": "three_left",
100+
"text": "+-+-+",
101+
"color": "yellow",
102+
"condition": { "and": [ { "u_has_trait": "awayfromhome" }, { "math": [ "readablepulsesleft", "==", "3" ] } ] }
103+
},
104+
{
105+
"id": "two_left",
106+
"text": "+-+",
107+
"color": "light_red",
108+
"condition": { "and": [ { "u_has_trait": "awayfromhome" }, { "math": [ "readablepulsesleft", "==", "2" ] } ] }
109+
},
110+
{
111+
"id": "one_left",
112+
"text": "+",
113+
"color": "light_red",
114+
"condition": { "and": [ { "u_has_trait": "awayfromhome" }, { "math": [ "readablepulsesleft", "==", "1" ] } ] }
115+
},
116+
{
117+
"id": "over_deadline",
118+
"text": "DANGER",
119+
"color": "i_light_red",
120+
"condition": { "and": [ { "u_has_trait": "awayfromhome" }, { "math": [ "timeawayfromhome", "==", "9" ] } ] }
121+
},
122+
{
123+
"id": "over_deadline_one",
124+
"text": "SEVERE DANGER",
125+
"color": "i_light_red",
126+
"condition": { "and": [ { "u_has_trait": "awayfromhome" }, { "math": [ "timeawayfromhome", "==", "10" ] } ] }
127+
},
128+
{
129+
"id": "over_deadline_two",
130+
"text": "EXTREME DANGER",
131+
"color": "i_red",
132+
"condition": { "and": [ { "u_has_trait": "awayfromhome" }, { "math": [ "timeawayfromhome", "==", "11" ] } ] }
133+
},
134+
{
135+
"id": "over_deadline_three",
136+
"text": "CATASTROPHIC DANGER",
137+
"color": "i_red",
138+
"condition": { "and": [ { "u_has_trait": "awayfromhome" }, { "math": [ "timeawayfromhome", "==", "12" ] } ] }
139+
},
140+
{
141+
"id": "over_deadline_four",
142+
"text": "IMMINENT DEATH",
143+
"color": "i_red",
144+
"condition": { "and": [ { "u_has_trait": "awayfromhome" }, { "u_has_effect": "warpdisintegration" } ] }
145+
}
146+
]
147+
}
148+
]

0 commit comments

Comments
 (0)