diff options
author | chai <chaifix@163.com> | 2021-11-04 12:55:25 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-11-04 12:55:25 +0800 |
commit | d24f17b88d901b779c81c7434995675eb2a17429 (patch) | |
tree | d8f4cfee93d70598ef4b1419316b30acfff0eb04 /Editor/Scripting | |
parent | 94a9a28de16badb75e66a60efca3b01d31cc0fc6 (diff) |
- Internal::
Diffstat (limited to 'Editor/Scripting')
-rw-r--r-- | Editor/Scripting/EditorGUI/ContainerWindow.bind.cpp | 7 | ||||
-rw-r--r-- | Editor/Scripting/EditorGUI/GUIWindow.bind.cpp | 3 |
2 files changed, 6 insertions, 4 deletions
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<Internal::Rect>(state, Internal::Rect()); + Rect rect = state.GetValue<Rect>(state, Rect()); int showMode = state.GetValue<int>(2, 0); - Internal::Vector2 min = state.GetValue<Internal::Vector2>(state, Internal::Vector2()); - Internal::Vector2 max = state.GetValue<Internal::Vector2>(state, Internal::Vector2()); + Vector2 min = state.GetValue<Vector2>(state, Vector2()); + Vector2 max = state.GetValue<Vector2>(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<float>(2, 1, 0); rect.y = state.GetField<float>(2, 2, 0); rect.width = state.GetField<float>(2, 3, 0); |