201 Commits
Author SHA1 Message Date
nox7 1719cf6e75 Document clockwise movement. Use radians instead of degrees. Swap float usage to double 2026-10-02 06:56:44 -05:00
nox7 1cfcc542c8 Accept rotation parameter in cursor resource 2026-10-02 06:33:50 -05:00
nox7 c4e0ebe2ee Only change cursor after layout update is done 2026-09-26 17:22:42 -05:00
nox7 f70b2ede51 Only update cursor if it's actually changed 2026-09-26 17:17:38 -05:00
nox7 ac87273742 Retain duplicate cursor resources with dupe-checks done via hash keys 2026-09-21 19:05:37 -05:00
nox7 cf26ddba53 Track if cursor resources originated in menu context so they can be removed or retained properly 2026-09-21 19:03:59 -05:00
nox7 5ac61e001b Add getCursor(), but also properly revert back to the original engine cursor if the Lua cursor is set to nil 2026-09-21 19:03:59 -05:00
nox7 2278f02471 Fix cursor not propagating on Lua UI 2026-09-21 19:03:58 -05:00
nox7 b3a0227e44 Add Lua custom cursor registration 2026-09-21 19:03:58 -05:00
uramer e1fc63e9c5 Merge branch 'update-coords-viewport-resize' into 'master'
Update Lua UI Coordinates on Viewport Change

Closes #6748

See merge request OpenMW/openmw!5283
2026-09-13 05:50:53 +00:00
nox7andAlexei Kotov d11ab71852 Add ignorePointerEvents and update docs with new prop 2026-09-10 09:54:44 +03:00
nox7andEvil Eye 91b27ac86f Move dispatch code to new input file and clean up header shenaningans pulling in massive dependencies 2026-09-03 17:26:54 +02:00
nox7andEvil Eye d762b7e365 Use floats without casting 2026-09-03 17:26:54 +02:00
nox7andEvil Eye 81f90ec660 Use preciseX and preciseY from SDL to account for fractional scrolling on high-precision devices 2026-09-03 17:26:54 +02:00
nox7andEvil Eye 1ccc932e18 Switch to using SDL wheel event instead of MyGui 2026-09-03 17:26:53 +02:00
nox7andEvil Eye 5749babd48 Implement mouseWheel MyGUI delegate 2026-09-03 17:26:53 +02:00
nox7 c05d8bbd06 Re-attach content widget after template children 2026-07-29 14:40:38 -05:00
nox7andAlexei Kotov 91c68e0f25 Simplify padding property parsing and use parsing error that comes from propertyValue 2026-07-27 17:07:41 +03:00
nox7andAlexei Kotov 7876af5670 Clarify use of _setAlign on image 2026-07-27 17:07:41 +03:00
nox7andAlexei Kotov 8fcf95b07f Remove unnecessary const assignment. CLANG 2026-07-27 17:07:41 +03:00
nox7andAlexei Kotov 48e94bfabb Refactor vec4i usage to new padding struct. A lot easier to follow in code 2026-07-27 17:07:41 +03:00
nox7andAlexei Kotov cba5ff868c Add padding header struct 2026-07-27 17:07:41 +03:00
nox7andAlexei Kotov fef92b6cec Fix formatting 2026-07-27 17:07:41 +03:00
nox7andAlexei Kotov 7eee4906ce Update padding to use Vec4i. Change parse behavior from Lua to accept vector4 and not a number or table. Update docs 2026-07-27 17:07:41 +03:00
nox7andAlexei Kotov 7f8601fef5 Address MR review comments: Fix misspellings in docs, remove new line, remove defensive safe-guard code that has no logical use 2026-07-27 17:07:41 +03:00
Cole GreenandAlexei Kotov a166325465 Add documentation of padding on base Widget 2026-07-27 17:07:41 +03:00
nox7andAlexei Kotov 63dcd80a89 Adds content widget for handling clipping. Implements padding logic for
position calculations.
2026-07-27 17:07:41 +03:00
nox7andAlexei Kotov d97ebb55d8 Add padding property. Add parsePadding() 2026-07-27 17:07:41 +03:00
Alexei Kotov 2c18fa4ce4 Merge branch 'fix-lua-ui-crash' into 'master'
Fix crash - do not try to dereference null root widget parent

Closes #9230

See merge request OpenMW/openmw!5451
2026-07-27 03:57:28 +03:00
nox7 505de9c041 Remove redundant updateCoord() 2026-07-26 13:05:11 -05:00
nox7 9f68f440d2 Do not try to dereference null parent 2026-07-25 07:21:28 -05:00
nox7 e6aff6ebd1 Lazy-load settings page elements 2026-07-21 19:27:01 -05:00
uramer 7a5e77a451 Merge branch 'lua-iterator-fixes' into 'master'
Fix some edgecases in the lua API

See merge request OpenMW/openmw!5403
2026-07-20 12:46:48 +00:00
Alexei Kotov de993b89da Merge branch 'get-all-elements' into 'master'
Add getElements to UI Lua module

Closes #9206

See merge request OpenMW/openmw!5414
2026-07-18 16:24:35 +03:00
OwnlyMe 87e1dec409 fix content:insert(index, element) corrupting the keys 2026-07-14 17:27:17 +02:00
nox7 32357cacb0 Add foreach helper to return element pointer, which is what Lua receives from ui.create. This keeps the object returned from getElements the same across memory. 2026-07-11 12:18:41 -05:00
ember2528 6a8e22e3fb Fix ui.content iteration 2026-07-08 17:10:15 -05:00
Dave Corley d83537f29a CLEANUP: Remove explicit nil check 2026-06-15 10:18:56 +00:00
Dave Corley 3662faed32 FIX: Correct off-by-one error in __ipairs iterator which breaks under 52COMPAT 2026-06-14 19:08:42 -05:00
Alexei Kotov 70f9a86de3 Merge branch 'content-index-return-nil' into 'master'
Remove raising an error when indexing nil or invalid Lua UI content

Closes #9116

See merge request OpenMW/openmw!5341
2026-06-07 01:01:54 +03:00
nox7 4d5118ce11 Remove error propagation for indexing with nil content result 2026-06-05 17:01:57 -05:00
nox7 ea0b4277cb CLANG Format 2026-05-30 21:48:32 -05:00
nox7 e9ab0c113b Fix no-wrap arrange setting being a no-op because no consideration of container size 2026-05-30 21:48:32 -05:00
nox7 987325e0a1 Resolve center alignment not using post-grow values for calculations 2026-05-30 21:48:32 -05:00
nox7 507105600c Fix stretch/grow not having correct track and container sizes when autosize is true 2026-05-30 21:48:21 -05:00
nox7 a6d642b3c7 Remove unnecessary calculations for final tracks. Add clamping for grow and stretch factors. Fix bug with grow on multiple children losing available space
CLANG syntax
2026-05-30 21:48:02 -05:00
Cole Greenandnox7 403cb84397 Refactor algorithm to use a single outer loop pass. Remove use of struct. Remove use of vector for keeping track of the flex tracks
Fix incorrect calculation of final children size due to stray gap subtraction
2026-05-30 21:48:02 -05:00
Cole Green 5935cdb2a8 Remove property comments, as recommended in the Flex Gap MR 2026-05-30 21:48:02 -05:00
Cole Green bd4a602bf0 Add missing used property for wrap 2026-05-30 21:48:02 -05:00
Cole Greenandnox7 f7dcb99645 Resolve issues with phantom gap on final primary axis row/column. Resolve warning about size_t to int conversion.
Resolve CLANG syntax enforcement errors

Fix CLANG syntax warnings
2026-05-30 21:48:01 -05:00