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

Sample Lua file #5

Open
xTVaser opened this issue Jan 13, 2018 · 2 comments
Open

Sample Lua file #5

xTVaser opened this issue Jan 13, 2018 · 2 comments

Comments

@xTVaser
Copy link
Owner

xTVaser commented Jan 13, 2018

Would be nice to have a sample lua file that shows off the majority of the features

A final step would be to finalize the lua documentation wiki page

@Wulf2k
Copy link

Wulf2k commented Jan 15, 2018

https://github.com/xTVaser/pcsx2-rr/blob/master/bin/lua/gui.lua
https://github.com/xTVaser/pcsx2-rr/blob/master/bin/lua/sample/KeyWriter.lua
https://github.com/xTVaser/pcsx2-rr/blob/master/bin/lua/sample/SimpleTest.lua

I think the above 3 files do cover most of the features.

I'm sure somebody dedicated could write up a better tutorial LUA file, but it should be enough for most people to figure out whatever they're trying to do.

@xTVaser
Copy link
Owner Author

xTVaser commented Jan 16, 2018

lol i totally missed the gui.lua, go figure. Ya the emu.registerbefore() call was what I was missing, thanks.

You're right that it does cover most of the features, but it would be nice to maybe combine them all into one file, as well as if new lua functions are added for floats/strings then the samples should be updated at the least to include them somewhere. But this is pretty low priority.

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

No branches or pull requests

2 participants