Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Lua 0-indexing #247

Merged
merged 4 commits into from
Oct 28, 2021
Merged

Fix Lua 0-indexing #247

merged 4 commits into from
Oct 28, 2021

Conversation

nimble0
Copy link

@nimble0 nimble0 commented Oct 17, 2021

Fixes #237

The change to correct the tab_index event parameter is a bit hacky.

Copy link
Owner

@mikke89 mikke89 left a comment

Choose a reason for hiding this comment

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

Great work, thanks a lot! Should make a smoother experience for Lua users.

Just some minor comments here, otherwise looking good to me.

Include/RmlUi/Lua/Utilities.h Outdated Show resolved Hide resolved
Source/Lua/EventParametersProxy.cpp Outdated Show resolved Hide resolved
@mikke89 mikke89 added the Lua Lua binding issues label Oct 18, 2021
@nimble0
Copy link
Author

nimble0 commented Oct 27, 2021

I updated the branch with those changes. I used plain comments but I have noticed some other files appear to be using annotation for some automated documentation generation.

@mikke89 mikke89 merged commit 557dfdb into mikke89:master Oct 28, 2021
@mikke89
Copy link
Owner

mikke89 commented Oct 28, 2021

Thanks a lot! Looks great :)

No worries about the formatting of the comments, that looks all good. We don't actually use automated documentation generation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Lua Lua binding issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lua Element:GetElementsByTagName result is 0-indexed
2 participants