Fixed core selection in preset sectors
This commit is contained in:
@@ -285,6 +285,8 @@ public class PlanetDialog extends FloatingDialog{
|
||||
float stroke = 0.026f;
|
||||
if(sec.hasBase()){
|
||||
drawSelection(sec, Tmp.c1.set(Team.sharded.color).mul(0.8f).a(selectAlpha), stroke, -0.01f);
|
||||
}else if(sec.preset != null){
|
||||
drawSelection(sec, Tmp.c1.set(Team.derelict.color).mul(0.8f).a(selectAlpha), stroke, -0.02f);
|
||||
}else if(sec.hasEnemyBase()){
|
||||
drawSelection(sec, Tmp.c1.set(Team.crux.color).mul(0.8f).a(selectAlpha), stroke, -0.02f);
|
||||
}
|
||||
|
||||
@@ -49,6 +49,7 @@ public class HudFragment extends Fragment{
|
||||
showToast("New turn: [accent]" + universe.getTurn() + "[]" + (attacked > 0 ? "\n[scarlet]" + Iconc.warning + " " + attacked + " sectors attacked!": ""));
|
||||
});
|
||||
|
||||
//TODO tear this all down
|
||||
//menu at top left
|
||||
parent.fill(cont -> {
|
||||
cont.setName("overlaymarker");
|
||||
@@ -133,6 +134,13 @@ public class HudFragment extends Fragment{
|
||||
cont.row();
|
||||
}
|
||||
|
||||
//TODO BUTTONS FOR VIEWING EXPORTS/IMPORTS/RESEARCH
|
||||
/*
|
||||
cont.table(t -> {
|
||||
|
||||
});
|
||||
cont.row();*/
|
||||
|
||||
cont.update(() -> {
|
||||
if(Core.input.keyTap(Binding.toggle_menus) && !ui.chatfrag.shown() && !Core.scene.hasDialog() && !(Core.scene.getKeyboardFocus() instanceof TextField)){
|
||||
toggleMenus();
|
||||
|
||||
Reference in New Issue
Block a user