Skip to content

Commit

Permalink
#13 VaryColour.cpp Now, all changes to the Min and Max limits are rec…
Browse files Browse the repository at this point in the history
…orded without having to press enter after entering a new value
  • Loading branch information
Illiarius committed Aug 7, 2023
1 parent f219121 commit 38bfa43
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions vagabond/gui/VaryColourOptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,12 @@ void VaryColourOptions::setup()

void VaryColourOptions::buttonPressed(std::string tag, Button *button)
{
if (tag == "min")
if (tag == "back")
{
float new_min = _min->as_num();
_rule.setMin(new_min);
}
else if (tag == "max")
{
float new_max = _max->as_num();
_rule.setMax(new_max);
}

Scene::buttonPressed(tag, button);
}

1 comment on commit 38bfa43

@helenginn
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oooh, I like it a lot!

Please sign in to comment.