vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 function Tetris_AF_b_click ()
2 local button = this:GetName();
3 if (button == "Tetris_AF_b_ja") then
4 Tetris_newgame ();
5 Tetris_AF_Toggle();
6 end
7 if (button == "Tetris_AF_b_nein") then
8 Tetris_AF_Toggle();
9 Tetris_MF_Toggle();
10 end
11 end
12  
13 function Tetris_AF_Toggle()
14 if(Tetris_AF:IsVisible()) then
15 Tetris_AF:Hide();
16 else
17 local ingame = Tetris["ingame"];
18 if (ingame == 0) then
19 Tetris_newgame ();
20 else
21 Tetris_AF:Show();
22 end
23  
24 end
25 end