public ScreenCreateActivity() { title = new TextBox("Crear una Actividad", 0.01f, 0.07f, 0.7f, 0.05f).setColor(ColorBank.midnightblue).setRadius(60, true).centerText(TextBox.center.xy).centerX(); ScreenController.add(ScreenHall.profile); ScreenController.add(title); }
public ScreenHall() { profile = new TextBox("@" + User.name, 0.01f, (0.01f * Game1.WIDTH) / Game1.HEIGHT, 0.98f, 0.05f).setColor(ColorBank.amethyst).setRadius(30, true).centerText(TextBox.center.y); title = new TextBox("Menú Principal", 0.01f, 0.07f, 0.5f, 0.05f).setColor(ColorBank.midnightblue).setRadius(60, true).centerText(TextBox.center.xy).centerX(); activity = new Button(Game1.icon_activity, 0, 0.7f, 0.2f, (0.2f * Game1.WIDTH) / Game1.HEIGHT).setColor(ColorBank.alizarin).centerX().centerY().setRadius(50, true, true, true, true); ScreenController.add(activity); ScreenController.add(profile); ScreenController.add(title); }
public ScreenActivity() { title = new TextBox("Actividad", 0.01f, 0.07f, 0.5f, 0.05f).setColor(ColorBank.midnightblue).setRadius(60, true).centerText(TextBox.center.xy).centerX(); join = new Button("Unirse", 0, 0.4f, 0.7f, 0.1f).setColor(ColorBank.alizarin).centerX().setRadius(50, true, true, false, false); create = new Button("Crear", 0, 0.5075f, 0.7f, 0.1f).setColor(ColorBank.alizarin).centerX().setRadius(50, false, false, true, true); ScreenController.add(ScreenHall.profile); ScreenController.add(title); ScreenController.add(join); ScreenController.add(create); }
public ScreenJoinActivity() { title = new TextBox("Unirse a una Actividad", 0.01f, 0.07f, 0.7f, 0.05f).setColor(ColorBank.midnightblue).setRadius(60, true).centerText(TextBox.center.xy).centerX(); id_tbox = new TextBox("ID", 0, 0.365f, 0.7f, 0.035f).setColor(ColorBank.alizarin).centerX().centerText(TextBox.center.y).setRadius(30, true, true, false, false); id = new InputBox(0, 0.395f, 0.7f, 0.07f, "Identificación").centerX().setRadius(30, false, false, true, true).setStroke(6, ColorBank.alizarin); join = new Button("Ingresar", 0, 0.5f, 0.7f, 0.1f).setColor(ColorBank.alizarin).centerX().setRadius(50, true, true, true, true); ScreenController.add(ScreenHall.profile); ScreenController.add(title); ScreenController.add(join); ScreenController.add(id_tbox); ScreenController.add(id); }
public ScreenGame(string q, string op1, string op2, string op3, string op4) { tbox = new TextBox(q, 0, 0.2f, 0.8f, 0.1f).setColor(ColorBank.alizarin).centerX().centerText(TextBox.center.xy).setRadius(20, true); string[] n = { op1, op2, op3, op4 }; for (int i = 0; i < n.Length; i++) { buttons.Add(new Button(n[i], 0, 0.4f + i * 0.1f, 0.7f, 0.08f).centerX().setRadius(40, true)); ScreenController.add(buttons[i]); } ScreenController.add(tbox); ScreenController.add(ScreenHall.profile); }
public ScreenLogin() { login = new Button("Ingresar", 0, 0.7f, 0.7f, 0.1f).setColor(ColorBank.alizarin).centerX().setRadius(50, true, true, true, true); user_tbox = new TextBox("Usuario", 0, 0.265f, 0.7f, 0.035f).setColor(ColorBank.alizarin).centerX().centerText(TextBox.center.y).setRadius(30, true, true, false, false); pass_tbox = new TextBox("Contraseña", 0, 0.42f, 0.7f, 0.035f).setColor(ColorBank.alizarin).centerX().centerText(TextBox.center.y).setRadius(30, true, true, false, false); user = new InputBox(0, 0.295f, 0.7f, 0.07f, "Usuario").centerX().setRadius(30, false, false, true, true).setStroke(6, ColorBank.alizarin); pass = new InputBox(0, 0.45f, 0.7f, 0.07f, "Contraseña").centerX().setRadius(30, false, false, true, true).setStroke(6, ColorBank.alizarin); ScreenController.add(login); ScreenController.add(user_tbox); ScreenController.add(pass_tbox); ScreenController.add(user); ScreenController.add(pass); }