Objective details
This commit is contained in:
@@ -83,8 +83,6 @@ public class MapObjectives{
|
|||||||
public CoreItemObjective(){
|
public CoreItemObjective(){
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String text(){
|
public String text(){
|
||||||
return Core.bundle.format("objective.coreitem", state.stats.coreItemCount.get(item), amount, item.emoji(), item.localizedName);
|
return Core.bundle.format("objective.coreitem", state.stats.coreItemCount.get(item), amount, item.emoji(), item.localizedName);
|
||||||
|
|||||||
@@ -821,6 +821,16 @@ public class HudFragment{
|
|||||||
|
|
||||||
table.row();
|
table.row();
|
||||||
|
|
||||||
|
table.clicked(() -> {
|
||||||
|
if(state.rules.objectives.size > 0){
|
||||||
|
var first = state.rules.objectives.first();
|
||||||
|
if(first.details() != null){
|
||||||
|
//TODO this could be much better.
|
||||||
|
ui.showInfo(first.details);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
return table;
|
return table;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user