[Script] Added support for mousecursor and still supporting mouseCursor

Added the support for both "mousecursor" and "mouseCursor"
This commit is contained in:
adityarana14 2025-09-02 10:34:17 -04:00 committed by David Capello
parent 21ad78cdbb
commit 6283d69707
1 changed files with 4 additions and 0 deletions

View File

@ -1664,6 +1664,10 @@ int Dialog_modify(lua_State* L)
lua_pop(L, 1);
type = lua_getfield(L, 2, "mouseCursor");
if (type == LUA_TNIL) {
lua_pop(L, 1);
type = lua_getfield(L, 2, "mousecursor");
}
if (type != LUA_TNIL) {
if (auto canvas = dynamic_cast<Canvas*>(widget)) {
auto cursor = (ui::CursorType)lua_tointeger(L, -1);