#include "../Header Files/menu.hh" using namespace ImGui; #include "../Header…
- User
#include "../Header Files/menu.hh" using namespace ImGui; #include "../Header Files/globals.hh" #include "../imgui/imgui_internal.h" #include "../imgui/imgui.h" #include "../font/icons.h"
static void HelpMarker(const char* desc); void CenterText(const char* text);
void ui::renderMenu() { if (!globals.active) return;
codeImGui::SetNextWindowPos(ImVec2(window_pos.x, window_pos.y), ImGuiCond_Once); ImGui::SetNextWindowSize(ImVec2(window_size.x, window_size.y)); ImGui::SetNextWindowBgAlpha(1.0f); ImGui::Begin(window_title, &globals.active, window_flags); { BeginChild("##buttons" , ImVec2(100,265)); { SetCursorPosX(20); SetCursorPosY(35); if (Button(" \n\n " ICON_FA_LIST " \n ##1", ImVec2(60, 60))) globals.page = 0; SetCursorPosX(20); if (Button(" \n\n " ICON_FA_ADDRESS_CARD " \n ##2", ImVec2(60, 60))) globals.page = 1; SetCursorPosX(20); if (Button((" \n\n " ICON_FA_COGS" \n ##3"), ImVec2(60, 60))) { globals.page = 2; globals.subPage = 0; } } EndChild(); SameLine(); SetCursorPosX(110); BeginChild("##pages", ImVec2(380, 265)); { if (globals.page == 0) { } if (globals.page == 1) { } if (globals.page == 2) { // Settings SetCursorPosX(5); SetCursorPosY(5); if (Button("Colors##subpage"))globals.subPage = 0; Separator(); if (globals.subPage == 0) {// Colors SetCursorPosX(60); if (ColorPicker4("##Colors", (float*)&color.all, ImGuiColorEditFlags_PickerHueWheel | ImGuiColorEditFlags_NoInputs | ImGuiColorEditFlags_NoSidePreview)) ui::RunStyle(); } } } EndChild(); } ImGui::End(); - Assistant
- User
'ImGui::SliderFloat': no overloaded function could convert all the argument types 'ApplyMicGain': identifier not found 'CenterText': local function definitions are illegal 'HelpMarker': local function definitions are illegal 'HelpMarker': static functions with block scope are illegal 'micGain': is not a member of 'c_globals' 'micGain': is not a member of 'c_globals' 'ui::init': local function definitions are illegal 'ui::RunStyle': local function definitions are illegal '{': no matching token found class "c_globals" has no member "micGain" class "c_globals" has no member "micGain" identifier "SetMicrophoneGain" is undefined
- Assistant