Skip to content

Commit

Permalink
Adds option to lock a cosmetic from being randomized (HarbourMasters#…
Browse files Browse the repository at this point in the history
  • Loading branch information
lilacLunatic authored and th-2021 committed Nov 28, 2022
1 parent 7e8fc12 commit 278c23d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions soh/soh/UIWidgets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,15 @@ namespace UIWidgets {
return changed;
}

void DrawLockColorCheckbox(const char* cvarName) {
std::string Cvar_Lock = cvarName;
Cvar_Lock += "Lock";
s32 lock = CVar_GetS32(Cvar_Lock.c_str(), 0);
std::string FullName = "Lock##" + Cvar_Lock;
EnhancementCheckbox(FullName.c_str(), Cvar_Lock.c_str());
Tooltip("Prevents this color from being changed upon selecting \"Randomize all\"");
}

void RainbowColor(const char* cvarName, ImVec4* colors) {
std::string Cvar_RBM = cvarName;
Cvar_RBM += "RBM";
Expand Down

0 comments on commit 278c23d

Please sign in to comment.