Files
EGameTools/EGameTools/source/ImGui/imguiex.h
EricPlayZ da99802546 - Added "Lens Distortion" slider (Camera)
- Fixed options that make use of player variables not returning back to their original value after disabling them
- Added tooltips to sliders as well
2024-05-09 18:42:06 +03:00

20 lines
1.4 KiB
C++

#pragma once
#include "..\core.h"
namespace ImGui {
extern void StyleScaleAllSizes(ImGuiStyle* style, const float scale_factor, ImGuiStyle* defStyle = nullptr);
extern void SpanNextTabAcrossWidth(const float width, const size_t tabs = 1);
extern void EndTabBarEx();
extern bool Button(const char* label, const char* tooltip, const ImVec2& size_arg = ImVec2(0, 0));
extern bool Checkbox(const char* label, bool* v, const char* tooltip);
extern bool Checkbox(const char* label, Option* v);
extern bool Checkbox(const char* label, Option* v, const char* tooltip);
extern bool CheckboxHotkey(const char* label, KeyBindOption* v, const char* tooltip = nullptr);
extern bool SliderInt(const char* label, const char* tooltip, int* v, int v_min, int v_max, const char* format = "%d", ImGuiSliderFlags flags = 0);
extern bool SliderFloat(const char* label, const char* tooltip, float* v, float v_min, float v_max, const char* format = "%.3f", ImGuiSliderFlags flags = 0);
extern void TextCentered(const char* text, const bool calculateWithScrollbar = true);
extern void TextCenteredColored(const char* text, const ImU32 col, const bool calculateWithScrollbar = true);
extern bool ButtonCentered(const char* label, const ImVec2 size = ImVec2(0.0f, 0.0f));
extern void SeparatorTextColored(const char* text, const ImU32 col);
extern void Spacing(const ImVec2 size, const bool customPosOffset = false);
}