-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src,data,tests: Add bodypart status widget
Indicates bitten, bleeding, and/or infected status by comma-separated list of words, with colorization by limb_color. - New display::bodypart_status - bitten, bleeding, and/or infected - New display::bodypart_status_text_color - colorized status for part - New bp_status_text widget_var - showing bodypart_status_text_color - New widget declarations in sidebar.json - Test cases TODO: - Fold limb_color refactor into this - Remove "top" and "bottom" layouts, replace with more useful layout
- Loading branch information
Showing
7 changed files
with
241 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
[ | ||
{ | ||
"id": "bodypart_status_text", | ||
"//": "Base widget for showing body part status; needs bodypart field defined in derived widget.", | ||
"type": "widget", | ||
"style": "text", | ||
"var": "bp_status_text" | ||
}, | ||
{ | ||
"id": "bp_status_head_text", | ||
"type": "widget", | ||
"label": "HEAD", | ||
"bodypart": "head", | ||
"copy-from": "bodypart_status_text" | ||
}, | ||
{ | ||
"id": "bp_status_torso_text", | ||
"type": "widget", | ||
"label": "TORSO", | ||
"bodypart": "torso", | ||
"copy-from": "bodypart_status_text" | ||
}, | ||
{ | ||
"id": "bp_status_left_arm_text", | ||
"type": "widget", | ||
"label": "L ARM", | ||
"bodypart": "arm_l", | ||
"copy-from": "bodypart_status_text" | ||
}, | ||
{ | ||
"id": "bp_status_right_arm_text", | ||
"type": "widget", | ||
"label": "R ARM", | ||
"bodypart": "arm_r", | ||
"copy-from": "bodypart_status_text" | ||
}, | ||
{ | ||
"id": "bp_status_left_leg_text", | ||
"type": "widget", | ||
"label": "L LEG", | ||
"bodypart": "leg_l", | ||
"copy-from": "bodypart_status_text" | ||
}, | ||
{ | ||
"id": "bp_status_right_leg_text", | ||
"type": "widget", | ||
"label": "R LEG", | ||
"bodypart": "leg_r", | ||
"copy-from": "bodypart_status_text" | ||
}, | ||
{ | ||
"id": "bodypart_status_top_layout", | ||
"type": "widget", | ||
"style": "layout", | ||
"arrange": "columns", | ||
"widgets": [ "bp_status_left_arm_text", "bp_status_head_text", "bp_status_right_arm_text" ] | ||
}, | ||
{ | ||
"id": "bodypart_status_bottom_layout", | ||
"type": "widget", | ||
"style": "layout", | ||
"arrange": "columns", | ||
"widgets": [ "bp_status_left_leg_text", "bp_status_torso_text", "bp_status_right_leg_text" ] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters