20#include "map_overlay.h"
99 double x = luaL_checknumber( L, 1 );
100 double y = luaL_checknumber( L, 2 );
101 double w = luaL_checknumber( L, 3 );
102 double h = luaL_checknumber( L, 4 );
120 double x = luaL_checknumber( L, 1 );
121 double y = luaL_checknumber( L, 2 );
138 int x = luaL_checkinteger( L, 1 );
139 int y = luaL_checkinteger( L, 2 );
140 int w = luaL_checkinteger( L, 3 );
141 int h = luaL_checkinteger( L, 4 );
144 osd_setup( x, y, w, h );
159 int w = luaL_checkinteger( L, 1 );
160 int x = luaL_checkinteger( L, 2 );
161 int y = luaL_checkinteger( L, 3 );
179 double w = luaL_checkinteger( L, 1 );
180 double x = luaL_checkinteger( L, 2 );
181 double y = luaL_checkinteger( L, 3 );
184 omsg_position( x, y, w );
201 int id, circle, width, height;
204 circle = lua_toboolean( L, 1 );
205 width = luaL_checkinteger( L, 2 );
207 height = luaL_checkinteger( L, 3 );
213 lua_pushnumber( L,
id );
229 double x = luaL_checknumber( L, 1 );
230 double y = luaL_checknumber( L, 2 );
277 if ( lua_gettop( L ) > 0 )
278 b = lua_toboolean( L, 1 );
299 if ( lua_gettop( L ) > 0 )
300 b = lua_toboolean( L, 1 );
318 int top = luaL_checkinteger( L, 1 );
319 int right = luaL_checkinteger( L, 2 );
320 int bottom = luaL_checkinteger( L, 3 );
321 int left = luaL_checkinteger( L, 4 );
323 ovr_boundsSet( top, right, bottom, left );
int gui_radarInit(int circle, int w, int h)
Initializes the radar.
void gui_radarRender(double x, double y)
Renders the GUI radar.
void gui_mouseMoveEnable(int enable)
Enables the mouse movement callback.
void gui_mouseClickEnable(int enable)
Enables the mouse click callback.
void gui_messageInit(int width, int x, int y)
Initializes the message system.
void gui_targetPilotGFX(const glTexture *gfx)
Sets the pilot target GFX.
void gui_targetSpobGFX(const glTexture *gfx)
Sets the spob target GFX.
void gui_setViewport(double x, double y, double w, double h)
Sets the viewport.
void fps_setPos(double x, double y)
Sets the position to display the FPS.
Header file with generic functions and naev-specifics.
static int guiL_radarInit(lua_State *L)
Initializes the radar.
static int guiL_mouseMoveEnable(lua_State *L)
Enables mouse movement callback.
static int guiL_mesgInit(lua_State *L)
Sets up the message box from which the player receives input.
static int guiL_osdInit(lua_State *L)
Initializes the mission OSD (on-screen display).
int nlua_loadGUI(nlua_env env)
Loads the GUI library.
static int guiL_viewport(lua_State *L)
Lua bindings to interact with the GUI elements.
static int guiL_mouseClickEnable(lua_State *L)
Enables mouse clicking callback.
static int guiL_targetPilotGFX(lua_State *L)
Sets the Lua pilot target GFX.
static int guiL_setMapOverlayBounds(lua_State *L)
Sets map boundaries.
static int guiL_omsgInit(lua_State *L)
Sets the center of the omsg messages and width.
static int guiL_radarRender(lua_State *L)
Renders the radar.
static const luaL_Reg guiL_methods[]
static int guiL_fpsPos(lua_State *L)
Sets the position for the fps stuff.
static int guiL_targetSpobGFX(lua_State *L)
Sets the Lua spob target GFX.
glTexture * luaL_checktex(lua_State *L, int ind)
Gets texture at index or raises error if there is no texture at index.