From d24f17b88d901b779c81c7434995675eb2a17429 Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 4 Nov 2021 12:55:25 +0800 Subject: - Internal:: --- Editor/Scripting/EditorGUI/ContainerWindow.bind.cpp | 7 ++++--- Editor/Scripting/EditorGUI/GUIWindow.bind.cpp | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'Editor/Scripting') diff --git a/Editor/Scripting/EditorGUI/ContainerWindow.bind.cpp b/Editor/Scripting/EditorGUI/ContainerWindow.bind.cpp index 5906788..0269b72 100644 --- a/Editor/Scripting/EditorGUI/ContainerWindow.bind.cpp +++ b/Editor/Scripting/EditorGUI/ContainerWindow.bind.cpp @@ -1,4 +1,5 @@ #include "Editor/GUI/EditorWindows.h" +#include "Runtime/Math/Math.h" LUA_BIND_REGISTRY(ContainerWindow) { @@ -56,10 +57,10 @@ LUA_BIND_IMPL_METHOD(ContainerWindow, ContainerWindow::_New) ContainerWindow* wnd = new ContainerWindow(state.GetVM()); - Internal::Rect rect = state.GetValue(state, Internal::Rect()); + Rect rect = state.GetValue(state, Rect()); int showMode = state.GetValue(2, 0); - Internal::Vector2 min = state.GetValue(state, Internal::Vector2()); - Internal::Vector2 max = state.GetValue(state, Internal::Vector2()); + Vector2 min = state.GetValue(state, Vector2()); + Vector2 max = state.GetValue(state, Vector2()); wnd->Init(rect, showMode, min, max); diff --git a/Editor/Scripting/EditorGUI/GUIWindow.bind.cpp b/Editor/Scripting/EditorGUI/GUIWindow.bind.cpp index 7e31da5..dbb26f4 100644 --- a/Editor/Scripting/EditorGUI/GUIWindow.bind.cpp +++ b/Editor/Scripting/EditorGUI/GUIWindow.bind.cpp @@ -1,4 +1,5 @@ #include "Editor/GUI/EditorWindows.h" +#include "Runtime/Math/Math.h" LUA_BIND_REGISTRY(GUIWindow) { @@ -62,7 +63,7 @@ LUA_BIND_IMPL_METHOD(GUIWindow, _SetPosition) if (!state.CheckParams(1, "UT")) return 0; - Internal::Rect rect; + Rect rect; rect.x = state.GetField(2, 1, 0); rect.y = state.GetField(2, 2, 0); rect.width = state.GetField(2, 3, 0); -- cgit v1.1-26-g67d0