Skip to content

Commit

Permalink
underline hint statuses to indicate clickability
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilyV99 committed Sep 11, 2024
1 parent ccd5396 commit 0eb6256
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions kvui.py
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,9 @@ def refresh_hints(self, hints):
for hint in hints:
if not hint.get("status"): # Allows connecting to old servers
hint["status"] = HintStatus.HINT_FOUND if hint["found"] else HintStatus.HINT_UNSPECIFIED
hint_status_node = self.parser.handle_node({"type": "color",
"color": status_colors.get(hint["status"], "red"),
"text": status_names.get(hint["status"], "Unknown")})
data.append({
"receiving": {"text": self.parser.handle_node({"type": "player_id", "text": hint["receiving_player"]})},
"item": {"text": self.parser.handle_node({
Expand All @@ -805,8 +808,7 @@ def refresh_hints(self, hints):
"color": "blue", "text": hint["entrance"]
if hint["entrance"] else "Vanilla"})},
"status": {
"text": self.parser.handle_node({"type": "color", "color": status_colors.get(hint["status"], "red"),
"text": status_names.get(hint["status"], "Unknown")}),
"text": f"[u]{hint_status_node}[/u]",
"hint": hint,
},
})
Expand Down

0 comments on commit 0eb6256

Please sign in to comment.