cleaned up formatting:
- removed trailing whitespace - changed all leading whitespace to tabs - removed IDE created author comments
This commit is contained in:
@@ -33,20 +33,20 @@ import com.watabou.noosa.BitmapTextMultiline;
|
||||
|
||||
public class WndSadGhost extends Window {
|
||||
|
||||
private static final String TXT_RAT =
|
||||
private static final String TXT_RAT =
|
||||
"Thank you, that horrid rat is slain and I can finally rest..." +
|
||||
"I wonder what twisted magic created such a foul creature...\n\n";
|
||||
private static final String TXT_GNOLL =
|
||||
"Thank you, that scheming gnoll is slain and I can finally rest..." +
|
||||
"I wonder what twisted magic made it so smart...\n\n";
|
||||
private static final String TXT_CRAB =
|
||||
"Thank you, that giant crab is slain and I can finally rest..." +
|
||||
"I wonder what twisted magic allowed it to live so long...\n\n";
|
||||
private static final String TXT_GIVEITEM=
|
||||
"Please take one of these items, they are useless to me now... " +
|
||||
"Maybe they will help you in your journey...\n\n" +
|
||||
"Also... There is an item lost in this dungeon that is very dear to me..." +
|
||||
"If you ever... find my... rose......";
|
||||
"I wonder what twisted magic created such a foul creature...\n\n";
|
||||
private static final String TXT_GNOLL =
|
||||
"Thank you, that scheming gnoll is slain and I can finally rest..." +
|
||||
"I wonder what twisted magic made it so smart...\n\n";
|
||||
private static final String TXT_CRAB =
|
||||
"Thank you, that giant crab is slain and I can finally rest..." +
|
||||
"I wonder what twisted magic allowed it to live so long...\n\n";
|
||||
private static final String TXT_GIVEITEM=
|
||||
"Please take one of these items, they are useless to me now... " +
|
||||
"Maybe they will help you in your journey...\n\n" +
|
||||
"Also... There is an item lost in this dungeon that is very dear to me..." +
|
||||
"If you ever... find my... rose......";
|
||||
private static final String TXT_WEAPON = "Ghost's weapon";
|
||||
private static final String TXT_ARMOR = "Ghost's armor";
|
||||
|
||||
@@ -59,25 +59,25 @@ public class WndSadGhost extends Window {
|
||||
super();
|
||||
|
||||
IconTitle titlebar = new IconTitle();
|
||||
BitmapTextMultiline message;
|
||||
switch (type){
|
||||
case 1:default:
|
||||
titlebar.icon( new FetidRatSprite() );
|
||||
titlebar.label( "DEFEATED FETID RAT" );
|
||||
message = PixelScene.createMultiline( TXT_RAT+TXT_GIVEITEM, 6 );
|
||||
break;
|
||||
case 2:
|
||||
titlebar.icon( new GnollTricksterSprite() );
|
||||
titlebar.label( "DEFEATED GNOLL TRICKSTER" );
|
||||
message = PixelScene.createMultiline( TXT_GNOLL+TXT_GIVEITEM, 6 );
|
||||
break;
|
||||
case 3:
|
||||
titlebar.icon( new GreatCrabSprite());
|
||||
titlebar.label( "DEFEATED GREAT CRAB" );
|
||||
message = PixelScene.createMultiline( TXT_CRAB+TXT_GIVEITEM, 6 );
|
||||
break;
|
||||
BitmapTextMultiline message;
|
||||
switch (type){
|
||||
case 1:default:
|
||||
titlebar.icon( new FetidRatSprite() );
|
||||
titlebar.label( "DEFEATED FETID RAT" );
|
||||
message = PixelScene.createMultiline( TXT_RAT+TXT_GIVEITEM, 6 );
|
||||
break;
|
||||
case 2:
|
||||
titlebar.icon( new GnollTricksterSprite() );
|
||||
titlebar.label( "DEFEATED GNOLL TRICKSTER" );
|
||||
message = PixelScene.createMultiline( TXT_GNOLL+TXT_GIVEITEM, 6 );
|
||||
break;
|
||||
case 3:
|
||||
titlebar.icon( new GreatCrabSprite());
|
||||
titlebar.label( "DEFEATED GREAT CRAB" );
|
||||
message = PixelScene.createMultiline( TXT_CRAB+TXT_GIVEITEM, 6 );
|
||||
break;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
titlebar.setRect( 0, 0, WIDTH, 0 );
|
||||
@@ -97,20 +97,20 @@ public class WndSadGhost extends Window {
|
||||
btnWeapon.setRect( 0, message.y + message.height() + GAP, WIDTH, BTN_HEIGHT );
|
||||
add( btnWeapon );
|
||||
|
||||
if (!Dungeon.isChallenged( Challenges.NO_ARMOR )) {
|
||||
RedButton btnArmor = new RedButton(TXT_ARMOR) {
|
||||
@Override
|
||||
protected void onClick() {
|
||||
selectReward(ghost, Ghost.Quest.armor);
|
||||
}
|
||||
};
|
||||
btnArmor.setRect(0, btnWeapon.bottom() + GAP, WIDTH, BTN_HEIGHT);
|
||||
add(btnArmor);
|
||||
if (!Dungeon.isChallenged( Challenges.NO_ARMOR )) {
|
||||
RedButton btnArmor = new RedButton(TXT_ARMOR) {
|
||||
@Override
|
||||
protected void onClick() {
|
||||
selectReward(ghost, Ghost.Quest.armor);
|
||||
}
|
||||
};
|
||||
btnArmor.setRect(0, btnWeapon.bottom() + GAP, WIDTH, BTN_HEIGHT);
|
||||
add(btnArmor);
|
||||
|
||||
resize(WIDTH, (int) btnArmor.bottom());
|
||||
} else {
|
||||
resize(WIDTH, (int) btnWeapon.bottom());
|
||||
}
|
||||
resize(WIDTH, (int) btnArmor.bottom());
|
||||
} else {
|
||||
resize(WIDTH, (int) btnWeapon.bottom());
|
||||
}
|
||||
}
|
||||
|
||||
private void selectReward( Ghost ghost, Item reward ) {
|
||||
|
||||
Reference in New Issue
Block a user