From c3565944e59081b1b5cf9084f5a8503372019cda Mon Sep 17 00:00:00 2001 From: y3nly Date: Tue, 9 Dec 2025 12:04:53 -0800 Subject: [PATCH 1/3] highlight conditions if it exists in chara info --- umalauncher/carrotjuicer.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/umalauncher/carrotjuicer.py b/umalauncher/carrotjuicer.py index 89a4f59..188fc40 100644 --- a/umalauncher/carrotjuicer.py +++ b/umalauncher/carrotjuicer.py @@ -71,6 +71,7 @@ def __init__(self, threader): self.start_time = 0 self.skill_id_dict = mdb.get_skill_id_dict() + self.status_name_dict = mdb.get_status_name_dict() self.screen_state_handler = threader.screenstate self.restart_time() @@ -497,6 +498,19 @@ def handle_response(self, message, is_json=False): event_element ) + # Check to see if you already have the status. + status_ids = data['chara_info']['chara_effect_id_array'] + print(status_ids) + if status_ids: + print([self.status_name_dict[i] for i in status_ids if i in self.status_name_dict]) + self.browser.execute_script(""" + arguments[0].parentElement.querySelectorAll('div[data-tippy-root] span[class^="utils_linkcolor"]') + .forEach(el => { + if (arguments[1].includes(el.textContent.trim())) { + el.style.color = 'red'; + } + }); + """, event_element, [self.status_name_dict[i] for i in status_ids if i in self.status_name_dict]) if 'reserved_race_array' in data and 'chara_info' not in data and self.last_helper_data: # User changed reserved races @@ -997,7 +1011,6 @@ def setup_helper_page(browser: horsium.BrowserWindow): window.UL_DATA.expanded = true; var height = window.UL_OVERLAY.offsetHeight; - console.log(height) window.OVERLAY_HEIGHT = height + "px"; document.getElementById("ul-dropdown").textContent = "⯅"; From c4d85e8fba1d6d320db7d21d0bfe1e5834c3e4c0 Mon Sep 17 00:00:00 2001 From: y3nly Date: Tue, 9 Dec 2025 16:45:59 -0800 Subject: [PATCH 2/3] change color to gray --- umalauncher/carrotjuicer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umalauncher/carrotjuicer.py b/umalauncher/carrotjuicer.py index 188fc40..6bbde7b 100644 --- a/umalauncher/carrotjuicer.py +++ b/umalauncher/carrotjuicer.py @@ -507,7 +507,7 @@ def handle_response(self, message, is_json=False): arguments[0].parentElement.querySelectorAll('div[data-tippy-root] span[class^="utils_linkcolor"]') .forEach(el => { if (arguments[1].includes(el.textContent.trim())) { - el.style.color = 'red'; + el.style.color = 'gray'; } }); """, event_element, [self.status_name_dict[i] for i in status_ids if i in self.status_name_dict]) From 988e4720894e20076b0fc84a612757a135ef18e7 Mon Sep 17 00:00:00 2001 From: y3nly Date: Thu, 11 Dec 2025 10:02:11 -0800 Subject: [PATCH 3/3] remove debug prints --- umalauncher/carrotjuicer.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/umalauncher/carrotjuicer.py b/umalauncher/carrotjuicer.py index 6bbde7b..1c83052 100644 --- a/umalauncher/carrotjuicer.py +++ b/umalauncher/carrotjuicer.py @@ -500,9 +500,7 @@ def handle_response(self, message, is_json=False): # Check to see if you already have the status. status_ids = data['chara_info']['chara_effect_id_array'] - print(status_ids) if status_ids: - print([self.status_name_dict[i] for i in status_ids if i in self.status_name_dict]) self.browser.execute_script(""" arguments[0].parentElement.querySelectorAll('div[data-tippy-root] span[class^="utils_linkcolor"]') .forEach(el => {