v0.7.0: updated automatically assigning active journal tab functionality
This commit is contained in:
parent
53121dd01b
commit
b419e62b8a
|
@ -53,7 +53,11 @@ public abstract class DocumentPage extends Item {
|
||||||
public final boolean doPickUp(Hero hero) {
|
public final boolean doPickUp(Hero hero) {
|
||||||
GameScene.pickUpJournal(this, hero.pos);
|
GameScene.pickUpJournal(this, hero.pos);
|
||||||
GameScene.flashJournal();
|
GameScene.flashJournal();
|
||||||
WndJournal.last_index = 0;
|
if (document() == Document.ALCHEMY_GUIDE){
|
||||||
|
WndJournal.last_index = 1;
|
||||||
|
} else {
|
||||||
|
WndJournal.last_index = 0;
|
||||||
|
}
|
||||||
document().addPage(page);
|
document().addPage(page);
|
||||||
Sample.INSTANCE.play( Assets.SND_ITEM );
|
Sample.INSTANCE.play( Assets.SND_ITEM );
|
||||||
hero.spendAndNext( TIME_TO_PICK_UP );
|
hero.spendAndNext( TIME_TO_PICK_UP );
|
||||||
|
|
|
@ -49,7 +49,7 @@ public abstract class Key extends Item {
|
||||||
@Override
|
@Override
|
||||||
public boolean doPickUp(Hero hero) {
|
public boolean doPickUp(Hero hero) {
|
||||||
GameScene.pickUpJournal(this, hero.pos);
|
GameScene.pickUpJournal(this, hero.pos);
|
||||||
WndJournal.last_index = 1;
|
WndJournal.last_index = 2;
|
||||||
Notes.add(this);
|
Notes.add(this);
|
||||||
Sample.INSTANCE.play( Assets.SND_ITEM );
|
Sample.INSTANCE.play( Assets.SND_ITEM );
|
||||||
hero.spendAndNext( TIME_TO_PICK_UP );
|
hero.spendAndNext( TIME_TO_PICK_UP );
|
||||||
|
|
|
@ -127,7 +127,7 @@ public class Toolbar extends Component {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected boolean onLongClick() {
|
protected boolean onLongClick() {
|
||||||
WndJournal.last_index = 2; //catalog page
|
WndJournal.last_index = 3; //catalog page
|
||||||
GameScene.show(new WndJournal());
|
GameScene.show(new WndJournal());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user