 |
|

31.10.2018, 18:27
|
|
Участник форума
Регистрация: 17.12.2017
Сообщений: 110
С нами:
4423953
Репутация:
68
|
|
[QUOTE="Rzeźnik"]
C++:
[CODE]
if
(
(
*
(
int
*
)
0xBA6774
!=
0
)
)
{
for
(
int
i
=
0
;
i
|
|
|

02.11.2018, 01:14
|
|
Участник форума
Регистрация: 19.01.2017
Сообщений: 130
С нами:
4901705
Репутация:
98
|
|
is it possible to create imgui menu in sobeit source ? i tried to put ImGui::ShowDemoWindow(); in sobeit renderHandler but it crashes... do i need to include some libs or to define it somewhere else ?
|
|
|

02.11.2018, 01:48
|
|
Познавший АНТИЧАТ
Регистрация: 09.08.2015
Сообщений: 1,213
С нами:
5663255
Репутация:
183
|
|
Сообщение от _=Gigant=_
is it possible to create imgui menu in sobeit source ? i tried to put ImGui::ShowDemoWindow(); in sobeit renderHandler but it crashes... do i need to include some libs or to define it somewhere else ?
You need to initialize the ImGui and call some functions in Reset, Present and WndProc.
Look this topic: https://blast.hk/threads/23083/
|
|
|

02.11.2018, 06:04
|
|
Участник форума
Регистрация: 13.03.2016
Сообщений: 242
С нами:
5351007
Репутация:
0
|
|
Сообщение от _=Gigant=_
i puted
C++:
Код:
if
(
ImGui_ImplWin32_WndProcHandler
(
wnd
,
umsg
,
wparam
,
lparam
)
)
{
return
1l
;
}
in
Код:
Код:
static LRESULT CALLBACK wnd_proc ( HWND wnd, UINT umsg, WPARAM wparam, LPARAM lparam )
{
}
then
C++:
Код:
ImGui_ImplDX9_InvalidateDeviceObjects
(
)
;
in
Код:
Код:
HRESULT proxyIDirect3DDevice9::Reset(D3DPRESENT_PARAMETERS *pPresentationParameters)
and in
C++:
Код:
HRESULT proxyIDirect3DDevice9
::
Present
(
CONST RECT
*
pSourceRect
,
CONST RECT
*
pDestRect
,
HWND hDestWindowOverride
,
CONST RGNDATA
*
pDirtyRegion
)
i puted
C++:
Код:
ImGui
::
CreateContext
(
)
;
ImGuiIO
&
io
=
ImGui
::
GetIO
(
)
;
(
void
)
io
;
ImGui_ImplWin32_Init
(
GetActiveWindow
(
)
)
;
ImGui_ImplDX9_Init
(
hDestWindowOverride
,
origIDirect3DDevice9
)
;
and i called ImGui::ShowDemoWindow() in renderHandler(); but still crash
C++:
Код:
(
void
)
io
;
// WTF?! You casted reference on class to undefined type
|
|
|

02.11.2018, 15:37
|
|
Постоянный
Регистрация: 13.02.2016
Сообщений: 532
С нами:
5392682
Репутация:
93
|
|
Сообщение от _=Gigant=_
i puted this now in Present
Код:
Код:
ImGui::CreateContext();
ImGuiIO& io = ImGui::GetIO();
ImGuiStyle& style = ImGui::GetStyle();
io.IniFilename = NULL;
io.DeltaTime = 1.0f / 60.0f;
ImFont* pFont = io.Fonts->AddFontFromFileTTF("C:\\Windows\\Fonts\\framd.ttf", 15);
SetCursor(io.MouseDrawCursor ? NULL : LoadCursor(NULL, IDC_ARROW));
io.Fonts->AddFontDefault();
style.AntiAliasedLines = false;
style.AntiAliasedFill = false;
style.WindowBorderSize = 0.0f;
ImGui_ImplWin32_Init(GetActiveWindow());
ImGui_ImplDX9_Init(hDestWindowOverride, origIDirect3DDevice9);
It's in mainloop
Сообщение от _=Gigant=_
its not crashing and it draws the imgui mouse SetCursor but its not drawing ImGui::ShowDemoWindow(); or the imgui menu i created above
Connect imgui_demo.cpp
|
|
|

02.11.2018, 17:13
|
|
Постоянный
Регистрация: 28.03.2013
Сообщений: 495
С нами:
6908018
Репутация:
213
|
|
Сообщение от _=Gigant=_
i puted this now in Present
Код:
Код:
ImGui::CreateContext();
ImGuiIO& io = ImGui::GetIO();
ImGuiStyle& style = ImGui::GetStyle();
io.IniFilename = NULL;
io.DeltaTime = 1.0f / 60.0f;
ImFont* pFont = io.Fonts->AddFontFromFileTTF("C:\\Windows\\Fonts\\framd.ttf", 15);
SetCursor(io.MouseDrawCursor ? NULL : LoadCursor(NULL, IDC_ARROW));
io.Fonts->AddFontDefault();
style.AntiAliasedLines = false;
style.AntiAliasedFill = false;
style.WindowBorderSize = 0.0f;
ImGui_ImplWin32_Init(GetActiveWindow());
ImGui_ImplDX9_Init(hDestWindowOverride, origIDirect3DDevice9);
you calling inititiazing in cycle, need call init only one.
C++:
Код:
static
bool
inited
=
false
;
if
(
!
inited
)
{
ImGui
::
CreateContext
(
)
;
ImGuiIO
&
io
=
ImGui
::
GetIO
(
)
;
ImGuiStyle
&
style
=
ImGui
::
GetStyle
(
)
;
io
.
IniFilename
=
NULL
;
io
.
DeltaTime
=
1.0f
/
60.0f
;
ImFont
*
pFont
=
io
.
Fonts
->
AddFontFromFileTTF
(
"C:\\Windows\\Fonts\\framd.ttf"
,
15
)
;
SetCursor
(
io
.
MouseDrawCursor
?
NULL
:
LoadCursor
(
NULL
,
IDC_ARROW
)
)
;
io
.
Fonts
->
AddFontDefault
(
)
;
style
.
AntiAliasedLines
=
false
;
style
.
AntiAliasedFill
=
false
;
style
.
WindowBorderSize
=
0.0f
;
ImGui_ImplWin32_Init
(
GetActiveWindow
(
)
)
;
ImGui_ImplDX9_Init
(
hDestWindowOverride
,
origIDirect3DDevice9
)
;
inited
=
true
;
}
|
|
|

04.11.2018, 13:38
|
|
Постоянный
Регистрация: 02.11.2018
Сообщений: 375
С нами:
3963063
Репутация:
18
|
|
в какой программе компилировать sf and asi?
|
|
|

04.11.2018, 13:54
|
|
Флудер
Регистрация: 17.06.2013
Сообщений: 3,635
С нами:
6791977
Репутация:
183
|
|
Сообщение от krystal.v0s
в какой программе компилировать sf and asi?
В IDE.
|
|
|

04.11.2018, 20:42
|
|
Новичок
Регистрация: 05.05.2010
Сообщений: 0
С нами:
8431828
Репутация:
0
|
|
Хочу, чтобы моя функция запускалась во время процедуры закрытия игры (/q и т.д).
Подскажите пожалуйста адрес, который точно используется только во время процедуры закрытия? Чтобы инъекцию туда сделать..
|
|
|

04.11.2018, 21:11
|
|
Постоянный
Регистрация: 28.03.2013
Сообщений: 495
С нами:
6908018
Репутация:
213
|
|
|
|
|
|
 |
|
|
Здесь присутствуют: 1 (пользователей: 0 , гостей: 1)
|
|
|
|