Skip to content
Snippets Groups Projects
Commit 11958e37 authored by dg's avatar dg
Browse files

fix

git-svn-id: http://svn.net-core.org/repos/t-engine4@1226 51575b47-30f0-44d4-a5cc-537603b46e54
parent 4260d394
No related branches found
No related tags found
No related merge requests found
......@@ -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
game/modules/tome/data/gfx/ui/charsheet-icon.png

292 B

game/modules/tome/data/gfx/ui/inventory-icon.png

307 B

game/modules/tome/data/gfx/ui/message-log.png

19 KiB | W: | H:

game/modules/tome/data/gfx/ui/message-log.png

9.77 KiB | W: | H:

game/modules/tome/data/gfx/ui/message-log.png
game/modules/tome/data/gfx/ui/message-log.png
game/modules/tome/data/gfx/ui/message-log.png
game/modules/tome/data/gfx/ui/message-log.png
  • 2-up
  • Swipe
  • Onion skin
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment