summaryrefslogtreecommitdiff
path: root/my_imgui_widgets.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'my_imgui_widgets.cpp')
-rw-r--r--my_imgui_widgets.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/my_imgui_widgets.cpp b/my_imgui_widgets.cpp
index 656804d..4a4427c 100644
--- a/my_imgui_widgets.cpp
+++ b/my_imgui_widgets.cpp
@@ -210,7 +210,7 @@ ImGui_PropertiesPanel(project_data *File, project_state *State, ui *UI, memory *
else
ImGui::PushStyleColor(ImGuiCol_Button, ImGui::GetColorU32(ImGuiCol_Button));
if (ImGui::Button("V")) {
- SwitchBool(Effect->IsActive);
+ Effect->IsActive ^= 1;
State->UpdateFrame = true;
}
ImGui::SameLine();
@@ -418,10 +418,10 @@ ImGui_Viewport(project_data File, project_state *State, ui *UI, comp_buffer Comp
draw_list->AddNgon(Point0_ScreenPos, 10, col, 8, 5.0f);
- // draw_list->AddNgon(Point0_ScreenPos_Left, 10, col, 8, 5.0f);
- // draw_list->AddNgon(Point0_ScreenPos_Right, 10, col, 8, 5.0f);
- // draw_list->AddLine(Point0_ScreenPos, Point0_ScreenPos_Left, col, 2.0f);
- // draw_list->AddLine(Point0_ScreenPos, Point0_ScreenPos_Right, col, 2.0f);
+ draw_list->AddNgon(Point0_ScreenPos_Left, 10, col, 8, 5.0f);
+ draw_list->AddNgon(Point0_ScreenPos_Right, 10, col, 8, 5.0f);
+ draw_list->AddLine(Point0_ScreenPos, Point0_ScreenPos_Left, col, 2.0f);
+ draw_list->AddLine(Point0_ScreenPos, Point0_ScreenPos_Right, col, 2.0f);
int max = 1;
@@ -1005,7 +1005,7 @@ ImGui_Timeline(project_data *File, project_state *State, memory *Memory, ui *UI,
ManualKeyframeInsertF(Property, Memory, File->CurrentFrame, Property->CurrentValue.f);
ImGui::SameLine();
if (ImGui::Button("G")) {
- SwitchBool(Property->IsGraphToggled);
+ Property->IsGraphToggled ^= 1;
// TODO(fox): Make system to init things like these automatically?
if (!Property->GraphLength) {
Property->GraphLength = 150;
@@ -1492,7 +1492,7 @@ ImGui_ProcessInputs(project_data *File, project_state *State, comp_buffer *CompB
if (io.KeyShift) {
State->RerouteEffects = true;
} else {
- SwitchBool(State->IsPlaying);
+ State->IsPlaying ^= 1;
}
}
@@ -1540,7 +1540,7 @@ ImGui_ProcessInputs(project_data *File, project_state *State, comp_buffer *CompB
#if DEBUG
if (ImGui::IsKeyPressed(ImGuiKey_W))
{
- SwitchBool(Debug.ToggleWindow);
+ Debug.ToggleWindow ^= 1;
}
#endif