mirror of
https://github.com/recastnavigation/recastnavigation.git
synced 2026-10-09 18:35:41 +00:00
renamed handleCommonSettings to drawCommonSettingsUI
This commit is contained in:
@@ -185,5 +185,5 @@ public:
|
||||
void renderOverlayToolStates(double* proj, double* model, int* view) const;
|
||||
|
||||
void resetCommonSettings();
|
||||
void handleCommonSettings();
|
||||
void drawCommonSettingsUI();
|
||||
};
|
||||
|
||||
@@ -202,7 +202,7 @@ void Sample::resetCommonSettings()
|
||||
partitionType = SAMPLE_PARTITION_WATERSHED;
|
||||
}
|
||||
|
||||
void Sample::handleCommonSettings()
|
||||
void Sample::drawCommonSettingsUI()
|
||||
{
|
||||
ImGui::SeparatorText("Rasterization");
|
||||
DrawFloatSlider(&cellSize, 0.1f, 1.0f, "##Cell Size", "Cell Size", "%.2f");
|
||||
|
||||
@@ -94,7 +94,7 @@ void Sample_SoloMesh::drawSettingsUI()
|
||||
{
|
||||
static const char* fileName = "solo_navmesh.bin";
|
||||
|
||||
handleCommonSettings();
|
||||
drawCommonSettingsUI();
|
||||
|
||||
ImGui::PushItemWidth(ImGui::GetContentRegionAvail().x);
|
||||
if (ImGui::Button("Save"))
|
||||
|
||||
@@ -901,7 +901,7 @@ Sample_TempObstacles::~Sample_TempObstacles()
|
||||
|
||||
void Sample_TempObstacles::drawSettingsUI()
|
||||
{
|
||||
handleCommonSettings();
|
||||
drawCommonSettingsUI();
|
||||
ImGui::Checkbox("Keep Itermediate Results", &keepIntermediateResults);
|
||||
|
||||
ImGui::Text("Tiling");
|
||||
|
||||
@@ -227,7 +227,7 @@ void Sample_TileMesh::cleanup()
|
||||
|
||||
void Sample_TileMesh::drawSettingsUI()
|
||||
{
|
||||
Sample::handleCommonSettings();
|
||||
drawCommonSettingsUI();
|
||||
|
||||
ImGui::Checkbox("Build All Tiles", &buildAll);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user