1 package org
.sevenchan
.dongs
.screens
3 import org
.sevenchan
.dongs
.enchantment
.Enchantment
;
4 import org
.sevenchan
.dongs
.Screen;
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;
22 this.setButton
(NEXT_BUTTON
, "Next");
25 override public function processButtonPress
(id
:int):Boolean
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>";
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>";