Skip to content

Commit

Permalink
NWN: Use the default state for "up" in buttons
Browse files Browse the repository at this point in the history
This seems to fix the a few buttons that looked
like they were stuck.
  • Loading branch information
DrMcCoy committed Feb 7, 2014
1 parent 61273a9 commit 36ab8ab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/engines/nwn/gui/widgets/button.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ WidgetButton::WidgetButton(::Engines::GUI &gui, const Common::UString &tag,
ModelWidget(gui, tag, model) {

_model->setSelectable(true);
_model->setState("up");
_model->setState("");
updateSize();

_sound = sound;
Expand All @@ -68,7 +68,7 @@ void WidgetButton::leave() {
if (isDisabled())
return;

_model->setState("up");
_model->setState("");

updateSize();
}
Expand All @@ -79,7 +79,7 @@ void WidgetButton::setDisabled(bool disabled) {
if (isDisabled())
_model->setState("disabled");
else
_model->setState("up");
_model->setState("");

updateSize();
}
Expand All @@ -103,7 +103,7 @@ void WidgetButton::mouseUp(uint8 state, float x, float y) {
return;

if (!_model->setState("hilite"))
_model->setState("up");
_model->setState("");

updateSize();

Expand Down

0 comments on commit 36ab8ab

Please sign in to comment.