Advertisement
svenhoefer

Untitled

Mar 2nd, 2017
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.13 KB | None | 0 0
  1. diff --git a/src/gui/lua/luainstance.cpp b/src/gui/lua/luainstance.cpp
  2. index 067b2c7..72cfef8 100644
  3. --- a/src/gui/lua/luainstance.cpp
  4. +++ b/src/gui/lua/luainstance.cpp
  5. @@ -273,6 +273,19 @@ static void set_lua_variables(lua_State *L)
  6.         { NULL, 0 }
  7.     };
  8.  
  9. +   /* offsets, exported as e.g. OFFSET['SHADOW'] */
  10. +   table_key offsets[] =
  11. +   {
  12. +       { "SHADOW",     OFFSET_SHADOW },
  13. +       { "INTER",      OFFSET_INTER },
  14. +       { "INNER_LARGE",    OFFSET_INNER_LARGE },
  15. +       { "INNER_MID",      OFFSET_INNER_MID },
  16. +       { "INNER_SMALL",    OFFSET_INNER_SMALL },
  17. +       { "INNER_MIN",      OFFSET_INNER_MIN },
  18. +       { "INNER_NONE",     OFFSET_INNER_NONE },
  19. +       { NULL, 0 }
  20. +   };
  21. +
  22.     /* screen offsets, exported as e.g. SCREEN['END_Y'] */
  23.     lua_Integer xRes = (lua_Integer)CFrameBuffer::getInstance()->getScreenWidth(true);
  24.     lua_Integer yRes = (lua_Integer)CFrameBuffer::getInstance()->getScreenHeight(true);
  25. @@ -375,6 +388,7 @@ static void set_lua_variables(lua_State *L)
  26.         { "SCREEN", screenopts },
  27.         { "FONT",   fontlist },
  28.         { "CORNER", corners },
  29. +       { "OFFSET", offsets },
  30.         { "MENU_RETURN", menureturn },
  31.         { "APIVERSION",  apiversion },
  32.         { "PLAYSTATE",   playstate },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement