mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Add new 'shortcut' buttons to host panel
* Added "Rebuild AI Network" (rebuilds the AIN file). * Added "NavMesh Hot Swap" (hot reloads the navmesh files). * Added "AI Settings Reparse" (reparses ai settings on the server and client).
This commit is contained in:
parent
3b5d6ec910
commit
9533afc628
@ -556,7 +556,33 @@ void CBrowser::HostPanel(void)
|
||||
}
|
||||
}
|
||||
|
||||
if (ImGui::Button("Weapon Reparse", ImVec2(ImGui::GetWindowContentRegionWidth(), 32)))
|
||||
ImGui::Spacing();
|
||||
ImGui::Separator();
|
||||
ImGui::Spacing();
|
||||
|
||||
if (ImGui::Button("Rebuild AI Network", ImVec2(ImGui::GetWindowContentRegionWidth(), 32)))
|
||||
{
|
||||
ProcessCommand("BuildAINFile");
|
||||
}
|
||||
|
||||
if (ImGui::Button("NavMesh Hot Swap", ImVec2(ImGui::GetWindowContentRegionWidth(), 32)))
|
||||
{
|
||||
ProcessCommand("navmesh_hotswap");
|
||||
}
|
||||
|
||||
ImGui::Spacing();
|
||||
ImGui::Separator();
|
||||
ImGui::Spacing();
|
||||
|
||||
if (ImGui::Button("AI Settings Reparse", ImVec2(ImGui::GetWindowContentRegionWidth(), 32)))
|
||||
{
|
||||
DevMsg(eDLL_T::ENGINE, "Reparsing AI data on %s\n", "server and client");
|
||||
|
||||
ProcessCommand("aisettings_reparse");
|
||||
ProcessCommand("aisettings_reparse_client");
|
||||
}
|
||||
|
||||
if (ImGui::Button("Weapon Settings Reparse", ImVec2(ImGui::GetWindowContentRegionWidth(), 32)))
|
||||
{
|
||||
DevMsg(eDLL_T::ENGINE, "Reparsing weapon data on %s\n", "server and client");
|
||||
ProcessCommand("weapon_reparse");
|
||||
|
Loading…
x
Reference in New Issue
Block a user