Skip to content
Snippets Groups Projects
Commit daf084e6 authored by Sebastian Pape's avatar Sebastian Pape
Browse files

Made up/down button pairs not holdable

parent 808a1f27
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,6 @@ class MenuHelper {
float increments, float min, float max,
phx::Entity* parent,
std::function<void(float)> change) {
auto text_entity = scene->CreateEntity();
text_entity->AddComponent<phx::Transform>()
->Translate(glm::vec3(-0.001f, offset_y, -0.085f + offset_x))
......@@ -82,6 +81,9 @@ class MenuHelper {
down->GetTransform()->SetParent(parent->GetFirstComponent<phx::Transform>(),
false);
up->SetHoldable(false);
down->SetHoldable(false);
up->GetTransform()->SetLocalRotationEuler(glm::vec3(0, -90, 90));
down->GetTransform()->SetLocalRotationEuler(glm::vec3(0, 90, 90));
up->GetTransform()->SetLocalScale(glm::vec3(0.03f, 0.01f, 0.03f));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment