mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-01-05 11:11:47 -06:00
* options_menu: implemented title animation * Adjust options title flash animation. * Replace use of std::numbers::pi with M_PI. * Implement shader modifier for options title rectangle. * Replicate the same scaling applied to the rectangle in world map. --------- Co-authored-by: Skyth <19259897+blueskythlikesclouds@users.noreply.github.com>
81 lines
1.5 KiB
C
81 lines
1.5 KiB
C
#pragma once
|
|
|
|
#define IMGUI_SHADER_MODIFIER_NONE 0
|
|
#define IMGUI_SHADER_MODIFIER_SCANLINE 1
|
|
#define IMGUI_SHADER_MODIFIER_CHECKERBOARD 2
|
|
#define IMGUI_SHADER_MODIFIER_SCANLINE_BUTTON 3
|
|
#define IMGUI_SHADER_MODIFIER_TEXT_SKEW 4
|
|
#define IMGUI_SHADER_MODIFIER_MARQUEE_FADE 5
|
|
#define IMGUI_SHADER_MODIFIER_GRAYSCALE 6
|
|
#define IMGUI_SHADER_MODIFIER_TITLE_BEVEL 7
|
|
#define IMGUI_SHADER_MODIFIER_CATEGORY_BEVEL 8
|
|
#define IMGUI_SHADER_MODIFIER_RECTANGLE_BEVEL 9
|
|
|
|
#ifdef __cplusplus
|
|
|
|
enum class ImGuiCallback : int32_t
|
|
{
|
|
SetGradient = -1,
|
|
SetShaderModifier = -2,
|
|
SetOrigin = -3,
|
|
SetScale = -4,
|
|
SetMarqueeFade = -5,
|
|
SetOutline = -6,
|
|
SetProceduralOrigin = -7,
|
|
// -8 is ImDrawCallback_ResetRenderState, don't use!
|
|
SetAdditive = -9
|
|
};
|
|
|
|
union ImGuiCallbackData
|
|
{
|
|
struct
|
|
{
|
|
float boundsMin[2];
|
|
float boundsMax[2];
|
|
uint32_t gradientTop;
|
|
uint32_t gradientBottom;
|
|
} setGradient;
|
|
|
|
struct
|
|
{
|
|
uint32_t shaderModifier;
|
|
} setShaderModifier;
|
|
|
|
struct
|
|
{
|
|
float origin[2];
|
|
} setOrigin;
|
|
|
|
struct
|
|
{
|
|
float scale[2];
|
|
} setScale;
|
|
|
|
struct
|
|
{
|
|
float boundsMin[2];
|
|
float boundsMax[2];
|
|
} setMarqueeFade;
|
|
|
|
struct
|
|
{
|
|
float outline;
|
|
} setOutline;
|
|
|
|
struct
|
|
{
|
|
float proceduralOrigin[2];
|
|
} setProceduralOrigin;
|
|
|
|
struct
|
|
{
|
|
bool enabled;
|
|
} setAdditive;
|
|
};
|
|
|
|
extern ImGuiCallbackData* AddImGuiCallback(ImGuiCallback callback);
|
|
|
|
extern void ResetImGuiCallbacks();
|
|
|
|
#endif
|