Forums » C# Framework » CCMenuItemToggle quick click/touch bug »
| Evgeniy Rojkov | CCMenuItemToggle quick click/touch bug | ||
|---|---|---|---|
|
Added by Evgeniy Rojkov about 1 year ago
1. BUG¶
CCMenuItemLabel itemLabelSound = createLabel("Sound");
itemLabelSound.Enabled = false;
labelOn = createLabel("On");
labelOff = createLabel("Off");
itemSound = CCMenuItemToggle.itemWithTarget(this, toggleSound, labelOn, labelOff);
CCMenuItemLabel createLabel(string value)
{
CCLabelBMFont label = CCLabelBMFont.labelWithString(value, "fonts/verdana.fnt");
CCMenuItemLabel itemLabel = CCMenuItemLabel.itemWithLabel(label);
return itemLabel;
}
after compile i just quickly touch or click itemSound and its start to grow (increase in size) 2. Suggestion¶Enable CodeRay in redmine for C# code hightlights (http://cocos2d-x.org/help/wiki_syntax_detailed.html) p.s. sorry for my english |
||
| Evgeniy Rojkov | RE: CCMenuItemToggle quick click/touch bug | ||
|
Added by Evgeniy Rojkov about 1 year ago
you can look this bug also in cocos2d xna "tests" -> "MenuTest" -> "Configuragion" and start quickly clicking/touching music or sound toggle part. |
||
| RongHong Huang | RE: CCMenuItemToggle quick click/touch bug | ||
|
Added by RongHong Huang about 1 year ago
hi, Evgeniy, i have checked this, and issue http://www.cocos2d-x.org/issues/1049 has been created. btw, are you develping games based on cocos2d-x for xna now? |
||
| Evgeniy Rojkov | RE: CCMenuItemToggle quick click/touch bug | ||
|
Added by Evgeniy Rojkov about 1 year ago
yes, making my first wp game. |
||
| RongHong Huang | RE: CCMenuItemToggle quick click/touch bug | ||
|
Added by RongHong Huang about 1 year ago
The bug has been resolved, try the latest code on the github. Btw, do imform me when you finish your game, i am looking forward to palying it, |
(1-4/4)
