FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
KReClassEx/KReClassEx/NodeMatrix.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
/
NodeMatrix.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
96 lines (84 loc) · 3.75 KB
Breadcrumbs
KReClassEx
/
KReClassEx
/
NodeMatrix.cpp
Copy path
File metadata and controls
96 lines (84 loc) · 3.75 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
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
#
include
"
stdafx.h
"
#
include
"
NodeMatrix.h
"
CNodeMatrix::CNodeMatrix
() {
m_NodeType = NodeType::Matrix;
}
void
CNodeMatrix::Update
(
const
PHOTSPOT
spot) {
float
value;
StandardUpdate
(spot);
if
(spot->
Id
<
16
) {
value = (
float
)
_ttof
(spot->
Text
);
ReClassWriteMemory
(spot->
Address
+ (spot->
Id
*
sizeof
(
float
)), &value,
sizeof
(
float
));
}
}
NODESIZE
CNodeMatrix::Draw
(
const
PVIEWINFO
view,
int
x,
int
y)
{
int
tx, mx;
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_MATRIX
,
HS_NONE
,
HS_NONE
);
mx = tx;
tx =
AddAddressOffset
(view, tx, y);
tx =
AddText
(view, tx, y, g_clrType,
HS_NONE
,
_T
(
"
Matrix
"
));
tx =
AddText
(view, tx, y, g_clrName,
69
,
_T
(
"
%s
"
), m_Name);
tx =
AddOpenClose
(view, tx, y);
tx += g_FontWidth;
tx =
AddComment
(view, tx, y);
if
(m_LevelsOpen[view->
Level
])
{
y += g_FontHeight;
tx = mx;
tx =
AddText
(view, tx, y, g_clrName,
HS_NONE
,
_T
(
"
|
"
));
tx =
AddText
(view, tx, y, g_clrValue,
0
,
_T
(
"
% 14.3f
"
), pData[
0
]);
tx =
AddText
(view, tx, y, g_clrName,
HS_NONE
,
_T
(
"
,
"
));
tx =
AddText
(view, tx, y, g_clrValue,
1
,
_T
(
"
% 14.3f
"
), pData[
1
]);
tx =
AddText
(view, tx, y, g_clrName,
HS_NONE
,
_T
(
"
,
"
));
tx =
AddText
(view, tx, y, g_clrValue,
2
,
_T
(
"
% 14.3f
"
), pData[
2
]);
tx =
AddText
(view, tx, y, g_clrName,
HS_NONE
,
_T
(
"
,
"
));
tx =
AddText
(view, tx, y, g_clrValue,
3
,
_T
(
"
% 14.3f
"
), pData[
3
]);
tx =
AddText
(view, tx, y, g_clrName,
HS_NONE
,
_T
(
"
|
"
));
y += g_FontHeight;
tx = mx;
tx =
AddText
(view, tx, y, g_clrName,
HS_NONE
,
_T
(
"
|
"
));
tx =
AddText
(view, tx, y, g_clrValue,
4
,
_T
(
"
% 14.3f
"
), pData[
4
]);
tx =
AddText
(view, tx, y, g_clrName,
HS_NONE
,
_T
(
"
,
"
));
tx =
AddText
(view, tx, y, g_clrValue,
5
,
_T
(
"
% 14.3f
"
), pData[
5
]);
tx =
AddText
(view, tx, y, g_clrName,
HS_NONE
,
_T
(
"
,
"
));
tx =
AddText
(view, tx, y, g_clrValue,
6
,
_T
(
"
% 14.3f
"
), pData[
6
]);
tx =
AddText
(view, tx, y, g_clrName,
HS_NONE
,
_T
(
"
,
"
));
tx =
AddText
(view, tx, y, g_clrValue,
7
,
_T
(
"
% 14.3f
"
), pData[
7
]);
tx =
AddText
(view, tx, y, g_clrName,
HS_NONE
,
_T
(
"
|
"
));
y += g_FontHeight;
tx = mx;
tx =
AddText
(view, tx, y, g_clrName,
HS_NONE
,
_T
(
"
|
"
));
tx =
AddText
(view, tx, y, g_clrValue,
8
,
_T
(
"
% 14.3f
"
), pData[
8
]);
tx =
AddText
(view, tx, y, g_clrName,
HS_NONE
,
_T
(
"
,
"
));
tx =
AddText
(view, tx, y, g_clrValue,
9
,
_T
(
"
% 14.3f
"
), pData[
9
]);
tx =
AddText
(view, tx, y, g_clrName,
HS_NONE
,
_T
(
"
,
"
));
tx =
AddText
(view, tx, y, g_clrValue,
10
,
_T
(
"
% 14.3f
"
), pData[
10
]);
tx =
AddText
(view, tx, y, g_clrName,
HS_NONE
,
_T
(
"
,
"
));
tx =
AddText
(view, tx, y, g_clrValue,
11
,
_T
(
"
% 14.3f
"
), pData[
11
]);
tx =
AddText
(view, tx, y, g_clrName,
HS_NONE
,
_T
(
"
|
"
));
y += g_FontHeight;
tx = mx;
tx =
AddText
(view, tx, y, g_clrName,
HS_NONE
,
_T
(
"
|
"
));
tx =
AddText
(view, tx, y, g_clrValue,
12
,
_T
(
"
% 14.3f
"
), pData[
12
]);
tx =
AddText
(view, tx, y, g_clrName,
HS_NONE
,
_T
(
"
,
"
));
tx =
AddText
(view, tx, y, g_clrValue,
13
,
_T
(
"
% 14.3f
"
), pData[
13
]);
tx =
AddText
(view, tx, y, g_clrName,
HS_NONE
,
_T
(
"
,
"
));
tx =
AddText
(view, tx, y, g_clrValue,
14
,
_T
(
"
% 14.3f
"
), pData[
14
]);
tx =
AddText
(view, tx, y, g_clrName,
HS_NONE
,
_T
(
"
,
"
));
tx =
AddText
(view, tx, y, g_clrValue,
15
,
_T
(
"
% 14.3f
"
), pData[
15
]);
tx =
AddText
(view, tx, y, g_clrName,
HS_NONE
,
_T
(
"
|
"
));
}
drawSize.
x
= tx;
drawSize.
y
= y + g_FontHeight;
return
drawSize;
}
Back
|
FazBrowse Home
|
New Git URL