Changeset - 692009c11d20
[Not reviewed]
default
13 3 16
Silverwing - 5 years ago 2019-06-09 19:51:48

Iraaphaanotrr temple graphics
32 files changed with 63 insertions and 18 deletions:
0 comments (0 inline, 0 general)
atlantis_iraa.lua
Show inline comments
 
@@ -1313,14 +1313,10 @@ iraa_temple_button_ctr = function(nam, i
 
        nam = nam;
 
        seen_level = 1;
 
        dsc = function(s)
 
            local im = "images/dyp_bg.png";
 
            for i = 1, #iraa_temple_hidden_hall.buttons[index] do
 
                im = im .. ";images/dyp_" .. tostring(iraa_temple_hidden_hall.buttons[index][i]) .. ".png";
 
            end;
 
            if (iraa_temple_hidden_hall.pressed_buttons[index]) then
 
                return "{Рычаг с символами " .. img(im) .."} включен.^";
 
                return "{Кнопка номер " .. tostring(index) .." включенa.}^";
 
            else
 
                return "{Рычаг с символами " .. img(im) .."} выключен.^";
 
                return "{Кнопка номер " .. tostring(index) .." выключена.}^";
 
            end;
 
        end;
 
        act = function(s)
 
@@ -1349,19 +1345,62 @@ iraa_temple_hidden_hall = room {
 
        {1, 3, 7, 8};
 
        {3, 7, 9, 10, 11};
 
    };
 
    buttons_coords = {
 
        '25,188';
 
        '62,188';
 
        '99,188';
 
        '136,188';
 
        '175,188';
 
        '212,188';
 
        '249,188';
 
        '286,188';
 
    };
 
    buttons_click_coords = {
 
        {10, 40, 173, 203};
 
        {47, 77, 173, 203};
 
        {84, 114, 173, 203};
 
        {121, 151, 173, 203};
 
        {160, 190, 173, 203};
 
        {197, 227, 173, 203};
 
        {234, 264, 173, 203};
 
        {271, 301, 173, 203};
 
    };
 
    pic = function(s)
 
        local pic = 'images/dyp_bg.png';
 
        local cnt = 0;
 
        for i = 1, #s.active_parts do
 
            if (s.active_parts[i]) then
 
                cnt = cnt + 1;
 
                pic = pic .. ";images/dyp_" .. tostring(i) .. ".png";
 
        local pic;
 
        if s.solved then
 
            pic = 'images/iraa_temple_unlocked_room.png';
 
        else
 
            pic = 'images/iraa_temple_locked_room.png';
 
        end;
 

	
 
        for i = 1, #s.pressed_buttons do
 
            if s.pressed_buttons[i] then
 
                pic = pic .. ';images/iraa_temple_button_on.png@' .. s.buttons_coords[i];
 
            else
 
                pic = pic .. ';images/iraa_temple_button_off.png@' .. s.buttons_coords[i];
 
            end;
 
        end;
 
        if (cnt > 0) then
 
            return pic;
 
        else
 
            return nil;
 

	
 
        for i = 1, #s.active_parts do
 
            if s.active_parts[i] then
 
                pic = pic .. ";images/iraa_temple_lines_" .. tostring(i) .. ".png";
 
            end;
 
        end;
 

	
 
        return pic;
 
    end;
 
    click = function(s, x, y)
 
        if y >= 173 and y <= 203 then
 
            for i = 1, #s.buttons_click_coords do
 
                if s.buttons_click_coords[i][1] <= x and x <= s.buttons_click_coords[i][2] then
 

	
 
                    if iraa_temple_hidden_hall:check(i) then
 
                        return [[Вы нажимаете кнопку и рисунок на полу комнаты меняется. Металлические плиты в стенах комнаты поднимаются, открывая проходы вниз и наверх. ]];
 
                    else
 
                        return [[Вы переключаете кнопку и рисунок на полу комнаты меняется. ]];
 
                    end;
 
                end;
 
            end;
 
        end;
 
    end;
 
    nam = "Храм Ираафаанотра, потайной зал";
images/dyp_1.png
Show inline comments
 
deleted file
 
binary diff not shown
Show images
images/dyp_10.png
Show inline comments
 
deleted file
 
binary diff not shown
Show images
images/dyp_11.png
Show inline comments
 
deleted file
 
binary diff not shown
Show images
images/dyp_12.png
Show inline comments
 
deleted file
 
binary diff not shown
Show images
images/dyp_2.png
Show inline comments
 
deleted file
 
binary diff not shown
Show images
images/dyp_3.png
Show inline comments
 
deleted file
 
binary diff not shown
Show images
images/dyp_4.png
Show inline comments
 
deleted file
 
binary diff not shown
Show images
images/dyp_5.png
Show inline comments
 
deleted file
 
binary diff not shown
Show images
images/dyp_6.png
Show inline comments
 
deleted file
 
binary diff not shown
Show images
images/dyp_7.png
Show inline comments
 
deleted file
 
binary diff not shown
Show images
images/dyp_8.png
Show inline comments
 
deleted file
 
binary diff not shown
Show images
images/dyp_9.png
Show inline comments
 
deleted file
 
binary diff not shown
Show images
images/dyp_bg.png
Show inline comments
 
deleted file
 
binary diff not shown
Show images
images/iraa_temple_button_off.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
images/iraa_temple_button_on.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
images/iraa_temple_lines_1.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
images/iraa_temple_lines_10.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
images/iraa_temple_lines_11.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
images/iraa_temple_lines_12.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
images/iraa_temple_lines_2.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
images/iraa_temple_lines_3.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
images/iraa_temple_lines_4.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
images/iraa_temple_lines_5.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
images/iraa_temple_lines_6.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
images/iraa_temple_lines_7.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
images/iraa_temple_lines_8.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
images/iraa_temple_lines_9.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
images/iraa_temple_locked_room.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
images/iraa_temple_unlocked_room.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
startup.lua
Show inline comments
 
@@ -220,4 +220,5 @@ function init()
 
    ---game init
 
    pl.where = intro;
 
    ---debug
 
    pl.where = iraa_temple_hidden_hall;
 
end;
theme.ini
Show inline comments
 
@@ -8,6 +8,11 @@ win.y = 4
 
win.w = 556
 
win.h = 592
 

	
 
win.up.x = 580
 
win.up.y = 0
 
win.down.x = 580
 
win.down.y = 552
 

	
 
win.ways.mode = bottom
 
win.col.fg = #401000
 
win.col.link = #b02c00
 
@@ -29,8 +34,8 @@ menu.col.link = #301810
 
menu.col.alink = #605040
 
menu.col.fg = #151018
 
menu.col.bg = #EFDFCF
 
menu.col.alpha = 140
 
menu.col.border = 401000
 
menu.col.alpha = 200
 
menu.col.border = #401000
 
menu.bw = 1
 
menu.button.x = 596
 
menu.button.y = 577
0 comments (0 inline, 0 general)