Skip to content

Conversation

@cnjhb
Copy link
Contributor

@cnjhb cnjhb commented Aug 30, 2025

No description provided.

lv_point_t point = {0};
if (lua_istable(L, idx)) {
lua_rawgeti(L, idx, 1);
lua_getfield(L, idx, "x");
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Originally I think using array is simpler.

local pointer = root:Pointer {
    src = SCRIPT_PATH .. "/assets/second.png",
    pivot = { 20, 233 },
    x = -20,

I not sure if this should be unified to key-value style.
It would break the example for sure, like pointer.lua

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see what you mean, there really doesn't seem to be much to fix.

@XuNeo XuNeo closed this Jan 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants