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) {
|
||||
GameScene.pickUpJournal(this, hero.pos);
|
||||
GameScene.flashJournal();
|
||||
WndJournal.last_index = 0;
|
||||
if (document() == Document.ALCHEMY_GUIDE){
|
||||
WndJournal.last_index = 1;
|
||||
} else {
|
||||
WndJournal.last_index = 0;
|
||||
}
|
||||
document().addPage(page);
|
||||
Sample.INSTANCE.play( Assets.SND_ITEM );
|
||||
hero.spendAndNext( TIME_TO_PICK_UP );
|
||||
|
|
|
@ -49,7 +49,7 @@ public abstract class Key extends Item {
|
|||
@Override
|
||||
public boolean doPickUp(Hero hero) {
|
||||
GameScene.pickUpJournal(this, hero.pos);
|
||||
WndJournal.last_index = 1;
|
||||
WndJournal.last_index = 2;
|
||||
Notes.add(this);
|
||||
Sample.INSTANCE.play( Assets.SND_ITEM );
|
||||
hero.spendAndNext( TIME_TO_PICK_UP );
|
||||
|
|
|
@ -127,7 +127,7 @@ public class Toolbar extends Component {
|
|||
|
||||
@Override
|
||||
protected boolean onLongClick() {
|
||||
WndJournal.last_index = 2; //catalog page
|
||||
WndJournal.last_index = 3; //catalog page
|
||||
GameScene.show(new WndJournal());
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user