vanilla-wow-addons – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | function Tetris_play_sound (stk) |
2 | --stk u = drehen |
||
3 | -- l = links |
||
4 | -- r = rechts |
||
5 | -- d = unten |
||
6 | -- timer = unten durch timer |
||
7 | -- tet = vier linien |
||
8 | -- dl = eine normale linie |
||
9 | -- go = game over |
||
10 | |||
11 | local sound = Tetris["options"]["sound"]; |
||
12 | if (sound == 1) then |
||
13 | if (stk == "u") then |
||
14 | PlaySoundFile("Interface\\AddOns\\Tetris\\sound\\turn.wav"); |
||
15 | end |
||
16 | if (stk == "l")or(stk == "r") then |
||
17 | PlaySoundFile("Interface\\AddOns\\Tetris\\sound\\move.wav"); |
||
18 | end |
||
19 | if (stk == "d")or(stk == "timer") then |
||
20 | PlaySoundFile("Interface\\AddOns\\Tetris\\sound\\down.wav"); |
||
21 | end |
||
22 | if (stk == "dl") then |
||
23 | PlaySoundFile("Interface\\AddOns\\Tetris\\sound\\line.wav"); |
||
24 | end |
||
25 | if (stk == "tet") then |
||
26 | PlaySoundFile("Interface\\AddOns\\Tetris\\sound\\tetris.wav"); |
||
27 | end |
||
28 | if (stk == "go") then |
||
29 | PlaySoundFile("Interface\\AddOns\\Tetris\\sound\\go.wav"); |
||
30 | end |
||
31 | end |
||
32 | end |
||
33 | |||
34 | function Tetris_play_musik (x) |
||
35 | --x stop = musik stoppen |
||
36 | -- game = gamemusik abspielen |
||
37 | -- menu = menumusik abspielen |
||
38 | local musik = Tetris["options"]["musik"]; |
||
39 | local m_track = Tetris["options"]["musik-track"]; |
||
40 | --track 1 = random |
||
41 | --track 2 = gb a |
||
42 | --track 3 = gb b |
||
43 | --track 4 = gb c |
||
44 | --track 5 = musical |
||
45 | --track 6 = remix |
||
46 | if (musik == 1) then |
||
47 | if (x == "stop") then |
||
48 | StopMusic(); |
||
49 | end |
||
50 | if (x == "game") then |
||
51 | if (m_track == 1) then |
||
52 | local track = (math.random(5))+1; |
||
53 | PlayMusic("Interface\\AddOns\\Tetris\\musik\\"..track..".mp3"); |
||
54 | else |
||
55 | PlayMusic("Interface\\AddOns\\Tetris\\musik\\"..m_track..".mp3"); |
||
56 | end |
||
57 | end |
||
58 | if (x == "menu" ) then |
||
59 | PlayMusic("Interface\\AddOns\\Tetris\\musik\\0.mp3"); |
||
60 | end |
||
61 | end |
||
62 | end |