| 1 |
--------------------------------------------------------------------- |
| 2 |
-- This file is part of Freedroid |
| 3 |
-- |
| 4 |
-- Freedroid is free software; you can redistribute it and/or modify |
| 5 |
-- it under the terms of the GNU General Public License as published by |
| 6 |
-- the Free Software Foundation; either version 2 of the License, or |
| 7 |
-- (at your option) any later version. |
| 8 |
-- |
| 9 |
-- Freedroid is distributed in the hope that it will be useful, |
| 10 |
-- but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 |
-- GNU General Public License for more details. |
| 13 |
-- |
| 14 |
-- You should have received a copy of the GNU General Public License |
| 15 |
-- along with Freedroid; see the file COPYING. If not, write to the |
| 16 |
-- Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 17 |
-- MA 02111-1307 USA |
| 18 |
---------------------------------------------------------------------- |
| 19 |
|
| 20 |
local Npc = FDrpg.get_npc() |
| 21 |
local Tux = FDrpg.get_tux() |
| 22 |
|
| 23 |
return { |
| 24 |
EveryTime = function() |
| 25 |
play_sound("effects/Menu_Item_Deselected_Sound_0.ogg") |
| 26 |
Npc:says(_"[b][OK][/b] Waking up from sleep mode...", "NO_WAIT") |
| 27 |
Npc:says(_"[b][OK][/b] Obtaining ware table...", "NO_WAIT") |
| 28 |
Npc:says(_"[b][OK][/b] Loading graphical user interface...", "NO_WAIT") |
| 29 |
Npc:says(_"[b][OK][/b] Preparing trade...", "NO_WAIT") |
| 30 |
trade_with("Vending-Machine") |
| 31 |
Npc:says(_"Trade done.", "NO_WAIT") |
| 32 |
Npc:says(_"[b][OK][/b] Shutting down graphical user interface...", "NO_WAIT") |
| 33 |
Npc:says(_"[b][OK][/b] Entering sleep mode...", "NO_WAIT") |
| 34 |
end_dialog() |
| 35 |
play_sound("effects/Menu_Item_Selected_Sound_1.ogg") -- there is no node 99 selectable so just play this here |
| 36 |
end, |
| 37 |
|
| 38 |
{ |
| 39 |
id = "node99", |
| 40 |
text = _"Exit", |
| 41 |
code = function() |
| 42 |
-- play_sound("effects/Menu_Item_Selected_Sound_1.ogg") |
| 43 |
end_dialog() |
| 44 |
end, |
| 45 |
}, |
| 46 |
} |