File diff f81e14d2c9d5 → 49453d20bb94
journey_temple.lua
Show inline comments
 
@@ -266,64 +266,6 @@ dt_labyrinth = room {
 
    entered = function(s)
 
        s:update();
 
    end;
 
    ways_print = function(self, o)
 
        local nw, n, ne, w, e, sw, s, se;
 
        if (dt_labyrinth_map[dt_labyrinth.location].n) then
 
            n = stead.xref('N', dt_north);
 
        else
 
            n = 'N';
 
        end;
 
        if (dt_labyrinth_map[dt_labyrinth.location].ne) then
 
            ne = stead.xref('NE', dt_north_east);
 
        else
 
            ne = 'NE';
 
        end;
 
        if (dt_labyrinth_map[dt_labyrinth.location].e) then
 
            e = stead.xref('E', dt_east);
 
        else
 
            e = 'E';
 
        end;
 
        if (dt_labyrinth_map[dt_labyrinth.location].se) then
 
            se = stead.xref('SE', dt_south_east);
 
        else
 
            se = 'SE';
 
        end;
 
        if (dt_labyrinth_map[dt_labyrinth.location].s) then
 
            s = stead.xref('S', dt_south);
 
        else
 
            s = 'S';
 
        end;
 
        if (dt_labyrinth_map[dt_labyrinth.location].sw) then
 
            sw = stead.xref('SW', dt_south_west);
 
        else
 
            sw = 'SW';
 
        end;
 
        if (dt_labyrinth_map[dt_labyrinth.location].w) then
 
            w = stead.xref('W', dt_west);
 
        else
 
            w = 'W';
 
        end;
 
        if (dt_labyrinth_map[dt_labyrinth.location].nw) then
 
            nw = stead.xref('NW', dt_north_west);
 
        else
 
            nw = 'NW';
 
        end;
 
        
 
        local left = '35%';
 
        local right = '65%';
 
        local il = '^^';
 
        if theme.name() == '.mobile' then
 
            print('x');
 
            il = '^';
 
            left = '25%';
 
            right = '75%';
 
        end;
 
        
 
        return txttab(left, 'center') .. nw .. txttab('50%', 'center') .. n .. txttab(right, 'center') .. ne .. il 
 
            .. txttab(left, 'center') .. w .. txttab(right, 'center') .. e .. il 
 
            .. txttab(left, 'center') .. sw .. txttab('50%', 'center') .. s .. txttab(right, 'center') .. se .. '^'
 
            .. stead.xref(txtnb('В другое место'), dt_elsewhere) .. ' | '.. stead.xref(txtnb('Отойти от штурвала'), self.way[1]);
 
    end;
 
    update = function(s)
 
        move(submarine_leviathan, dt_labyrinth_map[dt_labyrinth.location].where);
 
    end;