Hello,
Let’s say I have 2 or more widgets. They all have a non integer alpha value. They’re also overlapping. Assuming the following 3 circles are my widgets, this is what we should expect to see.
However, my goal is to have them appear like so,
With the help from this, I was able to succeed doing this with shaperenderers. However, I couldn’t figure out how to do this with widgets. Unless I searched for the wrong situation, I couldn’t find a solution to this problem anywhere else either.
I hope I didn’t left anything out
@Override
public void show() {
skin = new Skin(Gdx.files.internal("data/uiskin.json"));
stage = new Stage(new FitViewport(1100, 640));
Button b1 = new Button(skin, "tab");
b1.setBounds(330, 370, 70, 40);
Button b2 = new Button(skin, "tab");
b2.setBounds(350, 370, 70, 40);
stage.addActor(b1);
stage.addActor(b2);
}
public void render(float delta) {
Gdx.gl.glClearColor(0, 0, 0, 1);
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT | GL20.GL_DEPTH_BUFFER_BIT);
stage.act(Gdx.graphics.getDeltaTime());
stage.draw();
}
How would I accomplish this?
Thanks in advance!