This commit is contained in:
DeltaNedas
2020-10-11 12:59:00 +01:00
parent 1539d86846
commit 5eb8a87528

View File

@@ -45,7 +45,7 @@ public class MenuFragment extends Fragment{
parent.fill(c -> { parent.fill(c -> {
container = c; container = c;
c.name = "menu container"; c.name = "menu container";
if(!mobile){ if(!mobile){
buildDesktop(); buildDesktop();
@@ -94,7 +94,7 @@ public class MenuFragment extends Fragment{
private void buildMobile(){ private void buildMobile(){
container.clear(); container.clear();
container.name = "buttons"; container.name = "buttons";
container.setSize(Core.graphics.getWidth(), Core.graphics.getHeight()); container.setSize(Core.graphics.getWidth(), Core.graphics.getHeight());
float size = 120f; float size = 120f;
@@ -162,7 +162,7 @@ public class MenuFragment extends Fragment{
container.add().width(Core.graphics.getWidth()/10f); container.add().width(Core.graphics.getWidth()/10f);
container.table(background, t -> { container.table(background, t -> {
t.defaults().width(width).height(70f); t.defaults().width(width).height(70f);
t.name = "buttons"; t.name = "buttons";
buttons(t, buttons(t,
new Buttoni("@play", Icon.play, new Buttoni("@play", Icon.play,
@@ -185,7 +185,7 @@ public class MenuFragment extends Fragment{
container.table(background, t -> { container.table(background, t -> {
submenu = t; submenu = t;
t.name = "submenu"; t.name = "submenu";
t.color.a = 0f; t.color.a = 0f;
t.top(); t.top();
t.defaults().width(width).height(70f); t.defaults().width(width).height(70f);