diff --git a/data/mods/Xedra_Evolved/ui/ruach_counter.json b/data/mods/Xedra_Evolved/ui/ruach_counter.json new file mode 100644 index 0000000000000..4044ff6ea9a73 --- /dev/null +++ b/data/mods/Xedra_Evolved/ui/ruach_counter.json @@ -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": "Almost Spent", + "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": "Drained", + "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": "Refreshed", + "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": "Satiated", + "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": "Suffused", + "condition": { + "and": [ + { "u_has_trait": "LILIN_TRAITS" }, + { "u_has_trait": "LILIN_HOLD_MORE_RUACH" }, + { "math": [ "u_vitamin('lilin_ruach_vitamin')", ">=", "2400" ] } + ] + } + } + ], + "padding": 0 + } +] diff --git a/data/mods/Xedra_Evolved/ui/sidebar.json b/data/mods/Xedra_Evolved/ui/sidebar.json index 86d6daddba560..dee5365aa0167 100644 --- a/data/mods/Xedra_Evolved/ui/sidebar.json +++ b/data/mods/Xedra_Evolved/ui/sidebar.json @@ -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" + ] } }, { @@ -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" + ] } }, { @@ -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" + ] } }, { @@ -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" + ] } }, { @@ -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" + ] } }, { @@ -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",