Skip to content

Commit

Permalink
Update editor_ui.cpp
Browse files Browse the repository at this point in the history
重构: 使用 enumerator, 提高代码可读性.
  • Loading branch information
ShenMian authored and hyv1001 committed Apr 11, 2022
1 parent 1e4bfd6 commit 54f16a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engine/source/editor/source/editor_ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ namespace Pilot
{
ImGui::PushID("Editor Mode");
ImGui::Button("Editor Mode");
if (ImGui::IsItemClicked(0))
if (ImGui::IsItemClicked(ImGuiMouseButton_Left))
{
m_is_editor_mode = !m_is_editor_mode;
drawSelectedEntityAxis();
Expand All @@ -635,7 +635,7 @@ namespace Pilot
else
{
ImGui::Button("Game Mode");
if (ImGui::IsItemClicked(0))
if (ImGui::IsItemClicked(ImGuiMouseButton_Left))
{
m_is_editor_mode = !m_is_editor_mode;
g_is_editor_mode = true;
Expand Down

0 comments on commit 54f16a9

Please sign in to comment.