mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-05 21:57:20 +00:00
lua: Add app.refresh() function
This commit is contained in:
parent
e63187a5f6
commit
aceec4e4d8
@ -177,6 +177,14 @@ int App_alert(lua_State* L)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int App_refresh(lua_State* L)
|
||||
{
|
||||
#ifdef ENABLE_UI
|
||||
app_refresh_screen();
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
int App_get_activeSprite(lua_State* L)
|
||||
{
|
||||
app::Context* ctx = App::instance()->context();
|
||||
@ -421,6 +429,7 @@ const luaL_Reg App_methods[] = {
|
||||
{ "undo", App_undo },
|
||||
{ "redo", App_redo },
|
||||
{ "alert", App_alert },
|
||||
{ "refresh", App_refresh },
|
||||
{ nullptr, nullptr }
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user