Item Tracker: don't disable Personal Notes (#6376)

Personal Notes is awkward with Combo Button Hold, but should be allowed

This avoids disabling drop down when it could otherwise be changed to Main Window

Besides, some people might be able to type while holding button combos, long live artsey.io
This commit is contained in:
Philip Dubé
2026-03-19 18:24:25 +00:00
committed by GitHub
parent 04ed1825f0
commit 8f51dfbaf4

View File

@@ -25,9 +25,6 @@ extern "C" {
#include "functions.h"
#include "macros.h"
extern PlayState* gPlayState;
#include "textures/icon_item_static/icon_item_static.h"
#include "textures/icon_item_24_static/icon_item_24_static.h"
}
void DrawEquip(ItemTrackerItem item);
@@ -2380,14 +2377,6 @@ void RegisterItemTrackerWidgets() {
.LabelPosition(LabelPositions::Far)
.Color(THEME_COLOR)
.ComboMap(displayTypes))
.PreFunc([&](WidgetInfo& info) {
if (CVarGetInteger(CVAR_TRACKER_ITEM("WindowType"), TRACKER_WINDOW_FLOATING) == TRACKER_WINDOW_FLOATING &&
CVarGetInteger(CVAR_TRACKER_ITEM("DisplayType.Main"), TRACKER_DISPLAY_ALWAYS) ==
TRACKER_DISPLAY_COMBO_BUTTON) {
info.options.get()->disabled = true;
info.options.get()->disabledTooltip = notesDisabledTooltip;
}
})
.Callback([](WidgetInfo& info) { shouldUpdateVectors = true; });
;
SohGui::mSohMenu->AddSearchWidget({ personalNotesWiget, "Randomizer", "Item Tracker", "General Settings" });