Fix hair, dick around with new game screen.
[18plus-7leafadventure.git] / src / org / sevenchan / dongs / screens / AppearanceScreen.as
blob2ec99a46e182193d429a24b4f835e6b6961a398d
1 package org.sevenchan.dongs.screens
3 import org.sevenchan.dongs.enchantment.Enchantment;
4 import org.sevenchan.dongs.Screen;
5 /**
6 * ...
7 * @author Harbinger
8 */
9 public class AppearanceScreen extends Screen
12 public function AppearanceScreen()
14 this.appearanceButton = true;
15 this.debugMenuButton = true;
16 this.exportGameButton = true;
17 this.loadOrSaveButton = true;
18 this.newGameButton = false;
19 this.importGameButton = false;
21 clearButtons();
22 this.setButton(NEXT_BUTTON, "Next");
25 override public function processButtonPress(id:int):Boolean
27 if (id == -1) {
28 updateScreen()
29 return false;
31 return true;
34 override public function getScreenText():String
36 var txt:String = main.player.getDescription();
37 trace(main.player.enchantments);
38 if(MathUtils.lengthOf(main.player.enchantments)) {
39 txt += "<h2>Enchantments/Effects</h2><ul>";
40 var i:int = 0;
41 for (var e:String in main.player.enchantments) {
42 var ench:Enchantment = main.player.enchantments[e];
43 txt += "<li><b>" +ench.getName() + "</b> - " + ench.getDescr() + "</li>";
45 txt += "</ul>";
47 return txt;