mirror of
https://github.com/swordbluesword/PalWorld-NetCrack.git
synced 2025-04-30 03:07:21 +09:00
Fix inifinitely expanding Exploit tab replace GetWindowContentRegionMax with GetContentRegionAvail
This commit is contained in:
parent
f8ac6e5053
commit
b38db454f1
10
src/Menu.cpp
10
src/Menu.cpp
@ -271,7 +271,7 @@ namespace DX11_Base {
|
|||||||
// this does not work lol
|
// this does not work lol
|
||||||
// std::stringstream AddItemsString;
|
// std::stringstream AddItemsString;
|
||||||
// AddItemsString << "Give " << Config.AddItemCount << " items from slot" << Config.AddItemSlot;
|
// AddItemsString << "Give " << Config.AddItemCount << " items from slot" << Config.AddItemSlot;
|
||||||
if (ImGui::Button("Unlock All Effigies", ImVec2(ImGui::GetWindowContentRegionMax().x - 3, 20)))
|
if (ImGui::Button("Unlock All Effigies", ImVec2(ImGui::GetContentRegionAvail().x - 3, 20)))
|
||||||
{
|
{
|
||||||
UnlockAllEffigies();
|
UnlockAllEffigies();
|
||||||
}
|
}
|
||||||
@ -297,7 +297,7 @@ namespace DX11_Base {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}*/
|
}*/
|
||||||
if (ImGui::Button("HomeTP", ImVec2(ImGui::GetWindowContentRegionMax().x - 3, 20)))
|
if (ImGui::Button("HomeTP", ImVec2(ImGui::GetContentRegionAvail().x - 3, 20)))
|
||||||
{
|
{
|
||||||
SDK::APalPlayerCharacter* p_appc = Config.GetPalPlayerCharacter();
|
SDK::APalPlayerCharacter* p_appc = Config.GetPalPlayerCharacter();
|
||||||
if (p_appc != NULL)
|
if (p_appc != NULL)
|
||||||
@ -333,7 +333,7 @@ namespace DX11_Base {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}*/
|
}*/
|
||||||
if (ImGui::Button("ToggleFly", ImVec2(ImGui::GetWindowContentRegionMax().x - 3, 20)))
|
if (ImGui::Button("ToggleFly", ImVec2(ImGui::GetContentRegionAvail().x - 3, 20)))
|
||||||
{
|
{
|
||||||
Config.IsToggledFly = !Config.IsToggledFly;
|
Config.IsToggledFly = !Config.IsToggledFly;
|
||||||
ExploitFly(Config.IsToggledFly);
|
ExploitFly(Config.IsToggledFly);
|
||||||
@ -352,7 +352,7 @@ namespace DX11_Base {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}*/
|
}*/
|
||||||
if (ImGui::Button("GodHealth", ImVec2(ImGui::GetWindowContentRegionMax().x - 3, 20)))
|
if (ImGui::Button("GodHealth", ImVec2(ImGui::GetContentRegionAvail().x - 3, 20)))
|
||||||
{
|
{
|
||||||
SDK::APalPlayerCharacter* p_appc = Config.GetPalPlayerCharacter();
|
SDK::APalPlayerCharacter* p_appc = Config.GetPalPlayerCharacter();
|
||||||
if (p_appc != NULL)
|
if (p_appc != NULL)
|
||||||
@ -387,7 +387,7 @@ namespace DX11_Base {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (ImGui::Button("Equivalent", ImVec2(ImGui::GetWindowContentRegionMax().x - 3, 20)))
|
if (ImGui::Button("Equivalent", ImVec2(ImGui::GetContentRegionAvail().x - 3, 20)))
|
||||||
{
|
{
|
||||||
Config.isEq = !Config.isEq;
|
Config.isEq = !Config.isEq;
|
||||||
ToggleEqui(Config.isEq);
|
ToggleEqui(Config.isEq);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user