-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathStateTutorialSlideshow.h
More file actions
129 lines (126 loc) · 6.22 KB
/
StateTutorialSlideshow.h
File metadata and controls
129 lines (126 loc) · 6.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
#pragma once
#include "4dm.h"
namespace fdm
{
class StateTutorialSlideshow : public State
{
public:
inline static StateTutorialSlideshow& instanceObj = *reinterpret_cast<StateTutorialSlideshow*>(getDataAddr((int)Data::StateTutorialSlideshow::instanceObj));
inline static constexpr const int slide_box_count = 4;
bool updateViewFlag; // 0x8
PAD(0x7);
FontRenderer font; // 0x10
QuadRenderer qr; // 0xB0
const Shader* qs; // 0xD8
gui::Interface ui; // 0xE0
gui::Button continueButton; // 0x148
gui::Button backButton; // 0x1A0
gui::Button exitButton; // 0x1F8
gui::ContentBox slides[slide_box_count]; // 0x250
int currentSlide; // 0x450
PAD(0x4);
gui::Text slide0_text1; // 0x458
gui::Text slide0_text2; // 0x4B0
gui::Image comparisonImage; // 0x508
TexRenderer comparisonImageRenderer; // 0x530
gui::Text slide1_text1; // 0x558
gui::Text slide1_text2; // 0x5B0
gui::Text slide1_text3; // 0x608
gui::Image forgImage; // 0x660
float forgAnimStart; // 0x688
TexRenderer forgImageTexRenderer; // 0x690
gui::Image crossSectionImage; // 0x6B8
TexRenderer crossSectionImageRenderer; // 0x6E0
gui::Text slide2_text1; // 0x708
gui::Text slide2_text2; // 0x760
gui::Image crossSectionImage1; // 0x7B8
gui::Image crossSectionImage2; // 0x7E0
TexRenderer crossSectionImage2Renderer; // 0x808
gui::Text slide3_text1; // 0x830
gui::Text slide3_text2; // 0x888
gui::Text slide3_text3; // 0x8E0
gui::Text slide3_text4; // 0x938
gui::Image rotation4D; // 0x990
TexRenderer rotation4DRenderer; // 0x9B8
~StateTutorialSlideshow()
{
reinterpret_cast<void(__thiscall*)(StateTutorialSlideshow* self)>(getFuncAddr((int)Func::StateTutorialSlideshow::destr_StateTutorialSlideshow))(this);
}
StateTutorialSlideshow()
{
reinterpret_cast<void(__thiscall*)(StateTutorialSlideshow* self)>(getFuncAddr((int)Func::StateTutorialSlideshow::StateTutorialSlideshow))(this);
}
void updateProjection(const glm::ivec2& size, const glm::ivec2& translate2D)
{
return reinterpret_cast<void (__thiscall*)(StateTutorialSlideshow* self, const glm::ivec2& size, const glm::ivec2& translate2D)>(getFuncAddr((int)Func::StateTutorialSlideshow::updateProjection))(this, size, translate2D);
}
void updateSlideSize(int width, int height)
{
return reinterpret_cast<void (__thiscall*)(StateTutorialSlideshow* self, int width, int height)>(getFuncAddr((int)Func::StateTutorialSlideshow::updateSlideSize))(this, width, height);
}
inline static void viewportCallback(void* user, const glm::ivec4& pos, const glm::ivec2& scroll)
{
return reinterpret_cast<void (__fastcall*)(void* user, const glm::ivec4& pos, const glm::ivec2& scroll)>(getFuncAddr((int)Func::StateTutorialSlideshow::viewportCallback))(user, pos, scroll);
}
void init(StateManager& s) override
{
return reinterpret_cast<void (__thiscall*)(StateTutorialSlideshow* self, StateManager& s)>(getFuncAddr((int)Func::StateTutorialSlideshow::init))(this, s);
}
void update(StateManager& s, double dt) override
{
return reinterpret_cast<void (__thiscall*)(StateTutorialSlideshow* self, StateManager& s, double dt)>(getFuncAddr((int)Func::StateTutorialSlideshow::update))(this, s, dt);
}
void render(StateManager& s) override
{
return reinterpret_cast<void (__thiscall*)(StateTutorialSlideshow* self, StateManager& s)>(getFuncAddr((int)Func::StateTutorialSlideshow::render))(this, s);
}
void resume(StateManager& s) override
{
return reinterpret_cast<void (__thiscall*)(StateTutorialSlideshow* self, StateManager& s)>(getFuncAddr((int)Func::StateTutorialSlideshow::resume))(this, s);
}
void windowResize(StateManager& s, int width, int height) override
{
return reinterpret_cast<void (__thiscall*)(StateTutorialSlideshow* self, StateManager& s, int width, int height)>(getFuncAddr((int)Func::StateTutorialSlideshow::windowResize))(this, s, width, height);
}
inline static void continueButtonCallback(void* user)
{
return reinterpret_cast<void (__fastcall*)(void* user)>(getFuncAddr((int)Func::StateTutorialSlideshow::continueButtonCallback))(user);
}
inline static void backButtonCallback(void* user)
{
return reinterpret_cast<void (__fastcall*)(void* user)>(getFuncAddr((int)Func::StateTutorialSlideshow::backButtonCallback))(user);
}
void setSlide(StateManager& s, int index)
{
return reinterpret_cast<void (__thiscall*)(StateTutorialSlideshow* self, StateManager& s, int index)>(getFuncAddr((int)Func::StateTutorialSlideshow::setSlide))(this, s, index);
}
void charInput(StateManager& s, uint32_t codepoint) override
{
return reinterpret_cast<void(__thiscall*)(StateTutorialSlideshow * self, StateManager&, uint32_t)>(getFuncAddr((int)Func::StateTutorialSlideshow::charInput))(this, s, codepoint);
}
void close(StateManager& s) override
{
return reinterpret_cast<void(__thiscall*)(StateTutorialSlideshow * self, StateManager&)>(getFuncAddr((int)Func::StateTutorialSlideshow::close))(this, s);
}
void keyInput(StateManager& s, int key, int scancode, int action, int mods) override
{
return reinterpret_cast<void(__thiscall*)(StateTutorialSlideshow * self, StateManager&, int, int, int, int)>(getFuncAddr((int)Func::StateTutorialSlideshow::keyInput))(this, s, key, scancode, action, mods);
}
void mouseButtonInput(StateManager& s, int button, int action, int mods) override
{
return reinterpret_cast<void(__thiscall*)(StateTutorialSlideshow * self, StateManager&, int, int, int)>(getFuncAddr((int)Func::StateTutorialSlideshow::mouseButtonInput))(this, s, button, action, mods);
}
void mouseInput(StateManager& s, double xpos, double ypos) override
{
return reinterpret_cast<void(__thiscall*)(StateTutorialSlideshow * self, StateManager&, double, double)>(getFuncAddr((int)Func::StateTutorialSlideshow::mouseInput))(this, s, xpos, ypos);
}
void scrollInput(StateManager& s, double xoffset, double yoffset) override
{
return reinterpret_cast<void(__thiscall*)(StateTutorialSlideshow * self, StateManager&, double, double)>(getFuncAddr((int)Func::StateTutorialSlideshow::scrollInput))(this, s, xoffset, yoffset);
}
inline static void exitButtonCallback(void* user)
{
return reinterpret_cast<void(__fastcall*)(void*)>(getFuncAddr((int)Func::StateTutorialSlideshow::exitButtonCallback))(user);
}
};
}