44 map_r map right
45 map_c map center player
46 to_a_keywin toggle view of available keybindings
+46 to_inv toggle inventory window
265 to_a_keywin
266 to_mapwin
267 to_infowin
-268 to_logwin
-269 to_g_keywin
-270 to_wg_keywin
-271 to_wk_keywin
+268 to_inv
+269 to_logwin
+270 to_g_keywin
+271 to_wg_keywin
+272 to_wk_keywin
119 winconf
62 cyc_win_f
60 cyc_win_b
-kmil
-m
\ No newline at end of file
+kmicl
+m
{
exit_err(toggle_window(win_meta, win_info), world, err_toggle);
}
+ else if (key == get_available_keycode_to_action(world, "to_inv"))
+ {
+ uint8_t test = toggle_window(win_meta, get_win_by_id(world, 'c'));
+ exit_err(test, world, err_toggle);
+ }
else if (key == get_available_keycode_to_action(world, "to_logwin"))
{
exit_err(toggle_window(win_meta, win_log), world, err_toggle);
+extern void draw_win_inventory(struct Win * win)
+{
+ mvwaddstr(win->frame.curses_win, 0, 0, "(empty)");
+}
+
+
+
extern void draw_win_available_keybindings(struct Win * win)
{
struct World * world = (struct World *) win->data;
extern void draw_win_log(struct Win * win);
extern void draw_win_map(struct Win * win);
extern void draw_win_info(struct Win * win);
+extern void draw_win_inventory(struct Win * win);
extern void draw_win_available_keybindings(struct Win * win);
extern void draw_win_keybindings_global(struct Win * win);
extern void draw_win_keybindings_winconf_geometry(struct Win * win);
#include "main.h" /* for World struct */
#include "draw_wins.h" /* for draw_win_map(), draw_win_info(), draw_win_og(),
* draw_win_available_keybindings(),
- * draw_win_keybindings_global(),
+ * draw_win_keybindings_global(), draw_win_inventory(),
* draw_win_keybindings_winconf_geometry(),
* draw_win_keybindings_winconf_keybindings(),
* draw_winconf_geometry(), draw_winconf_keybindings()
static void * get_drawfunc_by_char(char c)
{
+ if ('c' == c)
+ {
+ return draw_win_inventory;
+ }
if ('i' == c)
{
return draw_win_info;
{
return draw_win_log;
}
- else if ('m' == c)
- {
- return draw_win_map;
- }
else if ('k' == c)
{
return draw_win_available_keybindings;
}
+ else if ('m' == c)
+ {
+ return draw_win_map;
+ }
else if ('0' == c)
{
return draw_win_keybindings_global;