| 34 | |
| 35 | |
| 36 | void CUIStatic::script_register(lua_State* L) |
| 37 | { |
| 38 | module(L)[(class_<CUIStatic, CUIWindow>("CUIStatic") |
| 39 | .def(constructor<>()) |
| 40 | |
| 41 | .def("SetText", (void(CUIStatic::*)(LPCSTR))(&CUIStatic::SetText)) |
| 42 | .def("SetTextST", (void(CUIStatic::*)(LPCSTR))(&CUIStatic::SetTextST)) |
| 43 | .def("GetText", &CUIStatic::GetText) |
| 44 | .def("IsMultibyteFont", [](CUIStatic* self) -> bool { return self->m_pLines->GetFont()->IsMultibyte(); }) |
| 45 | |
| 46 | .def("SetTextX", &CUIStatic::SetTextX) |
| 47 | .def("SetTextY", &CUIStatic::SetTextY) |
| 48 | .def("GetTextX", &CUIStatic::GetTextX) |
| 49 | .def("GetTextY", &CUIStatic::GetTextY) |
| 50 | |
| 51 | .def("SetColor", &CUIStatic::SetColor) |
| 52 | .def("SetLightAnim", &CUIStatic::SetClrLightAnim) |
| 53 | .def("GetColor", &CUIStatic::GetColor) |
| 54 | .def("SetColorA", [](CUIStatic* self, u8 alpha) { self->SetColor(subst_alpha(self->GetColor(), alpha)); }) |
| 55 | .def("SetTextColor", &CUIStatic::SetTextColor_script) |
| 56 | .def("Init", (void(CUIStatic::*)(float, float, float, float)) & CUIStatic::Init) |
| 57 | .def("Init", (void(CUIStatic::*)(LPCSTR, float, float, float, float)) & CUIStatic::Init) |
| 58 | .def("InitTexture", &CUIStatic::InitTexture) |
| 59 | .def("SetTextureOffset", &CUIStatic::SetTextureOffset) |
| 60 | |
| 61 | .def("GetOriginalRect", &CUIStatic::GetOriginalRect) |
| 62 | .def("SetOriginalRect", (void(CUIStatic::*)(float, float, float, float)) & CUIStatic::SetOriginalRect) |
| 63 | .def("ResetOriginalRect", &CUIStatic::ResetOriginalRect) |
| 64 | .def("SetNoShaderCache", &CUIStatic::SetNoShaderCache) |
| 65 | .def("SetStretchTexture", &CUIStatic::SetStretchTexture) |
| 66 | .def("GetStretchTexture", &CUIStatic::GetStretchTexture) |
| 67 | |
| 68 | .def("SetTextAlign", &CUIStatic::SetTextAlign_script) |
| 69 | .def("GetTextAlign", &CUIStatic::GetTextAlign_script) |
| 70 | |
| 71 | .def("SetHeading", &CUIStatic::SetHeading) |
| 72 | .def("GetHeading", &CUIStatic::GetHeading) |
| 73 | .def("EnableHeading", &CUIStatic::EnableHeading) |
| 74 | |
| 75 | .def("ClipperOn", &CUIStatic::ClipperOn) |
| 76 | .def("ClipperOff", (void(CUIStatic::*)(void)) & CUIStatic::ClipperOff) |
| 77 | .def("GetClipperState", &CUIStatic::GetClipperState) |
| 78 | .def("SetClipRect", &CUIStatic::SetClipRect) |
| 79 | .def("GetClipRect", &CUIStatic::GetClipperRect) |
| 80 | |
| 81 | .def("SetTextComplexMode", &CUIStatic::SetTextComplexMode) |
| 82 | .def("AdjustWidthToText", &CUIStatic::AdjustWidthToText) |
| 83 | .def("AdjustHeightToText", &CUIStatic::AdjustHeightToText) |
| 84 | .def("SetVTextAlign", &CUIStatic::SetVTextAlignment) |
| 85 | .def("SetTextPos", &CUIStatic::SetTextPos), |
| 86 | |
| 87 | class_<CUIMiniMap, CUIStatic>("CUIMiniMap") |
| 88 | .def(constructor<>()) |
| 89 | .def("SetRounded", &CUIMiniMap::SetRounded) |
| 90 | .def("SetLocked", &CUIMiniMap::SetLocked) |
| 91 | .def("Init", &UIMiniMapInit) |
| 92 | .def("Zoom", &UIMiniMapZoom) |
| 93 | .def("SetActivePoint", &CUIMiniMap::SetActivePoint) |
nothing calls this directly
no test coverage detected