{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"user":{"avatar_url":"https://secure.gravatar.com/avatar/f3017feace97c6bd787b5e871422674f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"f3017feace97c6bd787b5e871422674f","url":"https://api.github.com/users/mochibits","login":"mochibits","id":850038},"milestone":null,"assignee":null,"labels":[],"updated_at":"2011-11-02T22:50:15Z","closed_at":null,"comments":0,"url":"https://api.github.com/repos/ZhouWeikuan/cocos2d/issues/46","body":"Selected and disabled image not being displayed.  Visible flags not being set. See code below for my fix.  Maybe there's a better way though.\r\n\r\n\t@Override\r\n\tpublic void draw(GL10 gl) {\r\n\t\tif (isEnabled_) {\r\n\t\t\tif (isSelected_) {\r\n\t\t\t\tnormalImage_.setVisible(false);\r\n\t\t\t\tselectedImage_.setVisible(true);\r\n\t\t\t\tselectedImage_.draw(gl);\r\n\t\t\t} else {\r\n\t\t\t\tnormalImage_.setVisible(true);\r\n\t\t\t\tselectedImage_.setVisible(false);\r\n\t\t\t\tnormalImage_.draw(gl);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (disabledImage_ != null) {\r\n\t\t\t\tnormalImage_.setVisible(false);\r\n\t\t\t\tdisabledImage_.setVisible(true);\r\n\t\t\t\tdisabledImage_.draw(gl);\r\n\r\n\t\t\t\t// disabled image was not provided\r\n\t\t\t} else {\r\n\t\t\t\tnormalImage_.setVisible(true);\r\n\t\t\t\tdisabledImage_.setVisible(false);\r\n\t\t\t\tnormalImage_.draw(gl);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n","html_url":"https://github.com/ZhouWeikuan/cocos2d/issues/46","number":46,"title":"CCMenuItemSprite images not visible","id":2127551,"created_at":"2011-11-02T22:50:15Z"},"action":"opened"}