v2.5.1: fixed split alch guide not updating in various cases
This commit is contained in:
+13
-1
@@ -107,6 +107,7 @@ public class AlchemyScene extends PixelScene {
|
|||||||
private boolean energyAddBlinking = false;
|
private boolean energyAddBlinking = false;
|
||||||
|
|
||||||
private static boolean splitAlchGuide = false;
|
private static boolean splitAlchGuide = false;
|
||||||
|
private WndJournal.AlchemyTab alchGuide = null;
|
||||||
private static int centerW;
|
private static int centerW;
|
||||||
|
|
||||||
private static final int BTN_SIZE = 28;
|
private static final int BTN_SIZE = 28;
|
||||||
@@ -190,7 +191,7 @@ public class AlchemyScene extends PixelScene {
|
|||||||
guideBG.x = Camera.main.width - left - guideBG.width();
|
guideBG.x = Camera.main.width - left - guideBG.width();
|
||||||
add(guideBG);
|
add(guideBG);
|
||||||
|
|
||||||
WndJournal.AlchemyTab alchGuide = new WndJournal.AlchemyTab();
|
alchGuide = new WndJournal.AlchemyTab();
|
||||||
add(alchGuide);
|
add(alchGuide);
|
||||||
alchGuide.setRect(guideBG.x + guideBG.marginLeft(),
|
alchGuide.setRect(guideBG.x + guideBG.marginLeft(),
|
||||||
guideBG.y + guideBG.marginTop(),
|
guideBG.y + guideBG.marginTop(),
|
||||||
@@ -648,6 +649,10 @@ public class AlchemyScene extends PixelScene {
|
|||||||
|
|
||||||
energyAddBlinking = promptToAddEnergy;
|
energyAddBlinking = promptToAddEnergy;
|
||||||
|
|
||||||
|
if (alchGuide != null){
|
||||||
|
alchGuide.updateList();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void combine( int slot ){
|
private void combine( int slot ){
|
||||||
@@ -721,6 +726,10 @@ public class AlchemyScene extends PixelScene {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (alchGuide != null){
|
||||||
|
alchGuide.updateList();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void craftItem( ArrayList<Item> ingredients, Item result ){
|
public void craftItem( ArrayList<Item> ingredients, Item result ){
|
||||||
@@ -819,6 +828,9 @@ public class AlchemyScene extends PixelScene {
|
|||||||
}
|
}
|
||||||
cancel.enable(false);
|
cancel.enable(false);
|
||||||
repeat.enable(lastRecipe != null);
|
repeat.enable(lastRecipe != null);
|
||||||
|
if (alchGuide != null){
|
||||||
|
alchGuide.updateList();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void createEnergy(){
|
public void createEnergy(){
|
||||||
|
|||||||
@@ -363,7 +363,7 @@ public class WndJournal extends WndTabbed {
|
|||||||
updateList();
|
updateList();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateList() {
|
public void updateList() {
|
||||||
|
|
||||||
if (currentPageIdx != -1 && !Document.ALCHEMY_GUIDE.isPageFound(currentPageIdx)){
|
if (currentPageIdx != -1 && !Document.ALCHEMY_GUIDE.isPageFound(currentPageIdx)){
|
||||||
currentPageIdx = -1;
|
currentPageIdx = -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user