diff options
author | Vasily_Makarov <danilka.pro@gmail.com> | 2011-06-11 00:17:52 +0400 |
---|---|---|
committer | Vasily_Makarov <danilka.pro@gmail.com> | 2011-06-11 00:17:52 +0400 |
commit | ce00f0c02e785db498e59d006251d98d3234e835 (patch) | |
tree | ee08ef1e8d92e3bb4fde98cb9952e8602cd3fabc /saedit/main.h | |
parent | a1cfce737e02f8a7ad29acbc8bfd55a6ee888bd0 (diff) | |
download | evol-tools-ce00f0c02e785db498e59d006251d98d3234e835.tar.gz evol-tools-ce00f0c02e785db498e59d006251d98d3234e835.tar.bz2 evol-tools-ce00f0c02e785db498e59d006251d98d3234e835.tar.xz evol-tools-ce00f0c02e785db498e59d006251d98d3234e835.zip |
saedit: Add paths loading
Diffstat (limited to 'saedit/main.h')
-rw-r--r-- | saedit/main.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/saedit/main.h b/saedit/main.h index 56ac08a..00ba08c 100644 --- a/saedit/main.h +++ b/saedit/main.h @@ -27,7 +27,7 @@ const gchar *ICON_FILE = "icon.svg"; const gchar *CONFIG_FILE = "/saedit/config.ini"; const gchar *FOLDER_POSTFIX = "/..."; const gchar *SLASH_SEPARATOR = "/"; -const gchar *SPRITES_PATH = "graphics/sprites/"; +const gchar *OPTION_SPRITES_DEFAULT = "graphics/sprites/"; typedef struct { @@ -44,6 +44,10 @@ typedef struct { static sprite_info *sprite_info_new(int index, int offsetX, int offsetY); typedef struct { + gchar *sprites; +} options; + +typedef struct { XMLNode *node; int offsetX; int offsetY; @@ -80,9 +84,9 @@ GdkPixbuf *icon = NULL; XMLNode *root = NULL; imageset_info *imageset = NULL; - sprite_info *current_sprite; guint running_animation = 0; +options *paths; static gboolean show_animation_by_sub_nodes (GList *sub_nodes); static gchar *markup_bold(gchar *str); @@ -119,3 +123,4 @@ static cairo_surface_t *get_grid_surface(int w, int h); static gboolean darea_expose_event(GtkWidget *widget, GdkEventExpose *event, gpointer data); static void load_config(); static void save_config_and_quit(); +static void load_options(); |