v0.8.2: ui adjustments:
- questgivers now get journal entries as they are seen - layout tweaks to news and supporter scene buttons
This commit is contained in:
parent
defbb2ea5f
commit
0d43ef0635
|
@ -64,6 +64,9 @@ public class Blacksmith extends NPC {
|
|||
@Override
|
||||
protected boolean act() {
|
||||
throwItem();
|
||||
if (Dungeon.level.heroFOV[pos] && !Quest.reforged){
|
||||
Notes.add( Notes.Landmark.TROLL );
|
||||
}
|
||||
return super.act();
|
||||
}
|
||||
|
||||
|
@ -102,8 +105,6 @@ public class Blacksmith extends NPC {
|
|||
}
|
||||
});
|
||||
|
||||
Notes.add( Notes.Landmark.TROLL );
|
||||
|
||||
} else if (!Quest.completed) {
|
||||
if (Quest.alternative) {
|
||||
|
||||
|
|
|
@ -66,8 +66,12 @@ public class Ghost extends NPC {
|
|||
|
||||
@Override
|
||||
protected boolean act() {
|
||||
if (Quest.processed())
|
||||
if (Quest.processed()) {
|
||||
target = Dungeon.hero.pos;
|
||||
}
|
||||
if (Dungeon.level.heroFOV[pos] && !Quest.completed()){
|
||||
Notes.add( Notes.Landmark.GHOST );
|
||||
}
|
||||
return super.act();
|
||||
}
|
||||
|
||||
|
@ -174,7 +178,6 @@ public class Ghost extends NPC {
|
|||
if (questBoss.pos != -1) {
|
||||
GameScene.add(questBoss);
|
||||
Quest.given = true;
|
||||
Notes.add( Notes.Landmark.GHOST );
|
||||
Game.runOnRenderThread(new Callback() {
|
||||
@Override
|
||||
public void call() {
|
||||
|
|
|
@ -60,6 +60,7 @@ public class Imp extends NPC {
|
|||
if (!seenBefore) {
|
||||
yell( Messages.get(this, "hey", Dungeon.hero.name() ) );
|
||||
}
|
||||
Notes.add( Notes.Landmark.IMP );
|
||||
seenBefore = true;
|
||||
} else {
|
||||
seenBefore = false;
|
||||
|
@ -117,8 +118,6 @@ public class Imp extends NPC {
|
|||
tell( Quest.alternative ? Messages.get(this, "monks_1") : Messages.get(this, "golems_1") );
|
||||
Quest.given = true;
|
||||
Quest.completed = false;
|
||||
|
||||
Notes.add( Notes.Landmark.IMP );
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
|
@ -61,6 +61,9 @@ public class Wandmaker extends NPC {
|
|||
@Override
|
||||
protected boolean act() {
|
||||
throwItem();
|
||||
if (Dungeon.level.heroFOV[pos] && Quest.wand1 != null){
|
||||
Notes.add( Notes.Landmark.WANDMAKER );
|
||||
}
|
||||
return super.act();
|
||||
}
|
||||
|
||||
|
@ -184,7 +187,6 @@ public class Wandmaker extends NPC {
|
|||
}
|
||||
});
|
||||
|
||||
Notes.add( Notes.Landmark.WANDMAKER );
|
||||
Quest.given = true;
|
||||
}
|
||||
|
||||
|
|
|
@ -276,13 +276,17 @@ public class NewsScene extends PixelScene {
|
|||
protected void layout() {
|
||||
text.maxWidth( (int)(width - icon.width() - bg.marginHor() - 2));
|
||||
|
||||
super.layout();
|
||||
|
||||
icon.x = x + bg.marginLeft() + (16-icon.width())/2f;
|
||||
PixelScene.align(icon);
|
||||
text.setPos(x + bg.marginLeft() + 18, text.top());
|
||||
|
||||
if (date != null) {
|
||||
date.x = x + width - bg.marginRight() - date.width() + 2;
|
||||
date.y = y + height - bg.marginBottom() - date.height() + 3.5f;
|
||||
align(date);
|
||||
}
|
||||
|
||||
super.layout();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue
Block a user