Skip to content

Commit

Permalink
feat(lua): add gui.TexturedShape:GetTextureSize
Browse files Browse the repository at this point in the history
  • Loading branch information
Silverlan committed Dec 22, 2023
1 parent ea18179 commit 7a77b77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build_scripts/scripts/external_libs.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
get_submodule("util_vmf","https://github.com/Silverlan/util_vmf.git","cdba99d")
get_submodule("util_zip","https://github.com/Silverlan/util_zip.git","63b2609")
get_submodule("vfilesystem","https://github.com/Silverlan/vfilesystem.git","f32d72c8869aa7db4b64d4e3fe04ddeeb15e89e1")
get_submodule("wgui","https://github.com/Silverlan/wgui.git","37181100c7e864e0acb2845276600eb916a4fcdb")
get_submodule("wgui","https://github.com/Silverlan/wgui.git","8cad37ad27ddaadbc50bfa869d7293932cd4878b")

os.chdir(curDir)
1 change: 1 addition & 0 deletions core/client/src/lua/classes/c_lwibase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,7 @@ void Lua::WITexturedShape::register_class(luabind::class_<::WITexturedShape, lua
classDef.def("InvertVertexUVCoordinates", static_cast<void (*)(::WITexturedShape &)>([](::WITexturedShape &el) { el.InvertVertexUVCoordinates(); }));
classDef.def("ClearTexture", &::WITexturedShape::ClearTexture);
classDef.def("SizeToTexture", &::WITexturedShape::SizeToTexture);
classDef.def("GetTextureSize", &::WITexturedShape::GetTextureSize);
classDef.def("SetChannelSwizzle", &::WITexturedShape::SetChannelSwizzle);
classDef.def("SetChannelSwizzle", &::WITexturedShape::GetChannelSwizzle);
classDef.def("SetShader", static_cast<void (::WITexturedShape::*)(wgui::ShaderTextured &)>(&::WITexturedShape::SetShader));
Expand Down

0 comments on commit 7a77b77

Please sign in to comment.