diff --git a/stealth.lua b/stealth.lua --- a/stealth.lua +++ b/stealth.lua @@ -219,63 +219,6 @@ stealthroom = function(tab) end); }; - tab.ways_print = function(s, o) - local n, e, sth, w; - - if isDisabled(s.way[1]) then - n = 'N'; - else - n = stead.xref('N', s.way[1]); - end; - if isDisabled(s.way[2]) then - sth = 'S'; - else - sth = stead.xref('S', s.way[2]); - end; - if isDisabled(s.way[3]) then - w = 'W'; - else - w = stead.xref('W', s.way[3]); - end; - if isDisabled(s.way[3]) then - e = 'E'; - else - e = stead.xref('E', s.way[4]); - end; - - local left = '45%'; - local right = '55%'; - local il = '^'; - if theme.name() == '.mobile' then - print('x'); - left = '40%'; - right = '60%'; - end; - - local wait; - if isDisabled(s.way[5]) then - wait = txtnb(stead.dispof(s.way[5])); - else - wait = stead.xref(txtnb(stead.dispof(s.way[5])), s.way[5]); - end; - local hide; - if isDisabled(s.way[6]) then - hide = txtnb(stead.dispof(s.way[6])); - else - hide = stead.xref(txtnb(stead.dispof(s.way[6])), s.way[6]); - end; - local unhide; - if isDisabled(s.way[7]) then - unhide = txtnb(stead.dispof(s.way[7])); - else - unhide = stead.xref(txtnb(stead.dispof(s.way[7])), s.way[7]); - end; - - return txttab('50%', 'center') .. n .. il - .. txttab(left, 'center') .. w .. txttab(right, 'center') .. e .. il - .. txttab('50%', 'center') .. sth .. '^' .. wait .. ' | '.. hide .. ' | '.. unhide; - end; - rm = room(tab); return rm;