Fix hair, dick around with new game screen.
[18plus-7leafadventure.git] / src / org / sevenchan / dongs / Screen.as
blob3222327d2eb710ba6afa0e87ed048d4f70a3e470
1 package org.sevenchan.dongs
3 import org.sevenchan.AdventureController;
4 /**
5 * ...
6 * @author Harbinger
7 */
8 public class Screen
10 public var main:AdventureController;
11 private var buttons:Array = [
12 "", "", "", "", "", "",
13 "", "", "", "", "", ""];
14 public const NEXT_BUTTON:int = 0;
15 public var lustCost:Number = 0.0;
16 public var newGameButton:Boolean = false;
17 public var loadOrSaveButton:Boolean = true;
18 public var showLoadOrSaveButton:Boolean = true;
19 public var importGameButton:Boolean = false;
20 public var exportGameButton:Boolean = true;
21 public var debugMenuButton:Boolean = true;
22 public var appearanceButton:Boolean = true;
23 /**
24 * [{id,String},...]
25 * @return
27 public function getButtons():Array {
28 return buttons;
30 public function clearButtons():void {
31 buttons = [];
32 for (var i:int = 0; i < 12; i++) {
33 buttons[i] = "";
36 public function setButton(id:int, label:String):void {
37 buttons[id] = label;
39 public function setMain(main:AdventureController):void {
40 this.main = main;
42 public function updateScreen():void {
43 main.updateScreen(this);
45 public function getScreenText():String {
46 return "[WIP]";
50 public function processButtonPress(id:int):Boolean
52 if (main == null) {
53 main = Main.main;
55 if (id == -1) {
56 updateScreen()
57 return false;
59 return true;