Commit Graph

49 Commits (e1665f39450dd9b70fa67a47bd3b26f4d9bdb9e9)

Author SHA1 Message Date
Evil Eye 481e63ffa7 Prevent stale pointers in UI widgets 3 months ago
Evil Eye 1d13f7db8f Simplify detachFromParent 9 months ago
Evil Eye 8cbcb82dd4 Prevent iterator invalidation when updating Lua UI and increase const correctness 9 months ago
uramer 68ed771816 Fix element detachment logic 10 months ago
uramer 2f40491065 Fix crash when destroying UI element in the same frame as creating it 10 months ago
uramer b12f98db98 Don't destroy root widget for new elements 10 months ago
uramer af8662daee Detach Lua Elements properly from their parent 10 months ago
uramer 0f60052bb8 Set Element state in Element::create 10 months ago
uramer 9ae61f1932 Fix child UI Elements created in the same frame as parent 10 months ago
uramer 9cce2e39ba Merge branch 'master' into menuscripts 11 months ago
Andrei Kortunov 87c9f395f1 Move local variables in components 12 months ago
uramer b9afd7245c Create separate UI api tables for menu and player contexts 12 months ago
uramer 4ed2af7666 Merge branch 'master' into menuscripts 12 months ago
Andrei Kortunov d1a7dfee87 Add missing assertion 12 months ago
uramer a6e2ceebb8 Don't clear menu UI on game load 12 months ago
Evil Eye f52e8f76c6 Use std::erase instead of using std::remove without erasing 1 year ago
uramer f3a7b087eb Clean up unncesesary namespace prefixes 1 year ago
uramer 86ea12a458 Handle moving element into another element layout 1 year ago
uramer cf84386cc2 Use Element Content children for Settings UI 1 year ago
uramer 4ba2aca3d3 Handle Element root changing type 1 year ago
uramer 919e067ab7 Error when encountering destroyed widgets 1 year ago
uramer a36360cbde Update parent coords when updating element 1 year ago
uramer 4a4cef5709 Attach elements to each other, safely destroy 1 year ago
uramer e1cbeb0d3b Don't free ui element's shared_ptr right before destroying it 1 year ago
Petr Mikheev c6eed2a6c6 Fix bug in LuaUi::Element::destroy() that sometimes leads to an infinite loop on UI cleanup 2 years ago
Petr Mikheev c362b2efa6 Use LuaUtil::cast for casting sol::object to prevent crashing on type mismatch in Lua scripts. 2 years ago
uramer 38bceb653d Set Element layout to nil on destroy 2 years ago
Petr Mikheev 65885d994f Don't expose LuaUtil::Callback to lua 2 years ago
uramer e96681151c Get rid of the LuaUI::Content namespace 2 years ago
uramer fc1430af95 Move implementation of UI Content to Lua 2 years ago
Petr Mikheev d9e9db0983 Additional information in Lua profiler 2 years ago
clang-format-bot ddb0522bbf
Apply clang-format to code base 2 years ago
uramer 9042f47f0a Use an anonymous namespace in element.cpp 3 years ago
uramer 5d7fc0ab17 Limit maximum Lua UI layout depth to prevent stack overflow 3 years ago
uramer 52d05be04b Styling for Settings 3 years ago
uramer 1f5e3b78d4 Use Flex, don't force re-renders on layout table changes 3 years ago
uramer 03659bef86 MWUI interface (resolve https://gitlab.com/OpenMW/openmw/-/issues/6594) 3 years ago
uramer 788745e004 Make coordinate calculation more robust, implement Flex widget type 3 years ago
uramer fc50724f5c Render text and images correctly in templates with slots 3 years ago
uramer 581c3f4882 Update and document Lua Text and TextEdit widget types, fix some issues with Lua UI 3 years ago
uramer f07f05ddd3 Add Container widget type, use it to make Adapter code less hacky 3 years ago
uramer 086a7d9bc5 Wrap Lua settings widgets into an Adapter widget 3 years ago
uramer a972a54ea9 Allow changing element root widget type, prevent use after free in script settings 3 years ago
uramer 960dd1f708 Lua UI templates 3 years ago
uramer cc528d2e08 Dispose Lua UI elements correctly 3 years ago
uramer c865114b9b Lua UI Layers 3 years ago
uramer e65c946452 Add a data field to Lua UI layouts 3 years ago
uramer e9f8c34372 Correctly set UI properties to defaults when passed nil 3 years ago
uramer 68963538ae Lua UI API 3 years ago