Age | Commit message (Collapse) | Author | |
---|---|---|---|
2024-04-02 | Fix std::filesystem::path - to - std::string conversions on Windows. | Nat Goodspeed | |
On Windows, std::filesystem::path::value_type is wchar_t, not char -- so path::string_type is std::wstring, not std::string. So while Posix path instances implicitly convert to string, Windows path instances do not. Add explicit u8string() calls. Also add LL.abspath() Lua entry point to further facilitate finding a resource file relative to the calling Lua script. Use abspath() for both test_luafloater_demo.lua and test_luafloater_gesture_list.lua. | |||
2024-04-02 | Add startup.lua module with startup.ensure(), wait() functions. | Nat Goodspeed | |
This lets a calling script verify that it's running at the right point in the viewer's life cycle. A script that wants to interact with the SL agent wouldn't work if run from the viewer's command line -- unless it calls startup.wait("STATE_STARTED"), which pauses until login is complete. Modify test_luafloater_demo.lua and test_luafloater_gesture_list.lua to find their respective floater XUI files in the same directory as themselves. Make them both capture the reqid returned by the "showLuaFloater" operation, and filter for events bearing the same reqid. This paves the way for a given script to display more than one floater concurrently. Make test_luafloater_demo.lua (which does not require in-world resources) wait until 'STATE_LOGIN_WAIT', the point at which the viewer has presented the login screen. Make test_luafloater_gesture_list.lua (which interacts with the agent) wait until 'STATE_STARTED', the point at which the viewer is fully in world. Either or both can now be launched from the viewer's command line. | |||
2024-03-26 | Merge branch 'release/luau-scripting' into luau-keystroke | Mnikolenko Productengine | |
2024-03-26 | update scripts to use fiber.launch() | Mnikolenko Productengine | |
2024-03-25 | Add LL. prefix to viewer entry points, fix existing references. | Nat Goodspeed | |
2024-03-25 | Update test scripts to call leap.request() from main thread | Mnikolenko Productengine | |
2024-03-25 | Add keystroke event support and allow adding text lines to the line editor | Mnikolenko Productengine | |
2024-03-21 | Accept an array for "add_list_item" and change EVENT_LIST type | Mnikolenko Productengine | |
2024-03-21 | Switch to LLDispatchListener | Mnikolenko Productengine | |
2024-03-20 | LLLuaFloater code clean up | Mnikolenko Productengine | |
2024-03-19 | search xml file in the lib, if path is not full; add test lua floater scripts | Mnikolenko Productengine | |