Implement missing SetForeground api function. Fixes #2
This commit is contained in:
1 parent
f2387804c1
commit
38e3a39782
4 files changed
+19
-2
No files matched your search
+2
-1
@@ -13,7 +13,7 @@ use crate::{
|
||||
},
|
||||
rendering::PoBString,
|
||||
search_handle::new_search_handle,
|
||||
window::{get_screen_scale, get_screen_size, set_window_title},
|
||||
window::{get_screen_scale, get_screen_size, set_foreground, set_window_title},
|
||||
},
|
||||
lua::ContextSocket,
|
||||
};
|
||||
@@ -84,6 +84,7 @@ pub fn register_globals(lua: &Lua) -> LuaResult<()> {
|
||||
globals.set("GetScreenSize", lua.create_function(get_screen_size)?)?;
|
||||
globals.set("GetScreenScale", lua.create_function(get_screen_scale)?)?;
|
||||
globals.set("SetWindowTitle", lua.create_function(set_window_title)?)?;
|
||||
globals.set("SetForeground", lua.create_function(set_foreground)?)?;
|
||||
|
||||
// lua
|
||||
globals.set("PCall", lua.create_function(protected_call)?)?;
|
||||
|
||||
Reference in new issue
Block a user