diff --git a/game/modules/tome/class/Game.lua b/game/modules/tome/class/Game.lua index 89ebd68bff99b75726a4c3a35a9b57255103bfc9..ec6db78fc134bd7a38b3106149c8de0ef2653bf9 100644 --- a/game/modules/tome/class/Game.lua +++ b/game/modules/tome/class/Game.lua @@ -881,11 +881,15 @@ end local _talents_icon, _talents_icon_w, _talents_icon_h = core.display.loadImage("/data/gfx/ui/talents-icon.png"):glTexture() local _actors_icon, _actors_icon_w, _actors_icon_h = core.display.loadImage("/data/gfx/ui/actors-icon.png"):glTexture() local _main_menu_icon, _main_menu_icon_w, _main_menu_icon_h = core.display.loadImage("/data/gfx/ui/main-menu-icon.png"):glTexture() +local _inventory_icon, _inventory_icon_w, _inventory_icon_h = core.display.loadImage("/data/gfx/ui/inventory-icon.png"):glTexture() +local _charsheet_icon, _charsheet_icon_w, _charsheet_icon_h = core.display.loadImage("/data/gfx/ui/charsheet-icon.png"):glTexture() function _M:displayUIIcons() local x, y = self.icons.display_x, self.icons.display_y _talents_icon:toScreenFull(x, y, 12, 12, _talents_icon_w, _talents_icon_h) y = y + 12 _actors_icon:toScreenFull(x, y, 12, 12, _actors_icon_w, _actors_icon_h) y = y + 12 + _inventory_icon:toScreenFull(x, y, 12, 12, _inventory_icon_w, _inventory_icon_h) y = y + 12 + _charsheet_icon:toScreenFull(x, y, 12, 12, _charsheet_icon_w, _charsheet_icon_h) y = y + 12 _main_menu_icon:toScreenFull(x, y, 12, 12, _main_menu_icon_w, _main_menu_icon_h) y = y + 12 end @@ -897,6 +901,10 @@ function _M:clickIcon(bx, by) self.show_npc_list = true self.player.changed = true elseif by < 36 then + self.key:triggerVirtual("SHOW_INVENTORY") + elseif by < 48 then + self.key:triggerVirtual("SHOW_CHARACTER_SHEET") + elseif by < 50 then self.key:triggerVirtual("EXIT") end end @@ -907,6 +915,10 @@ function _M:mouseIcon(bx, by) elseif by < 24 then self.tooltip:displayAtMap(nil, nil, self.w, self.h, "Display creatures") elseif by < 36 then + self.tooltip:displayAtMap(nil, nil, self.w, self.h, "Inventory") + elseif by < 48 then + self.tooltip:displayAtMap(nil, nil, self.w, self.h, "Character Sheet") + elseif by < 50 then self.tooltip:displayAtMap(nil, nil, self.w, self.h, "Main menu") end end diff --git a/game/modules/tome/data/gfx/ui/charsheet-icon.png b/game/modules/tome/data/gfx/ui/charsheet-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..ee67dcc2d3ed0d103d91f8d6d694b12cad8f5cb8 Binary files /dev/null and b/game/modules/tome/data/gfx/ui/charsheet-icon.png differ diff --git a/game/modules/tome/data/gfx/ui/inventory-icon.png b/game/modules/tome/data/gfx/ui/inventory-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..afe9bfd7938f8843252604ef4d08fd8748568327 Binary files /dev/null and b/game/modules/tome/data/gfx/ui/inventory-icon.png differ diff --git a/game/modules/tome/data/gfx/ui/message-log.png b/game/modules/tome/data/gfx/ui/message-log.png index f0abed3aaefa3b41f188114e5663152d403c7889..11019a0f68ce405a17c94d7c541389682b49dc31 100644 Binary files a/game/modules/tome/data/gfx/ui/message-log.png and b/game/modules/tome/data/gfx/ui/message-log.png differ