vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 --namesliste der minigames (in übersetzter form)
2 function mgames_minigames()
3 local minigamesliste = {
4 "WoWonid",
5 "Sweep",
6 "Goblin Minesweeper",
7 "Tetris",
8 "Solitaire",
9 "Sudoku",
10 "Gems",
11 "MiniGames Multiplayer (Cosmos)",
12 }
13 mgames_minigamesliste = {}
14 for i=1, table.getn(minigamesliste) do
15 if (mgames_minigames_addonloadedliste[i]) then
16 table.insert(mgames_minigamesliste, minigamesliste[i])
17 else
18 table.insert(mgames_minigamesliste, "|cFFFF0000"..minigamesliste[i].."|r")
19 end
20 end
21 end
22  
23 --addon-namesliste der minigames (programmname der addons)
24 function mgames_minigames_addon()
25 mgames_minigames_addonliste = {
26 "WoWonid",
27 "Sweep",
28 "Minesweeper",
29 "Tetris",
30 "Solitaire",
31 "Sudoku",
32 "Gems",
33 "MiniGames",
34 }
35 end
36  
37 function mgames_game_Go()
38 if (mgames_minigames_addonloadedliste[MinigamesUI.game]) then
39 if (MinigamesUI.game==1) then
40 wowon_cmd(msg)
41 elseif (MinigamesUI.game==2) then
42 Sweep_SlashCommand("")
43 elseif (MinigamesUI.game==3) then
44 Minesweeper_SlashHandler("")
45 elseif (MinigamesUI.game==4) then
46 Tetris_SlashCommand("")
47 elseif (MinigamesUI.game==5) then
48 Solitaire_SlashHandler("")
49 elseif (MinigamesUI.game==6) then
50 Sudoku_SlashCommand("")
51 elseif (MinigamesUI.game==7) then
52 Gems_SlashCommand("")
53 else
54 ShowUIPanel(GamesListFrame)
55 end
56 end
57 end
58  
59 function mgames_credit_text()
60  
61 local credits = {
62  
63 [1] = { -- wowonid
64 "0.3", -- version
65 "Rewad", -- autor
66 "/wowon", -- slashcommand
67 "Timex", -- dependencies
68 "A Arcanoid Clone for WoW", -- info
69 },
70  
71 [2] = { --sweep
72 "1.0", -- version
73 "Vallerius", -- autor
74 "/sweep", -- slashcommand
75 "none", -- dependencies
76 "Simple Mineswweper Clone", -- info
77 },
78  
79 [3] = { -- goblin minesweeper
80 "1.0", -- version
81 "Necrophob", -- autor
82 "/minesweeper", -- slashcommand
83 "none", -- dependencies
84 "Minesweeper Clone with Goblin feeling", -- info
85 },
86  
87 [4] = { -- tetris
88 "1.2", -- version
89 "Rewad", -- autor
90 "/tetris", -- slashcommand
91 "Timex", -- dependencies
92 "Nice Tetris Clone with sound and music", -- info
93 },
94  
95 [5] = { -- solitar
96 "1.2", -- version
97 "Necrophob", -- autor
98 "/sol", -- slashcommand
99 "none", -- dependencies
100 "The classic Solitaire card-game", -- info
101 },
102  
103 [6] = { -- sudoku
104 "1.2", -- version
105 "Fricks", -- autor
106 "/sudo", -- slashcommand
107 "none", -- dependencies
108 "Sudoku for WoW, learn mathematics ;)", -- info
109 },
110  
111 [7] = { -- gems
112 "1.6", -- version
113 "Vallerius", -- autor
114 "/gems", -- slashcommand
115 "none", -- dependencies
116 "The Gems minigame from EQ", -- info
117 },
118  
119 [8] = { -- cosmos minigames
120 "none", -- version
121 "www.cosmosui.org", -- autor
122 "none", -- slashcommand
123 "Chronos, Sea", -- dependencies
124 "The Cosmos multiplayer minigames\nTicTacToe, Chess and more ", -- info
125 },
126  
127 }
128 local e = "\n"
129 local a = MinigamesUI.game
130 local load = "|cFFFF0000Note: Addon not active|r"..e
131 if (mgames_minigames_addonloadedliste[a]) then
132 load = e
133 end
134  
135 return e..mgames_minigamesliste[a]..e..load..e.."Version: "..credits[a][1]..e.."Author: "..credits[a][2]..e.."SlashCommand: "..credits[a][3]..e.."Dependencies: "..credits[a][4]..e..e.."About the game:"..e..credits[a][5]
136  
137 end