mirror of
https://github.com/yawaflua/Informatis.git
synced 2025-12-11 15:56:21 +02:00
to the left
This commit is contained in:
@@ -12,12 +12,7 @@ public class HUDFragment extends Fragment{
|
||||
t.name = "Windows";
|
||||
t.visible(() -> parent.visible);
|
||||
|
||||
// windows (totally not a copyright violation)
|
||||
t.center().right();
|
||||
t.add(unitTable).size(250f).visible(false);
|
||||
t.add(waveTable).size(250f).visible(false);
|
||||
t.add(coreTable).size(250f).visible(false);
|
||||
|
||||
t.center().left();
|
||||
// sidebar
|
||||
t.add(new TaskbarTable(
|
||||
unitTable,
|
||||
@@ -25,6 +20,11 @@ public class HUDFragment extends Fragment{
|
||||
coreTable
|
||||
)).visible(TaskbarTable.visibility);
|
||||
|
||||
// windows (totally not a copyright violation)
|
||||
t.add(unitTable).size(250f).visible(false);
|
||||
t.add(waveTable).size(250f).visible(false);
|
||||
t.add(coreTable).size(250f).visible(false);
|
||||
|
||||
t.update(()->{
|
||||
for (Element child : t.getChildren()) {
|
||||
if(child instanceof Updatable u) u.update();
|
||||
|
||||
@@ -11,16 +11,14 @@ public class TaskbarTable extends Table{
|
||||
|
||||
public TaskbarTable(WindowTable... items){
|
||||
visible = true;
|
||||
table(MindowsTex.sidebar,t -> {
|
||||
table(MindowsTex.sidebar, t -> {
|
||||
t.top().center();
|
||||
for(WindowTable w : items){
|
||||
t.button(w.icon, Styles.emptyi, () -> {
|
||||
w.visible(visibility);
|
||||
}).disabled(b -> w.visible)
|
||||
.size(40f)
|
||||
.padLeft(5f);
|
||||
w.visible(visibility);
|
||||
}).disabled(b -> w.visible).size(40f).padRight(5f);
|
||||
t.row();
|
||||
}
|
||||
}).right().center().width(40f);
|
||||
}).left().center().width(40f);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user