FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
KReClassEx/KReClassEx/NodeText.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
/
NodeText.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
67 lines (55 loc) · 1.76 KB
Breadcrumbs
KReClassEx
/
KReClassEx
/
NodeText.cpp
Copy path
File metadata and controls
67 lines (55 loc) · 1.76 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
#
include
"
stdafx.h
"
#
include
"
NodeText.h
"
CNodeText::CNodeText
()
{
m_NodeType = NodeType::Text;
m_Name =
_T
(
"
Text
"
);
m_MemorySize =
16
;
}
void
CNodeText::Update
(
const
PHOTSPOT
spot)
{
SIZE_T
len;
StandardUpdate
(spot);
if
(spot->
Id
==
0
)
{
m_MemorySize =
_ttoi
(spot->
Text
.
GetString
());
}
else
if
(spot->
Id
==
1
)
{
len = spot->
Text
.
GetLength
() +
1
;
if
(len > m_MemorySize)
len = m_MemorySize;
ReClassWriteMemory
(spot->
Address
, (
LPVOID
)spot->
Text
.
GetString
(), len);
}
}
NODESIZE
CNodeText::Draw
(
const
PVIEWINFO
view,
int
x,
int
y)
{
int
tx;
NODESIZE
drawSize;
char
* pData;
if
(m_bHidden)
return
DrawHidden
(view, x, y);
pData = (
char
*)(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_TEXT
,
HS_NONE
,
HS_NONE
);
tx =
AddAddressOffset
(view, tx, y);
tx =
AddText
(view, tx, y, g_clrType,
HS_NONE
,
_T
(
"
char
"
));
tx =
AddText
(view, tx, y, g_clrName,
HS_NAME
,
_T
(
"
%s
"
), m_Name);
tx =
AddText
(view, tx, y, g_clrIndex,
HS_NONE
,
_T
(
"
[
"
));
tx =
AddText
(view, tx, y, g_clrIndex,
HS_EDIT
,
_T
(
"
%i
"
),
GetMemorySize
());
tx =
AddText
(view, tx, y, g_clrIndex,
HS_NONE
,
_T
(
"
]
"
));
if
(pData!=
nullptr
)
{
CStringA
MemoryString
(
GetStringFromMemoryA
(pData,
GetMemorySize
(),
true
));
tx =
AddText
(view, tx, y, g_clrChar,
HS_NONE
,
_T
(
"
= '
"
));
tx =
AddText
(view, tx, y, g_clrChar,
1
,
"
%.150s
"
, MemoryString.
GetBuffer
());
tx =
AddText
(view, tx, y, g_clrChar,
HS_NONE
,
_T
(
"
'
"
)) + g_FontWidth;
}
tx =
AddComment
(view, tx, y);
drawSize.
x
= tx;
drawSize.
y
= y + g_FontHeight;
return
drawSize;
}
Back
|
FazBrowse Home
|
New Git URL