本文整理汇总了C#中CCBReader类的典型用法代码示例。如果您正苦于以下问题:C# CCBReader类的具体用法?C# CCBReader怎么用?C# CCBReader使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CCBReader类属于命名空间,在下文中一共展示了CCBReader类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnHandlePropTypeCheck
protected override void OnHandlePropTypeCheck(CCNode node, CCNode parent, string propertyName, bool pCheck, CCBReader reader)
{
if (propertyName == PROPERTY_TOUCH_ENABLED)
{
((CCLayer) node).TouchEnabled = pCheck;
}
else if (propertyName == PROPERTY_ACCELEROMETER_ENABLED)
{
((CCLayer) node).AccelerometerEnabled = pCheck;
}
else if (propertyName == PROPERTY_MOUSE_ENABLED)
{
// TODO XXX
CCLog.Log("The property '{0}' is not supported!", PROPERTY_MOUSE_ENABLED);
}
else if (propertyName == PROPERTY_KEYBOARD_ENABLED)
{
// TODO XXX
CCLog.Log("The property '{0}' is not supported!", PROPERTY_KEYBOARD_ENABLED);
// This comes closest: ((CCLayer *)node).setKeypadEnabled(pCheck);
}
else
{
base.OnHandlePropTypeCheck(node, parent, propertyName, pCheck, reader);
}
}
示例2: OnHandlePropTypeText
protected override void OnHandlePropTypeText(CCNode node, CCNode parent, string propertyName, string pText, CCBReader reader)
{
if (propertyName == PROPERTY_STRING)
{
((CCLabelBMFont) node).Label = (pText);
}
else
{
base.OnHandlePropTypeText(node, parent, propertyName, pText, reader);
}
}
示例3: OnHandlePropTypeByte
protected override void OnHandlePropTypeByte(CCNode node, CCNode parent, string propertyName, byte pByte, CCBReader reader)
{
if (propertyName == PROPERTY_OPACITY)
{
((CCLabelBMFont) node).Opacity = pByte;
}
else
{
base.OnHandlePropTypeByte(node, parent, propertyName, pByte, reader);
}
}
示例4: OnHandlePropTypeCCBFile
protected override void OnHandlePropTypeCCBFile(CCNode node, CCNode parent, string propertyName, CCNode fileNode, CCBReader reader)
{
if (propertyName == PROPERTY_CCBFILE)
{
((CCBFile) node).FileNode = fileNode;
}
else
{
base.OnHandlePropTypeCCBFile(node, parent, propertyName, fileNode, reader);
}
}
示例5: OnHandlePropTypeCheck
protected override void OnHandlePropTypeCheck(CCNode node, CCNode parent, string propertyName, bool pCheck, CCBReader reader)
{
if (propertyName == PROPERTY_ZOOMONTOUCHDOWN)
{
((CCControlButton) node).ZoomOnTouchDown = pCheck;
}
else
{
base.OnHandlePropTypeCheck(node, parent, propertyName, pCheck, reader);
}
}
示例6: OnHandlePropTypeInteger
protected override void OnHandlePropTypeInteger(CCNode node, CCNode parent, string propertyName, int pInteger, CCBReader reader)
{
if (propertyName == PROPERTY_TOTALPARTICLES)
{
((CCParticleSystemQuad) node).TotalParticles = pInteger;
}
else
{
base.OnHandlePropTypeInteger(node, parent, propertyName, pInteger, reader);
}
}
示例7: OnHandlePropTypeFloatScale
protected override void OnHandlePropTypeFloatScale(CCNode node, CCNode parent, string propertyName, float floatScale, CCBReader reader)
{
if (propertyName == PROPERTY_FONTSIZE)
{
((CCLabelTTF) node).FontSize = floatScale;
}
else
{
base.OnHandlePropTypeFloatScale(node, parent, propertyName, floatScale, reader);
}
}
示例8: OnHandlePropTypeFontTTF
protected override void OnHandlePropTypeFontTTF(CCNode node, CCNode parent, string propertyName, string fontTTF, CCBReader reader)
{
if (propertyName == PROPERTY_FONTNAME)
{
((CCLabelTTF) node).FontName = fontTTF;
}
else
{
base.OnHandlePropTypeFontTTF(node, parent, propertyName, fontTTF, reader);
}
}
示例9: OnHandlePropTypeColor3
protected override void OnHandlePropTypeColor3(CCNode node, CCNode parent, string propertyName, CCColor3B color, CCBReader reader)
{
if (propertyName == PROPERTY_COLOR)
{
((CCLabelBMFont) node).Color = color;
}
else
{
base.OnHandlePropTypeColor3(node, parent, propertyName, color, reader);
}
}
示例10: OnHandlePropTypeFntFile
protected override void OnHandlePropTypeFntFile(CCNode node, CCNode parent, string propertyName, string pFntFile, CCBReader reader)
{
if (propertyName == PROPERTY_FNTFILE)
{
((CCLabelBMFont) node).FntFile = pFntFile;
}
else
{
base.OnHandlePropTypeFntFile(node, parent, propertyName, pFntFile, reader);
}
}
示例11: OnHandlePropTypeSpriteFrame
protected override void OnHandlePropTypeSpriteFrame(CCNode node, CCNode parent, string propertyName, CCSpriteFrame spriteFrame,
CCBReader reader)
{
if (propertyName == PROPERTY_SPRITEFRAME)
{
((CCScale9Sprite) node).InitWithSpriteFrame(spriteFrame);
}
else
{
base.OnHandlePropTypeSpriteFrame(node, parent, propertyName, spriteFrame, reader);
}
}
示例12: OnHandlePropTypeIntegerLabeled
protected override void OnHandlePropTypeIntegerLabeled(CCNode node, CCNode parent, string propertyName, int pIntegerLabeled,
CCBReader reader)
{
if (propertyName == PROPERTY_EMITERMODE)
{
((CCParticleSystemQuad) node).EmitterMode = (CCEmitterMode) pIntegerLabeled;
}
else
{
base.OnHandlePropTypeIntegerLabeled(node, parent, propertyName, pIntegerLabeled, reader);
}
}
示例13: OnHandlePropTypeSpriteFrame
protected override void OnHandlePropTypeSpriteFrame(CCNode node, CCNode parent, string propertyName, CCSpriteFrame spriteFrame,
CCBReader reader)
{
if (propertyName == PROPERTY_DISPLAYFRAME)
{
((CCSprite) node).DisplayFrame = spriteFrame;
}
else
{
base.OnHandlePropTypeSpriteFrame(node, parent, propertyName, spriteFrame, reader);
}
}
示例14: OnHandlePropTypeFlip
protected override void OnHandlePropTypeFlip(CCNode node, CCNode parent, string propertyName, bool[] pFlip, CCBReader reader)
{
if (propertyName == PROPERTY_FLIP)
{
((CCSprite) node).FlipX = pFlip[0];
((CCSprite) node).FlipY = pFlip[1];
}
else
{
base.OnHandlePropTypeFlip(node, parent, propertyName, pFlip, reader);
}
}
示例15: OnHandlePropTypeBlendFunc
protected override void OnHandlePropTypeBlendFunc(CCNode node, CCNode parent, string propertyName, CCBlendFunc blendFunc,
CCBReader reader)
{
if (propertyName == PROPERTY_BLENDFUNC)
{
((CCLabelBMFont) node).BlendFunc = blendFunc;
}
else
{
base.OnHandlePropTypeBlendFunc(node, parent, propertyName, blendFunc, reader);
}
}