Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //480, 236
- windowDrawOffset = new Vector2(480, 236);
- addActor(new Image(new Texture(Gdx.files.internal("assets/gfx/loginmenu/Login Menu Base.png"))));
- //this.addActor(new TextField("Test", Settings.skin));
- tfUsername = new TextFieldTransparent("Default Username", Settings.skin);
- tfUsername.setSize(555, 25);
- tfUsername.setPosition(201, 332);
- tfUsername.setMaxLength(24);
- tfUsername.setAlignment(1);
- addActor(tfUsername);
- tfPassword = new TextFieldTransparent("Password", Settings.skin);
- tfPassword.setPasswordMode(true);
- tfPassword.setPasswordCharacter("*".charAt(0));
- tfPassword.setMaxLength(24);
- tfPassword.setSize(555, 25);
- tfPassword.setPosition(201, 237);
- tfPassword.setAlignment(1);
- addActor(tfPassword);
- MenuButtonTest btn = new MenuButtonTest(
- "Login Menu Login Button Highlight.png",
- "Login Menu Login Button Pressed.png",
- "Login Menu Login Button.png"
- ) {
- public void click() {
- System.out.println("click");
- }
- };
- btn.setPosition(189, 84);
- addActor(btn);
- btn = new MenuButtonTest(
- "Login Menu Register Account Button Highlight.png",
- "Login Menu Register Account Button Pressed.png",
- "Login Menu Register Account Button.png"
- ) {
- public void click() {
- System.out.println("click");
- }
- };
- btn.setPosition(481, 84);
- addActor(btn);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement