From 8d19ea7320fc340b06decb9a5764df9da0442d58 Mon Sep 17 00:00:00 2001 From: XiaoFeng Date: Fri, 12 Jun 2015 15:47:34 +0800 Subject: [PATCH] Fix when button set to disabled mode and won't have a disable texture will cause simulator won't show button in disabled gray mode --- .../cocostudio/WidgetReader/ButtonReader/ButtonReader.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cocos/editor-support/cocostudio/WidgetReader/ButtonReader/ButtonReader.cpp b/cocos/editor-support/cocostudio/WidgetReader/ButtonReader/ButtonReader.cpp index b1938bf0813a..357169531cd9 100644 --- a/cocos/editor-support/cocostudio/WidgetReader/ButtonReader/ButtonReader.cpp +++ b/cocos/editor-support/cocostudio/WidgetReader/ButtonReader/ButtonReader.cpp @@ -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)