Implement CScriptSwitch inspection

This commit is contained in:
Phillip Stephens 2021-05-29 16:38:41 -07:00
parent 68845c9ee3
commit fdd08ca59d
Signed by: Antidote
GPG Key ID: F8BEE4C83DACA60D
1 changed files with 16 additions and 1 deletions

View File

@ -426,7 +426,22 @@ IMGUI_ENTITY_INSPECT(CScriptRipple, CEntity, ScripleRipple, {})
IMGUI_ENTITY_INSPECT(CScriptRoomAcoustics, CEntity, ScriptRoomAcoustics, {}) IMGUI_ENTITY_INSPECT(CScriptRoomAcoustics, CEntity, ScriptRoomAcoustics, {})
IMGUI_ENTITY_INSPECT(CScriptSpawnPoint, CEntity, ScriptSpawnPoint, {}) IMGUI_ENTITY_INSPECT(CScriptSpawnPoint, CEntity, ScriptSpawnPoint, {})
IMGUI_ENTITY_INSPECT(CScriptStreamedMusic, CEntity, ScriptStreamedMusic, {}) IMGUI_ENTITY_INSPECT(CScriptStreamedMusic, CEntity, ScriptStreamedMusic, {})
IMGUI_ENTITY_INSPECT(CScriptSwitch, CEntity, ScriptSwitch, {}) IMGUI_ENTITY_INSPECT(CScriptSwitch, CEntity, ScriptSwitch, {
ImGui::Checkbox("Is Open", &x34_opened);
ImGui::Checkbox("Close On Opened", &x35_closeOnOpened);
if (ImGui::Button("Open")) {
g_StateManager->SendScriptMsg(this, x8_uid, EScriptObjectMessage::Open);
}
ImGui::SameLine();
if (ImGui::Button("Close")) {
g_StateManager->SendScriptMsg(this, x8_uid, EScriptObjectMessage::Close);
}
ImGui::SameLine();
if (ImGui::Button("Toggle")) {
g_StateManager->SendScriptMsg(this, x8_uid, EScriptObjectMessage::SetToZero);
}
})
IMGUI_ENTITY_INSPECT(CScriptTimer, CEntity, ScriptTimer, { IMGUI_ENTITY_INSPECT(CScriptTimer, CEntity, ScriptTimer, {
ImGui::DragFloat("Time", &x34_time); ImGui::DragFloat("Time", &x34_time);
ImGui::DragFloat("Start Time", &x38_startTime); ImGui::DragFloat("Start Time", &x38_startTime);