Move default settings to relevant hook files.
Signed-off-by: aixxe <me@aixxe.net>
This commit is contained in:
parent
afc72efcd8
commit
468fbe5d07
|
@ -2,14 +2,6 @@
|
|||
|
||||
bool GUI::IsVisible = false;
|
||||
|
||||
bool GUI::BunnyHop::Enabled = true;
|
||||
|
||||
bool GUI::NoSky::Enabled = true;
|
||||
float GUI::NoSky::Color[3] = {0, 0, 0.275};
|
||||
|
||||
bool GUI::ASUS::Enabled = true;
|
||||
float GUI::ASUS::Color[4] = {1, 1, 1, 0.75};
|
||||
|
||||
void GUI::Render() {
|
||||
// Draw various global components.
|
||||
GUI::DrawFramerateCounter();
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
typedef void (*CreateMove_t) (IBaseClientDLL*, int, float, bool);
|
||||
|
||||
bool GUI::BunnyHop::Enabled = true;
|
||||
|
||||
void Hooks::CreateMove(IBaseClientDLL* thisptr, int sequence, float frametime, bool active) {
|
||||
// Get the original function and store it statically.
|
||||
static CreateMove_t oCreateMove = clientdll_hook->GetOriginalFunction<CreateMove_t>(21);
|
||||
|
|
|
@ -2,6 +2,12 @@
|
|||
|
||||
typedef void (*FrameStageNotify_t) (IBaseClientDLL*, ClientFrameStage_t);
|
||||
|
||||
bool GUI::NoSky::Enabled = true;
|
||||
float GUI::NoSky::Color[3] = {0, 0, 0.275};
|
||||
|
||||
bool GUI::ASUS::Enabled = true;
|
||||
float GUI::ASUS::Color[4] = {1, 1, 1, 0.75};
|
||||
|
||||
void Hooks::FrameStageNotify(IBaseClientDLL* thisptr, ClientFrameStage_t stage) {
|
||||
// Get the original function and store it statically.
|
||||
static FrameStageNotify_t oFrameStageNotify = clientdll_hook->GetOriginalFunction<FrameStageNotify_t>(35);
|
||||
|
|
Loading…
Reference in New Issue