Xenon
A framework for cheat development.
 
Loading...
Searching...
No Matches
CUIService Class Reference

UI service component. More...

#include <ui_service.hpp>

Inheritance diagram for CUIService:
Collaboration diagram for CUIService:

Public Member Functions

void Init () override
 Initialize the UI service.
 
void InitExternal ()
 Initialize the present function.
 
void Destroy ()
 Destroy the UI.
 
void BeginRenderUI ()
 Begin render the UI.
 
void EndRenderUI ()
 End render the UI.
 
void CreateImGuiUI ()
 Create the ImGui UI.
 
void Update () override
 Update the UI if external.
 
- Public Member Functions inherited from CComponent
virtual void UpdateCurrentTarget (TargetProfile *target)
 If Update loop enabled, this function will be executed every frame for each target.
 
virtual ~CComponent ()=default
 

Static Public Member Functions

static void InitializeContext (HWND hwnd)
 
static void UpdateUI ()
 Update the UI.
 
static void SetMenuOpen ()
 Set the menu open.
 
static void SetMenuClose ()
 Set the menu close.
 
static void RenderCrosshair ()
 Render the crosshair.
 
static void RenderFov ()
 Render the FOV.
 
static void RenderEnabledCheats ()
 Render the enabled cheats.
 
static void Render ()
 Update the UI.
 

Public Attributes

Hotkey testhotkey
 
bool isEditing = false
 

Static Public Attributes

static bool * m_bShowMenu = nullptr
 
static std::shared_ptr< Systemm_pSystem = nullptr
 
- Static Public Attributes inherited from CComponent
static std::shared_ptr< Xenong_pXenon = nullptr
 
static std::shared_ptr< XenonVariablesg_pXenonVariables = nullptr
 
static std::shared_ptr< XenonConfigg_pXenonConfigs = nullptr
 

Detailed Description

UI service component.

This component is responsible for rendering the UI.

Member Function Documentation

◆ BeginRenderUI()

void CUIService::BeginRenderUI ( )

Begin render the UI.

◆ CreateImGuiUI()

void CUIService::CreateImGuiUI ( )

Create the ImGui UI.

◆ Destroy()

void CUIService::Destroy ( )

Destroy the UI.

◆ EndRenderUI()

void CUIService::EndRenderUI ( )

End render the UI.

◆ Init()

void CUIService::Init ( )
inlineoverridevirtual

Initialize the UI service.

Reimplemented from CComponent.

◆ InitExternal()

void CUIService::InitExternal ( )

Initialize the present function.

Parameters
pSwapChainSwap chain.
Returns
True if the present function was initialized, false otherwise.

Initialize the external function.

◆ InitializeContext()

static void CUIService::InitializeContext ( HWND  hwnd)
inlinestatic

◆ Render()

static void CUIService::Render ( )
static

Update the UI.

◆ RenderCrosshair()

static void CUIService::RenderCrosshair ( )
static

Render the crosshair.

◆ RenderEnabledCheats()

static void CUIService::RenderEnabledCheats ( )
static

Render the enabled cheats.

◆ RenderFov()

static void CUIService::RenderFov ( )
static

Render the FOV.

◆ SetMenuClose()

static void CUIService::SetMenuClose ( )
static

Set the menu close.

◆ SetMenuOpen()

static void CUIService::SetMenuOpen ( )
static

Set the menu open.

◆ Update()

void CUIService::Update ( )
overridevirtual

Update the UI if external.

Reimplemented from CComponent.

◆ UpdateUI()

static void CUIService::UpdateUI ( )
static

Update the UI.

Member Data Documentation

◆ isEditing

bool CUIService::isEditing = false

◆ m_bShowMenu

bool* CUIService::m_bShowMenu = nullptr
inlinestatic

◆ m_pSystem

std::shared_ptr<System> CUIService::m_pSystem = nullptr
inlinestatic

◆ testhotkey

Hotkey CUIService::testhotkey

The documentation for this class was generated from the following file: