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

Added a small speak bubble to creatures that can talk

git-svn-id: http://svn.net-core.org/repos/t-engine4@4834 51575b47-30f0-44d4-a5cc-537603b46e54
parent efa73ca6
No related branches found
No related tags found
No related merge requests found
......@@ -535,6 +535,7 @@ function _M:defineDisplayCallback()
local f_friend = nil
local f_enemy = nil
local f_neutral = nil
local ichat = nil
self._mo:displayCallback(function(x, y, w, h, zoom, on_map)
-- Tactical info
......@@ -595,6 +596,16 @@ function _M:defineDisplayCallback()
end
end
-- Chat
if game.level and self.can_talk then
local map = game.level.map
if not ichat then
ichat = game.level.map.tilesTactic:get(nil, 0,0,0, 0,0,0, "speak_bubble.png")
end
ichat:toScreen(x + w - 8, y, 8, 8)
end
local e
for i = 1, #ps do
e = ps[i]
......
game/modules/tome/data/gfx/shockbolt/speak_bubble.png

260 B

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