File diff 55916cd3c1a0 → f81e14d2c9d5
stealth.lua
Show inline comments
 
@@ -11,6 +11,7 @@ function getDirName(dir)
 
end;
 

	
 
stealthroom = function(tab)
 
    local rm;
 
    tab.nolamp = true;
 
    tab.pic = function(s)
 
        local pl_y = math.floor(tonumber(s.pos) / 10);
 
@@ -217,8 +218,65 @@ stealthroom = function(tab)
 
            return rm;
 
        end);
 
    };
 

	
 
    local rm = room(tab);
 
    
 
    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;
 
end;
 
\ No newline at end of file