Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] Custom actions #5

Open
ozodrukh opened this issue Oct 9, 2014 · 0 comments
Open

[docs] Custom actions #5

ozodrukh opened this issue Oct 9, 2014 · 0 comments

Comments

@ozodrukh
Copy link

ozodrukh commented Oct 9, 2014

Hi, i make 2 custom actions dropdown and up, but i'm need only two lines (for library 3 is necessary)
with it my action animation is ugly, also please understand LineSegments

public class DropdownAction extends Action{

    public DropdownAction() {

        lineData = new float[]{
                // first line
                0.2f, 0.7f, 0.5f, 0.4f,
                // second line
                0.45f, 0.4f, 0.75f, 0.7f,
                // third line @unused
                0,0,0,0
        };

    }

}


public class UpAction extends Action{

    public UpAction() {

        lineData = new float[]{
                // first line
                0.2f, 0.4f, 0.5f, 0.7f,
                // second line
                0.45f, 0.7f, 0.75f, 0.4f,

                0,0,0,0
        };
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant