Skip to content

Commit

Permalink
[Xedra Evolve] Add Ruach counter to sidebars (#77422)
Browse files Browse the repository at this point in the history
* Update sidebar.json

* Create ruach_counter.json

* Initial commit

* Add to sidebars
  • Loading branch information
Standing-Storm authored Oct 29, 2024
1 parent 64914b4 commit 40ca576
Show file tree
Hide file tree
Showing 2 changed files with 126 additions and 6 deletions.
83 changes: 83 additions & 0 deletions data/mods/Xedra_Evolved/ui/ruach_counter.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
[
{
"id": "spacebar_ruach_counter_block",
"type": "widget",
"style": "layout",
"label": "Ruach",
"arrange": "minimum_columns",
"width": 58,
"widgets": [ "spacebar_separator_2", "ruach_counter_meter" ]
},
{
"id": "ruach_counter_meter",
"type": "widget",
"style": "text",
"label": "Ruach",
"flags": [ "W_DISABLED_WHEN_EMPTY" ],
"width": 56,
"clauses": [
{
"id": "out_of_ruach",
"text": "Starving",
"color": "c_pink",
"condition": { "and": [ { "u_has_trait": "LILIN_TRAITS" }, { "math": [ "u_vitamin('lilin_ruach_vitamin')", "==", "0" ] } ] }
},
{
"id": "ruach_level_1",
"text": "<color_red>Almost Spent</color>",
"condition": {
"and": [
{ "u_has_trait": "LILIN_TRAITS" },
{ "math": [ "u_vitamin('lilin_ruach_vitamin')", ">=", "1" ] },
{ "math": [ "u_vitamin('lilin_ruach_vitamin')", "<", "241" ] }
]
}
},
{
"id": "ruach_level_2",
"text": "<color_light_red>Drained</color>",
"condition": {
"and": [
{ "u_has_trait": "LILIN_TRAITS" },
{ "math": [ "u_vitamin('lilin_ruach_vitamin')", ">=", "241" ] },
{ "math": [ "u_vitamin('lilin_ruach_vitamin')", "<", "481" ] }
]
}
},
{
"id": "ruach_level_3",
"text": "<color_yellow>Refreshed</color>",
"condition": {
"and": [
{ "u_has_trait": "LILIN_TRAITS" },
{ "math": [ "u_vitamin('lilin_ruach_vitamin')", ">=", "480" ] },
{ "math": [ "u_vitamin('lilin_ruach_vitamin')", "<", "1201" ] }
]
}
},
{
"id": "ruach_level_4",
"text": "<color_light_green>Satiated</color>",
"condition": {
"and": [
{ "u_has_trait": "LILIN_TRAITS" },
{ "math": [ "u_vitamin('lilin_ruach_vitamin')", ">=", "1200" ] },
{ "math": [ "u_vitamin('lilin_ruach_vitamin')", "<", "2401" ] }
]
}
},
{
"id": "ruach_level_5",
"text": "<color_green>Suffused</color>",
"condition": {
"and": [
{ "u_has_trait": "LILIN_TRAITS" },
{ "u_has_trait": "LILIN_HOLD_MORE_RUACH" },
{ "math": [ "u_vitamin('lilin_ruach_vitamin')", ">=", "2400" ] }
]
}
}
],
"padding": 0
}
]
49 changes: 43 additions & 6 deletions data/mods/Xedra_Evolved/ui/sidebar.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,13 @@
"type": "widget",
"id": "legacy_classic_sidebar",
"extend": {
"widgets": [ "xe_current_max_mana_nums_layout", "xe_mana_graph_layout", "xe_mana_pool_layout", "vampire_blood_levels" ]
"widgets": [
"xe_current_max_mana_nums_layout",
"xe_mana_graph_layout",
"xe_mana_pool_layout",
"vampire_blood_levels",
"ruach_counter_meter"
]
}
},
{
Expand All @@ -83,7 +89,13 @@
"type": "widget",
"id": "legacy_compact_sidebar",
"extend": {
"widgets": [ "xe_current_max_mana_nums_layout", "xe_mana_graph_layout", "xe_mana_pool_layout", "vampire_blood_levels" ]
"widgets": [
"xe_current_max_mana_nums_layout",
"xe_mana_graph_layout",
"xe_mana_pool_layout",
"vampire_blood_levels",
"ruach_counter_meter"
]
}
},
{
Expand All @@ -92,7 +104,13 @@
"type": "widget",
"id": "legacy_labels_narrow_sidebar",
"extend": {
"widgets": [ "xe_current_max_mana_nums_layout", "xe_mana_graph_layout", "xe_mana_pool_layout", "vampire_blood_levels" ]
"widgets": [
"xe_current_max_mana_nums_layout",
"xe_mana_graph_layout",
"xe_mana_pool_layout",
"vampire_blood_levels",
"ruach_counter_meter"
]
}
},
{
Expand All @@ -101,7 +119,13 @@
"type": "widget",
"id": "legacy_labels_sidebar",
"extend": {
"widgets": [ "xe_current_max_mana_nums_layout", "xe_mana_graph_layout", "xe_mana_pool_layout", "vampire_blood_levels" ]
"widgets": [
"xe_current_max_mana_nums_layout",
"xe_mana_graph_layout",
"xe_mana_pool_layout",
"vampire_blood_levels",
"ruach_counter_meter"
]
}
},
{
Expand All @@ -110,7 +134,13 @@
"type": "widget",
"id": "structured_sidebar",
"extend": {
"widgets": [ "xe_current_max_mana_nums_layout", "xe_mana_graph_layout", "xe_mana_pool_layout", "vampire_blood_levels" ]
"widgets": [
"xe_current_max_mana_nums_layout",
"xe_mana_graph_layout",
"xe_mana_pool_layout",
"vampire_blood_levels",
"ruach_counter_meter"
]
}
},
{
Expand Down Expand Up @@ -191,7 +221,14 @@
"copy-from": "spacebar",
"type": "widget",
"id": "spacebar",
"extend": { "widgets": [ "xe_spacebar_mana_numbers_block", "xe_spacebar_mana_bar_block", "vampire_blood_levels" ] }
"extend": {
"widgets": [
"xe_spacebar_mana_numbers_block",
"xe_spacebar_mana_bar_block",
"vampire_blood_levels",
"spacebar_ruach_counter_block"
]
}
},
{
"//": "Extend the custom sidebar with Xedra-specific sections",
Expand Down

0 comments on commit 40ca576

Please sign in to comment.