1
0
Fork 0
mirror of https://gitlab.com/Oreolek/duel.git synced 2024-06-23 18:40:54 +03:00
duel/ui.lua

93 lines
2.3 KiB
Lua
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

obj {
nam = 'back',
act = function()
return walkout()
end
}
local markers = {
chos = "626,666",
abandoned = "264,213",
exit_west = "373,540",
pavels = "168,609",
houseclosed = "348,692",
exit_north = "448,157",
intersection = "555,550",
town = "543,462",
factory = "703,310",
cathedral = "703,310"
}
room {
nam = 'map',
disp = "Карта",
hideinv = true,
enter = function (here, from)
char.lastroom = from.nam
end,
pic = function()
local map = 'images/satellite.jpg'
if markers[char.lastroom] then
map = map .. ';images/marker.png@' .. markers[char.lastroom]
end
return map
end,
decor = [[
Вы сверяетесь с картой.^^
{back|Назад}
]],
obj = {'back'}
}
dlg {
nam = 'quests',
disp = "Квесты",
hideinv = true,
decor = [[
Вы вспоминаете обо всём, что нужно сделать.^^
]],
obj = {{
{
always = true,
cond = function()
return char.act == nil
end,
'Нет активных квестов',
'Пройдите чуть подальше по сюжету и возвращайтесь.'
},
{
always = true,
cond = function()
return char.quests.abandoned == 1
end,
'Бесхозные роботы',
[[Мужчина в Клубе Памяти интересуется роботами на северной ферме.
Их хозяин умер, и теперь ценные работники не подчиняются никому.
Он хочет, чтобы вы настроили роботов на его голос.]]
},
{
always = true,
cond = function()
return char.quests.main == 1
end,
'Найти дом Павла',
'Вы должны найти дом Павла при помощи своего проводника и попросить у него доступ в мастерскую.'
},
{
always = true,
'Назад',
function() walkout() end,
},
}}
}
room {
nam = 'inventory',
disp = "Инвентарь",
hideinv = true,
decor = function()
local dsc = 'Пока что ваши карманы пусты.'
return dsc..'^^{back|Назад}'
end,
obj = {'back'}
}