Commit 27d20ab9 authored by Fjen Undso's avatar Fjen Undso
Browse files

mainmenu: ready becomes green if checked

parent 8c14b3df
......@@ -81,8 +81,10 @@ public class MainMenuScreen implements Screen {
p1_isready = !p1_isready;
if (p1_isready) {
p1_ready.setTexture(FrozenNumbersGame.assets.get("sprites/btn_ready_active.png", Texture.class));
p1_ready.setColor(0, 0.8f, 0, 1);
} else {
p1_ready.setTexture(FrozenNumbersGame.assets.get("sprites/btn_ready_inactive.png", Texture.class));
p1_ready.setColor(1, 1, 1, 1);
}
}
//Clicking Ready Button p2
......@@ -91,8 +93,10 @@ public class MainMenuScreen implements Screen {
p2_isready = !p2_isready;
if (p2_isready) {
p2_ready.setTexture(FrozenNumbersGame.assets.get("sprites/btn_ready_active.png", Texture.class));
p2_ready.setColor(0, 0.8f, 0, 1);
} else {
p2_ready.setTexture(FrozenNumbersGame.assets.get("sprites/btn_ready_inactive.png", Texture.class));
p2_ready.setColor(1, 1, 1, 1);
}
}
//clicking questionmark buttons
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment