mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-01-07 11:58:13 -05:00
Check Tracker - Works around issue where single characters don't show in EnhancementCombobox, and fixes a label for combo buttons held option
This commit is contained in:
parent
82c5caa460
commit
f8984d6b5c
@ -688,8 +688,8 @@ void ImGuiDrawTwoColorPickerSection(const char* text, const char* cvarMainName,
|
||||
|
||||
const char* windowType[] = { "Floating", "Window" };
|
||||
const char* displayType[] = { "Always", "Combo Button Hold" };
|
||||
const char* buttonStrings[] = { "A", "B", "C-Up", "C-Down", "C-Left", "C-Right", "L",
|
||||
"Z", "R", "Start", "D-Up", "D-Down", "D-Left", "D-Right" };
|
||||
const char* buttonStrings[] = { "A Button", "B Button", "C-Up", "C-Down", "C-Left", "C-Right", "L Button",
|
||||
"Z Button", "R Button", "Start", "D-Up", "D-Down", "D-Left", "D-Right" };
|
||||
void DrawCheckTrackerOptions(bool& open) {
|
||||
if (!open) {
|
||||
CVar_SetS32("gCheckTrackerSettingsEnabled", 0);
|
||||
@ -733,10 +733,10 @@ void DrawCheckTrackerOptions(bool& open) {
|
||||
ImGui::SameLine();
|
||||
UIWidgets::EnhancementCombobox("gCheckTrackerDisplayType", displayType, 2, 0);
|
||||
if (CVar_GetS32("gCheckTrackerDisplayType", 0) > 0) {
|
||||
ImGui::Text("Combo Button 2");
|
||||
ImGui::Text("Combo Button 1");
|
||||
ImGui::SameLine();
|
||||
UIWidgets::EnhancementCombobox("gCheckTrackerComboButton1", buttonStrings, 14, 6);
|
||||
ImGui::Text("Combo Button 1");
|
||||
ImGui::Text("Combo Button 2");
|
||||
ImGui::SameLine();
|
||||
UIWidgets::EnhancementCombobox("gCheckTrackerComboButton2", buttonStrings, 14, 8);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user