diff options
author | erorcun <erorcunerorcun@hotmail.com.tr> | 2021-08-02 17:23:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-02 17:23:06 +0200 |
commit | ae1deb2209a5345d51b13c9534a2ef9877cbe09b (patch) | |
tree | 93589ebfc2b9ef71b71afe9a45369d55127807eb /src/core/Frontend.h | |
parent | Fix radio scroll when player controls disabled (diff) | |
parent | Fix R* optimization that prevents peds to spawn (diff) | |
download | re3-ae1deb2209a5345d51b13c9534a2ef9877cbe09b.tar re3-ae1deb2209a5345d51b13c9534a2ef9877cbe09b.tar.gz re3-ae1deb2209a5345d51b13c9534a2ef9877cbe09b.tar.bz2 re3-ae1deb2209a5345d51b13c9534a2ef9877cbe09b.tar.lz re3-ae1deb2209a5345d51b13c9534a2ef9877cbe09b.tar.xz re3-ae1deb2209a5345d51b13c9534a2ef9877cbe09b.tar.zst re3-ae1deb2209a5345d51b13c9534a2ef9877cbe09b.zip |
Diffstat (limited to 'src/core/Frontend.h')
-rw-r--r-- | src/core/Frontend.h | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/src/core/Frontend.h b/src/core/Frontend.h index b4e70613..cafca777 100644 --- a/src/core/Frontend.h +++ b/src/core/Frontend.h @@ -15,6 +15,9 @@ #define MENUACTION_SCALE_MULT 0.9f +#define MENUSLIDER_BARS 16 +#define MENUSLIDER_LOGICAL_BARS MENUSLIDER_BARS + #define MENULABEL_X_MARGIN 80.0f #define MENULABEL_POS_X 100.0f #define MENULABEL_POS_Y 97.0f @@ -227,6 +230,7 @@ enum eMenuScreen enum eMenuAction { #ifdef CUSTOM_FRONTEND_OPTIONS + MENUACTION_CFO_SLIDER = -3, MENUACTION_CFO_SELECT = -2, MENUACTION_CFO_DYNAMIC = -1, #endif @@ -328,6 +332,10 @@ enum eCheckHover HOVEROPTION_DECREASE_MOUSESENS, HOVEROPTION_INCREASE_MP3BOOST, HOVEROPTION_DECREASE_MP3BOOST, +#ifdef CUSTOM_FRONTEND_OPTIONS + HOVEROPTION_INCREASE_CFO_SLIDER, + HOVEROPTION_DECREASE_CFO_SLIDER, +#endif HOVEROPTION_NOT_HOVERING, }; @@ -400,7 +408,7 @@ struct CCustomScreenLayout { struct CCFO { - int8 *value; + void *value; const char *saveCat; const char *save; }; @@ -431,6 +439,24 @@ struct CCFOSelect : CCFO } }; +// Value is float in here +struct CCFOSlider : CCFO +{ + ChangeFuncFloat changeFunc; + float min; + float max; + + CCFOSlider() {}; + CCFOSlider(float* value, const char* saveCat, const char* save, float min, float max, ChangeFuncFloat changeFunc = nil){ + this->value = value; + this->saveCat = saveCat; + this->save = save; + this->changeFunc = changeFunc; + this->min = min; + this->max = max; + } +}; + struct CCFODynamic : CCFO { DrawFunc drawFunc; @@ -462,6 +488,7 @@ struct CMenuScreenCustom CCFO *m_CFO; // for initializing CCFOSelect *m_CFOSelect; CCFODynamic *m_CFODynamic; + CCFOSlider *m_CFOSlider; }; int32 m_SaveSlot; // eSaveSlot int32 m_TargetMenu; // eMenuScreen |