1
0
Fork 0
mirror of https://gitlab.com/Oreolek/duel.git synced 2024-06-30 13:55:10 +03:00

Исправление проблемы #4 (телефон)

This commit is contained in:
Alexander Yakovlev 2017-03-31 16:42:37 +07:00
parent d8ba5e6f73
commit 939726bb42
2 changed files with 8 additions and 8 deletions

View file

@ -32,7 +32,13 @@ init = function ()
end end
}, me()) }, me())
place(menu { place(menu {
nam = "Телефон", nam = 'телефон',
disp = function()
if char.call ~= nil then
return fmt.b("Телефон")
end
return "Телефон"
end,
menu = function() menu = function()
walk('inventory') walk('inventory')
end end

8
ui.lua
View file

@ -126,13 +126,7 @@ dlg {
dlg { dlg {
nam = 'inventory', nam = 'inventory',
disp = function() disp = "Телефон",
-- TODO почему-то не выделяет жирным
if char.call ~= nil then
return fmt.b("Телефон")
end
return "Телефон"
end,
noinv = true, noinv = true,
enter = function() enter = function()
local walkto = nil local walkto = nil