Fix hair, dick around with new game screen.
[18plus-7leafadventure.git] / src / org / sevenchan / dongs / screens / DebugScreen.as
blobd21c30a237a7fa12aa8c2f38a41c77fa48b1a2ca
1 package org.sevenchan.dongs.screens
3 import com.adobe.serialization.json.JSONEncoder;
4 import org.sevenchan.AdventureController;
5 import org.sevenchan.dongs.Screen;
7 /**
8 * ...
9 * @author Harbinger
11 public class DebugScreen extends Screen
13 private static var dbgStats:Boolean = false;
14 private var text:String = "";
15 private var act:String = "main";
16 public function DebugScreen()
18 clearButtons();
21 override public function processButtonPress(id:int):Boolean
23 clearButtons();
24 if (act == "main") {
25 setButton(0, "EXIT");
26 if(main.statHP!=null)
27 setButton(1, "dbgStats:" + (dbgStats?"1":"0"));
28 setButton(2, "SuperStore");
29 setButton(3, "BodyParts");
30 setButton(4, "Creatures");
31 setButton(5, "MoreGold");
32 //var enc:JSONEncoder = new JSONEncoder(main.player);
33 text = "<h2>DEBUG MENU</h2>";
34 switch(id) {
35 case -1:
36 updateScreen();
37 break;
38 case 0: // EXIT
39 return true;
40 case 1:
41 dbgStats = !dbgStats;
42 main.setCheatMode(dbgStats);
43 text = "<h2>Stat Modifiers Active</h2><p>You dirty fucking cheater.</p>";
44 updateScreen();
45 return false;
46 break;
47 case 2: // Super Store (Free shit)
48 SuperStoreScreen.push();
49 return true;
50 updateScreen();
51 return false;
52 break;
53 case 3: // BodyParts (Select body parts from body part pool)
54 main.showBodyPartSelector(true);
55 updateScreen();
56 return false;
57 break;
58 case 4: // Creatures
59 main.showCreatureViewer(true);
60 updateScreen();
61 return false;
62 break;
63 case 5: // MoreGold
64 main.player.gold += 1000;
65 updateScreen();
66 return false;
67 break;
71 updateScreen();
72 return false;
75 override public function getScreenText():String
77 return text;