FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
KReClassEx/KReClassEx/NodeQuat.cpp at master · BeneficialCode/KReClassEx · GitHub
BeneficialCode
/
KReClassEx
Public
Notifications
You must be signed in to change notification settings
Fork
5
Star
67
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
KReClassEx
/
KReClassEx
/
NodeQuat.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
60 lines (51 loc) · 1.82 KB
Breadcrumbs
KReClassEx
/
KReClassEx
/
NodeQuat.cpp
Copy path
File metadata and controls
60 lines (51 loc) · 1.82 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#
include
"
stdafx.h
"
#
include
"
NodeQuat.h
"
CNodeQuat::CNodeQuat
()
{
m_NodeType = NodeType::Quat;
for
(
UINT
i =
0
; i < m_LevelsOpen.
size
(); i++)
m_LevelsOpen[i] =
true
;
}
void
CNodeQuat::Update
(
const
PHOTSPOT
spot)
{
float
value;
StandardUpdate
(spot);
value = (
float
)
_ttof
(spot->
Text
.
GetString
());
if
(spot->
Id
>=
0
&& spot->
Id
<
4
)
ReClassWriteMemory
(spot->
Address
+ (spot->
Id
*
sizeof
(
float
)), &value,
sizeof
(
float
));
}
NODESIZE
CNodeQuat::Draw
(
const
PVIEWINFO
view,
int
x,
int
y)
{
int
tx;
NODESIZE
drawSize;
float
* pData;
if
(m_bHidden)
return
DrawHidden
(view, x, y);
pData = (
float
*)(view->
Data
+ m_Offset);
AddSelection
(view,
0
, y, g_FontHeight);
AddDelete
(view, x, y);
AddTypeDrop
(view, x, y);
tx = x +
TXOFFSET
;
tx =
AddIcon
(view, tx, y,
ICON_VECTOR
, -
1
, -
1
);
tx =
AddAddressOffset
(view, tx, y);
tx =
AddText
(view, tx, y, g_clrType,
HS_NONE
,
_T
(
"
Vec4
"
));
tx =
AddText
(view, tx, y, g_clrName,
69
,
_T
(
"
%s
"
), m_Name);
tx =
AddOpenClose
(view, tx, y);
if
(m_LevelsOpen[view->
Level
])
{
tx =
AddText
(view, tx, y, g_clrName,
HS_NONE
,
_T
(
"
(
"
));
tx =
AddText
(view, tx, y, g_clrValue,
0
,
_T
(
"
%0.3f
"
), pData[
0
]);
tx =
AddText
(view, tx, y, g_clrName,
HS_NONE
,
_T
(
"
,
"
));
tx =
AddText
(view, tx, y, g_clrValue,
1
,
_T
(
"
%0.3f
"
), pData[
1
]);
tx =
AddText
(view, tx, y, g_clrName,
HS_NONE
,
_T
(
"
,
"
));
tx =
AddText
(view, tx, y, g_clrValue,
2
,
_T
(
"
%0.3f
"
), pData[
2
]);
tx =
AddText
(view, tx, y, g_clrName,
HS_NONE
,
_T
(
"
,
"
));
tx =
AddText
(view, tx, y, g_clrValue,
3
,
_T
(
"
%0.3f
"
), pData[
3
]);
tx =
AddText
(view, tx, y, g_clrName,
HS_NONE
,
_T
(
"
)
"
));
}
tx += g_FontWidth;
tx =
AddComment
(view, tx, y);
drawSize.
x
= tx;
drawSize.
y
= y + g_FontHeight;
return
drawSize;
}
Back
|
FazBrowse Home
|
New Git URL