More bugfixes
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
package io.anuke.mindustry.ui.fragments;
|
package io.anuke.mindustry.ui.fragments;
|
||||||
|
|
||||||
import io.anuke.arc.function.*;
|
import io.anuke.arc.function.*;
|
||||||
|
import io.anuke.arc.graphics.*;
|
||||||
import io.anuke.arc.scene.Group;
|
import io.anuke.arc.scene.Group;
|
||||||
import io.anuke.arc.scene.actions.*;
|
import io.anuke.arc.scene.actions.*;
|
||||||
import io.anuke.arc.scene.event.Touchable;
|
import io.anuke.arc.scene.event.Touchable;
|
||||||
@@ -57,6 +58,7 @@ public class LoadingFragment extends Fragment{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void show(String text){
|
public void show(String text){
|
||||||
|
table.<Label>find("namelabel").setColor(Color.white);
|
||||||
bar.visible(false);
|
bar.visible(false);
|
||||||
table.clearActions();
|
table.clearActions();
|
||||||
table.touchable(Touchable.enabled);
|
table.touchable(Touchable.enabled);
|
||||||
|
|||||||
@@ -76,7 +76,9 @@ public enum SAchievement{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void checkCompletion(){
|
public void checkCompletion(){
|
||||||
//TODO
|
if(!isAchieved() && stat != null && stat.get() >= statGoal){
|
||||||
|
complete();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isAchieved(){
|
public boolean isAchieved(){
|
||||||
|
|||||||
Reference in New Issue
Block a user