diff --git a/src/player.c b/src/player.c index 0d5e280..f5fb256 100644 --- a/src/player.c +++ b/src/player.c @@ -1,10 +1,22 @@ #include <malloc.h> +#include <libxml/parser.h> + #include "main.h" #include "pilot.h" #include "log.h" #include "opengl.h" +#include "pack.h" #include "player.h" +#define XML_NODE_START 1 +#define XML_NODE_TEXT 3 + +#define XML_GUI_ID "GUIs" // XML section identifier. +#define XML_GUI_ID "gui" + +#define GUI_DATA "../dat/gui.xml" +#define GUI_GFX "../gfx/gui/" + #define POW2(x) ((x)*(x)) #define GFX_GUI_FRAME "../gfx/gui/frame.png" @@ -113,6 +125,7 @@ static Msg* msg_stack; // External. extern void pilot_render(Pilot* pilot); // Extern is in Pilot.* // Internal. +//TODO: Gui shit. void gui_renderPilot(Pilot* p); void gui_renderBar(Color* c, Vec2* p, Rect* r, double w); @@ -397,7 +410,6 @@ void input_setDefault(void) { input_setKeybind("target_nearest", KEYBIND_KEYBOARD, SDLK_r, 0); input_setKeybind("mapzoomin", KEYBIND_KEYBOARD, SDLK_UP, 0); input_setKeybind("mapzoomout", KEYBIND_KEYBOARD, SDLK_DOWN, 0); - } // Initialization/exit functions (does not assign keys).