diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2023-09-28 11:59:04 -0400 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2023-09-28 11:59:04 -0400 |
| commit | 55326a83ab71309e98137af81dbd5755bf718a6c (patch) | |
| tree | af985d8b5b86c6cdb1e46b6bdab1790bf2153ffd /src | |
| parent | 78621bab9fd6401e4e83493360a46f12bddf4299 (diff) | |
ImGui CompInstance.index readonly
Diffstat (limited to 'src')
| -rw-r--r-- | src/game.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp index 78fa093..5885e64 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -430,7 +430,7 @@ void RecordImGui_CompInstPos(bool readonly, CompInstance *component) { ImGui::Text("CompInststance + InstPos"); ImGui::Separator(); - ImGui::InputScalar("Instance Index", ImGuiDataType_U64, &component->index, nullptr, nullptr, nullptr, inputTextFlags); + ImGui::InputScalar("Instance Index", ImGuiDataType_U64, &component->index, nullptr, nullptr, nullptr, ImGuiInputTextFlags_ReadOnly); if (component->ptr) { ImGui::InputScalarN("pos", ImGuiDataType_Float, &component->ptr->pos, 3, nullptr, nullptr, nullptr, inputTextFlags); ImGui::InputScalarN("rot", ImGuiDataType_Float, &component->ptr->rot, 3, nullptr, nullptr, nullptr, inputTextFlags); |
