Skip to content

Commit

Permalink
ZenFS' thick sidebar added (#71109)
Browse files Browse the repository at this point in the history
* Add files via upload

* Add files via upload

* Update limbs_color.json

Fixed a typo

* Apply suggestions from code review

Tabs replaced with spaces

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update data/json/ui/zenfs/enviroment.json

Replace tabs with spaces

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Revision to eliminate use of "compare_num"

* Apply suggestions from code review

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Delete data/json/ui/zenfs/enviroment.json

* Delete data/json/ui/zenfs/weight.json

* v1.3.3

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
Zenefess and github-actions[bot] authored Jan 24, 2024
1 parent ac10810 commit e918859
Show file tree
Hide file tree
Showing 21 changed files with 2,658 additions and 0 deletions.
47 changes: 47 additions & 0 deletions data/json/ui/zenfs/activity.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
[
{
"id": "zenfs_activity_desc",
"type": "widget",
"label": "Activity",
"style": "text",
"width": 10,
"clauses": [
{
"id": "none",
"text": { "str": "Negligible", "ctxt": "Negligible activity level" },
"color": "dark_gray",
"condition": { "math": [ "u_val('activity_level')", "==", "0" ] }
},
{
"id": "light",
"text": { "str": "Light ", "ctxt": "Light activity level" },
"color": "green",
"condition": { "math": [ "u_val('activity_level')", "==", "1" ] }
},
{
"id": "moderate",
"text": { "str": "Moderate ", "ctxt": "Moderate activity level" },
"color": "light_green",
"condition": { "math": [ "u_val('activity_level')", "==", "2" ] }
},
{
"id": "brisk",
"text": { "str": "Brisk ", "ctxt": "Brisk activity level" },
"color": "yellow",
"condition": { "math": [ "u_val('activity_level')", "==", "3" ] }
},
{
"id": "active",
"text": { "str": "Intense ", "ctxt": "Intense activity level" },
"color": "light_red",
"condition": { "math": [ "u_val('activity_level')", "==", "4" ] }
},
{
"id": "extreme",
"text": { "str": "Extreme ", "ctxt": "Extreme activity level" },
"color": "red",
"condition": { "math": [ "u_val('activity_level')", "==", "5" ] }
}
]
}
]
32 changes: 32 additions & 0 deletions data/json/ui/zenfs/blank_lines.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[
{
"id": "zenfs_spacer",
"type": "widget",
"style": "layout",
"label": "(Spacer)",
"description": "One line of empty vertical space.",
"arrange": "rows",
"width": 1,
"widgets": [ ]
},
{
"id": "zenfs_spacer_disabled",
"type": "widget",
"copy-from": "zenfs_spacer",
"flags": [ "W_DISABLED_BY_DEFAULT" ]
},
{
"id": "zenfs_blank_line",
"type": "widget",
"style": "text",
"string": "",
"flags": [ "W_LABEL_NONE" ]
},
{
"id": "zenfs_blank_line_34",
"type": "widget",
"style": "text",
"string": " ",
"flags": [ "W_LABEL_NONE", "W_NO_PADDING" ]
}
]
43 changes: 43 additions & 0 deletions data/json/ui/zenfs/body.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
[
{
"id": "zenfs_titled_body_graph",
"type": "widget",
"style": "layout",
"width": 13,
"arrange": "rows",
"widgets": [ "zenfs_body_graph_title", "zenfs_blank_line", "zenfs_body_graph" ]
},
{
"id": "zenfs_body_graph_title",
"type": "widget",
"style": "text",
"string": " <color_white>Status</color>",
"flags": [ "W_LABEL_NONE" ]
},
{
"id": "zenfs_body_graph",
"type": "widget",
"label": "Body Graph (status)",
"var": "body_graph_status",
"style": "text",
"width": 13,
"height": 13,
"flags": [ "W_LABEL_NONE", "W_DISABLED_BY_DEFAULT" ]
},
{
"id": "zenfs_body_graphs_narrow",
"type": "widget",
"style": "layout",
"width": 29,
"arrange": "columns",
"widgets": [ "zenfs_body_graph_wetness", "zenfs_body_graph_temp", "zenfs_body_graph_encumb" ]
},
{
"id": "zenfs_body_graph_layout",
"type": "widget",
"style": "layout",
"width": 8,
"arrange": "columns",
"widgets": [ "compact_body_graph" ]
}
]
25 changes: 25 additions & 0 deletions data/json/ui/zenfs/carry_weight.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[
{
"//": "Relative weight carried. Graph goes up to 120%, so the last bar is overburdened.",
"id": "zenfs_carry_weight_bar",
"type": "widget",
"var": "carry_weight",
"style": "graph",
"label": "<color_dark_gray>CarryWt</color>",
"symbols": " −=≡≣",
"colors": [ "c_brown", "c_red", "c_light_red", "c_white_red" ],
"breaks": [ 75, 100, 110 ]
},
{
"id": "zenfs_carry_weight_bar_12",
"type": "widget",
"copy-from": "zenfs_carry_weight_bar",
"width": 12
},
{
"id": "zenfs_carry_weight_bar_14",
"type": "widget",
"copy-from": "zenfs_carry_weight_bar",
"width": 14
}
]
130 changes: 130 additions & 0 deletions data/json/ui/zenfs/combat.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
[
{
"id": "wield_label",
"type": "widget",
"style": "text",
"width": 11,
"arrange": "columns",
"string": "<color_white>Wielding</color>"
},
{
"id": "zenfs_wield_white_label",
"type": "widget",
"style": "layout",
"arrange": "minimum_columns",
"widgets": [ "wield_label", "wielding_desc_no_label" ]
},
{
"id": "ma_label",
"type": "widget",
"style": "text",
"width": 11,
"arrange": "columns",
"string": "<color_white>Martial art</color>"
},
{
"id": "zenfs_ma_white_label",
"type": "widget",
"style": "layout",
"arrange": "minimum_columns",
"widgets": [ "ma_label", "style_desc_no_label" ]
},
{
"id": "ma_buff_entries",
"type": "widget",
"style": "layout",
"arrange": "minimum_columns",
"widgets": [ "zenfs_ma_buff_legend" ]
},
{
"id": "zenfs_ma_buff_legend",
"type": "widget",
"style": "legend",
"copy-from": "ma_buff_indicator_template",
"width": 0,
"height": 4,
"text_align": "left",
"separator": "<color_dark_gray>|/color> ",
"flags": [ "W_LABEL_NONE", "W_DYNAMIC_HEIGHT" ]
},
{
"id": "zenfs_bp_top_armor",
"type": "widget",
"style": "layout",
"label": "Armor; top layer",
"description": "Shows top-most layer of currently worn <color_yellow>armor</color>.",
"arrange": "minimum_columns",
"padding": 2,
"widgets": [ "zenfs_bp_top_armor_left", "zenfs_bp_top_armor_right" ]
},
{
"id": "zenfs_bp_top_armor_left",
"type": "widget",
"style": "layout",
"arrange": "rows",
"widgets": [ "zenfs_bp_top_armor_head", "zenfs_bp_top_armor_arms", "zenfs_bp_top_armor_hands" ]
},
{
"id": "zenfs_bp_top_armor_right",
"type": "widget",
"style": "layout",
"arrange": "rows",
"widgets": [ "zenfs_bp_top_armor_torso", "zenfs_bp_top_armor_legs", "zenfs_bp_top_armor_feet" ]
},
{
"id": "zenfs_bp_armor_template",
"type": "widget",
"style": "text",
"text_align": "left",
"width": 0,
"var": "bp_armor_outer_text"
},
{
"id": "zenfs_bp_top_armor_head",
"type": "widget",
"label": "<color_white>Head </color>",
"bodypart": "head",
"copy-from": "zenfs_bp_armor_template",
"flags": [ "W_LABEL_NONE" ]
},
{
"id": "zenfs_bp_top_armor_arms",
"type": "widget",
"label": "<color_white>Arms </color>",
"bodypart": "arm_r",
"copy-from": "zenfs_bp_armor_template",
"flags": [ "W_LABEL_NONE" ]
},
{
"id": "zenfs_bp_top_armor_hands",
"type": "widget",
"label": "<color_white>Hands </color>",
"bodypart": "hand_r",
"copy-from": "zenfs_bp_armor_template",
"flags": [ "W_LABEL_NONE" ]
},
{
"id": "zenfs_bp_top_armor_torso",
"type": "widget",
"label": "<color_white>Torso </color>",
"bodypart": "torso",
"copy-from": "zenfs_bp_armor_template",
"flags": [ "W_LABEL_NONE" ]
},
{
"id": "zenfs_bp_top_armor_legs",
"type": "widget",
"label": "<color_white>Legs </color>",
"bodypart": "leg_r",
"copy-from": "zenfs_bp_armor_template",
"flags": [ "W_LABEL_NONE" ]
},
{
"id": "zenfs_bp_top_armor_feet",
"type": "widget",
"label": "<color_white>Feet </color>",
"bodypart": "foot_r",
"copy-from": "zenfs_bp_armor_template",
"flags": [ "W_LABEL_NONE" ]
}
]
Loading

0 comments on commit e918859

Please sign in to comment.