Skip to content

Commit

Permalink
Fix when button set to disabled mode and won't have a disable texture…
Browse files Browse the repository at this point in the history
… will cause simulator won't show button in disabled gray mode
  • Loading branch information
xiaofeng11 committed Jun 12, 2015
1 parent 385f39e commit 8d19ea7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -929,6 +929,8 @@ namespace cocostudio
Size contentSize(options->widgetOptions()->size()->width(), options->widgetOptions()->size()->height());
button->setContentSize(contentSize);
}

button->setBright(displaystate);
}

Node* ButtonReader::createNodeWithFlatBuffers(const flatbuffers::Table *buttonOptions)
Expand Down

0 comments on commit 8d19ea7

Please sign in to comment.