139 Commits

Author SHA1 Message Date
Mads Buvik Sandvei e804f754b9 Option to suppress unused warnings 2026-04-03 14:59:01 +03:00
Alexei Kotov 02b8749bfc Fix Coverity copy warnings 2026-03-30 20:38:01 +03:00
Mads Buvik Sandvei 9a508857b9 set -> vector. Other comments by Capo 2026-03-29 16:21:14 +02:00
Mads Buvik Sandvei 26496837e7 remove redundant includes and checks 2026-03-28 20:44:52 +01:00
Mads Buvik Sandvei 3b878aae06 Actually don't short-circuit for real this time 2026-03-28 16:44:04 +01:00
Mads Buvik Sandvei 08558e8944 Fixes based on comments by Capo 2026-03-28 16:38:06 +01:00
Mads Buvik Sandvei a851dca7b9 Only generate warnings if lua debug = true. Otherwise stick to printing information about "lua debug" once. 2026-03-28 15:25:21 +01:00
Mads Buvik Sandvei 216d767fa1 Add userData as a known layout field 2026-03-14 15:29:09 +01:00
Mads Buvik Sandvei fd9c11179f Use widget() to get name/typeName 2026-03-11 23:05:19 +01:00
Mads Buvik Sandvei d477189a87 Fix warning 2026-03-11 21:29:06 +01:00
Mads Buvik Sandvei 558bbf8b48 Warn on unused properties 2026-03-11 00:07:08 +01:00
Evil Eye 9034e3bc67 Catch exceptions in Lua UI events 2026-02-25 22:19:26 +01:00
Aussiemon 1cb8965f27 Clamp widget extension size and position calculation to prevent crashes, performance problems 2026-01-21 22:02:02 +00:00
Evil Eye 8107fc451f Remove dead code 2025-12-22 17:24:29 +01:00
Evil Eye b32b98d9f5 Detach elements from child before destroying it 2025-12-09 15:41:02 +01:00
elsid 60c7b3aa14 Move code from components/lua_ui/resources.cpp to header 2025-12-06 00:12:42 +01:00
elsid 2c142faaa9 Use normalized path in LuaUi::TextureData 2025-12-06 00:12:42 +01:00
AnyOldName3 ef8e7d97cb Resolve merge conflicts from !4971 2025-11-10 16:01:47 +00:00
Evil Eye baefea94e8 Capture this explicitly 2025-11-05 22:09:23 +01:00
AnyOldName3 0a9f5a3c66 Resolve merge conflicts from !4938 and !4956 2025-11-02 18:05:38 +00:00
Evil Eye 4f8b418c23 Ensure LuaUtil::call is invoked from a safe context 2025-10-30 22:24:53 +01:00
Evil Eye a665980d5e Erase the widget we want to attach rather than the widget we're attaching to 2025-10-23 17:23:37 +02:00
Evil Eye b2beb4a8f8 Don't break LuaUi::Element's invariant 2025-09-28 21:20:40 +02:00
Evil Eye f7292680d6 Fix most conversion warnings in components 2025-09-18 22:00:55 +02:00
elsid dea69b229c Remove small translation units
Remove .cpp files with small amount of code which don't have additional
includes compared to corresponding .hpp files. This reduces the total
size of preprocessed code of the project and should reduce compilation
time.
2025-08-29 00:41:47 +02:00
elsid 0f36b7fc97 Fix and enforce parameter naming 2025-08-27 12:45:09 +02:00
Evil Eye b0e9df0139 Ensure class members are tied to the main Lua state 2025-03-03 19:37:07 +01:00
Evil Eye 481e63ffa7 Prevent stale pointers in UI widgets 2024-09-29 22:36:31 +02:00
Evil Eye 5b82c7a95d Don't assume execution of an internal Lua script can't fail 2024-06-22 11:26:32 +02:00
Evil Eye 1d13f7db8f Simplify detachFromParent 2024-03-28 20:17:05 +01:00
Evil Eye 8cbcb82dd4 Prevent iterator invalidation when updating Lua UI and increase const correctness 2024-03-28 20:01:50 +01:00
uramer 68ed771816 Fix element detachment logic 2024-03-14 20:28:12 +01:00
uramer 2f40491065 Fix crash when destroying UI element in the same frame as creating it 2024-03-14 18:08:18 +01:00
uramer b12f98db98 Don't destroy root widget for new elements 2024-03-12 17:48:42 +01:00
uramer af8662daee Detach Lua Elements properly from their parent 2024-03-10 14:05:37 +01:00
uramer 0f60052bb8 Set Element state in Element::create 2024-03-09 22:27:10 +01:00
uramer 9ae61f1932 Fix child UI Elements created in the same frame as parent 2024-03-06 23:16:02 +01:00
uramer 9cce2e39ba Merge branch 'master' into menuscripts 2024-01-27 15:45:31 +01:00
Andrei Kortunov 87c9f395f1 Move local variables in components 2024-01-19 16:01:48 +04:00
uramer b9afd7245c Create separate UI api tables for menu and player contexts 2024-01-13 10:13:13 +01:00
uramer 7cc0eae461 Fix Menu Lua settings reset between states 2024-01-13 00:46:24 +01:00
uramer 4ed2af7666 Merge branch 'master' into menuscripts 2024-01-10 23:21:42 +01:00
uramer 1afc7ecd58 Test Lua widgets for text inputs correctly 2024-01-10 23:13:27 +01:00
uramer 79deb5f559 Remove settings pages in Lua 2024-01-10 23:13:27 +01:00
Andrei Kortunov d1a7dfee87 Add missing assertion 2024-01-08 16:19:40 +04:00
uramer a6e2ceebb8 Don't clear menu UI on game load 2024-01-07 23:29:20 +01:00
Evil Eye f52e8f76c6 Use std::erase instead of using std::remove without erasing 2023-11-29 16:59:01 +01:00
uramer 9403f06618 Fix visibility breaking after multiple updates 2023-11-24 20:36:45 +01:00
uramer d214f6f6ef Get rid of unncesesary onCoordChange 2023-11-24 20:36:45 +01:00
uramer f3a7b087eb Clean up unncesesary namespace prefixes 2023-11-24 20:36:45 +01:00