CheatMenuSA/src/cheatmenu.h

36 lines
781 B
C
Raw Normal View History

2020-12-02 16:19:16 -05:00
#pragma once
#include "pch.h"
#include "interface/ifeature.hpp"
2021-08-01 21:41:48 -04:00
2022-06-12 14:01:43 -04:00
/*
* Main CheatMenu Class
2022-08-17 21:12:21 -04:00
* Handles rendering, resizing, page drawing etc.
2022-06-12 14:01:43 -04:00
*/
class CheatMenuMgr : public IFeature<CheatMenuMgr>
2020-12-02 16:19:16 -05:00
{
private:
ImVec2 m_fSize;
bool m_bVisible; // should the menu be drawn
bool m_bSizeUpdated; // Was menu size change requested
bool m_bIsOnline; // SAMP & VCMP flag
friend class IFeature;
CheatMenuMgr();
CheatMenuMgr(const CheatMenuMgr&);
2021-10-21 18:23:02 -04:00
2022-06-12 14:01:43 -04:00
// Applies imgui theme to the menu
void ApplyStyle();
2022-06-12 14:01:43 -04:00
// Draws the window ui each frame
void Draw();
2022-06-12 14:01:43 -04:00
2020-12-02 16:19:16 -05:00
public:
// Returns true if the menu is being shown
bool IsVisible();
// Resets the menu height & width to default
void ResetSize();
2020-12-02 16:19:16 -05:00
};
extern CheatMenuMgr& CheatMenu;