本文整理汇总了C#中CCBReader类的典型用法代码示例。如果您正苦于以下问题:C# CCBReader类的具体用法?C# CCBReader怎么用?C# CCBReader使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CCBReader类属于命名空间,在下文中一共展示了CCBReader类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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);
}
}
开发者ID:Ratel13,项目名称:cocos2d-xna,代码行数:26,代码来源:CCLayerLoader.cs
示例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);
}
}
开发者ID:CartBlanche,项目名称:cocos2d-xna,代码行数:11,代码来源:CCLabelBMFontLoader.cs
示例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);
}
}
开发者ID:CartBlanche,项目名称:cocos2d-xna,代码行数:11,代码来源:CCLabelBMFontLoader.cs
示例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);
}
}
开发者ID:HarkDev,项目名称:cocos2d-xna,代码行数:11,代码来源:CCBFileLoader.cs
示例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);
}
}
开发者ID:Ratel13,项目名称:cocos2d-xna,代码行数:11,代码来源:CCControlButtonLoader.cs
示例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);
}
}
开发者ID:KerwinMa,项目名称:CocosSharp,代码行数:11,代码来源:CCParticleSystemQuadLoader.cs
示例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);
}
}
开发者ID:Ratel13,项目名称:cocos2d-xna,代码行数:11,代码来源:CCLabelTTFLoader.cs
示例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);
}
}
开发者ID:Ratel13,项目名称:cocos2d-xna,代码行数:11,代码来源:CCLabelTTFLoader.cs
示例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);
}
}
开发者ID:CartBlanche,项目名称:cocos2d-xna,代码行数:11,代码来源:CCLabelBMFontLoader.cs
示例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);
}
}
开发者ID:CartBlanche,项目名称:cocos2d-xna,代码行数:11,代码来源:CCLabelBMFontLoader.cs
示例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);
}
}
开发者ID:KerwinMa,项目名称:CocosSharp,代码行数:12,代码来源:CCScale9SpriteLoader.cs
示例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);
}
}
开发者ID:Ratel13,项目名称:cocos2d-xna,代码行数:12,代码来源:CCParticleSystemQuadLoader.cs
示例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);
}
}
开发者ID:CartBlanche,项目名称:cocos2d-xna,代码行数:12,代码来源:CCSpriteLoader.cs
示例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);
}
}
开发者ID:CartBlanche,项目名称:cocos2d-xna,代码行数:12,代码来源:CCSpriteLoader.cs
示例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);
}
}
开发者ID:CartBlanche,项目名称:cocos2d-xna,代码行数:12,代码来源:CCLabelBMFontLoader.cs
示例16: OnHandlePropTypeBlockCcControl
protected override void OnHandlePropTypeBlockCcControl(CCNode node, CCNode parent, string propertyName,
BlockCCControlData blockControlData, CCBReader reader)
{
if (propertyName == PROPERTY_CCCONTROL)
{
((CCControl) node).AddTargetWithActionForControlEvents(blockControlData.mTarget, blockControlData.mSELCCControlHandler,
blockControlData.mControlEvents);
}
else
{
base.OnHandlePropTypeBlockCcControl(node, parent, propertyName, blockControlData, reader);
}
}
开发者ID:HarkDev,项目名称:cocos2d-xna,代码行数:13,代码来源:CCControlLoader.cs
示例17: OnHandlePropTypeBlendFunc
protected override void OnHandlePropTypeBlendFunc(CCNode node, CCNode parent, string propertyName, CCBlendFunc blendFunc,
CCBReader reader)
{
if (propertyName == PROPERTY_BLENDFUNC)
{
// TODO Not exported by CocosBuilder yet!
// ((CCScale9Sprite )node).setBlendFunc(blendFunc);
}
else
{
base.OnHandlePropTypeBlendFunc(node, parent, propertyName, blendFunc, reader);
}
}
开发者ID:KogleDK,项目名称:cocos2d-xna-1,代码行数:13,代码来源:CCScale9SpriteLoader.cs
示例18: OnHandlePropTypeIntegerLabeled
protected override void OnHandlePropTypeIntegerLabeled(CCNode node, CCNode parent, string propertyName, int pIntegerLabeled,
CCBReader reader)
{
if (propertyName == PROPERTY_EMITERMODE)
{
// FIX ME: We want to set EmitterMode only during construction of particle System
// For now we will comment this out
// ((CCParticleSystemQuad) node).EmitterMode = (CCEmitterMode) pIntegerLabeled;
}
else
{
base.OnHandlePropTypeIntegerLabeled(node, parent, propertyName, pIntegerLabeled, reader);
}
}
开发者ID:KerwinMa,项目名称:CocosSharp,代码行数:14,代码来源:CCParticleSystemQuadLoader.cs
示例19: OnHandlePropTypePoint
protected override void OnHandlePropTypePoint(CCNode node, CCNode parent, string propertyName, CCPoint point, CCBReader reader)
{
if (propertyName == PROPERTY_VECTOR)
{
((CCLayerGradient) node).Vector = point;
// TODO Not passed along the ccbi file.
// ((CCLayerGradient *)node).setCompressedInterpolation(true);
}
else
{
base.OnHandlePropTypePoint(node, parent, propertyName, point, reader);
}
}
开发者ID:HarkDev,项目名称:cocos2d-xna,代码行数:14,代码来源:CCLayerGradientLoader.cs
示例20: OnHandlePropTypeColor3
protected override void OnHandlePropTypeColor3(CCNode node, CCNode parent, string propertyName, CCColor3B color, CCBReader reader)
{
if (propertyName == PROPERTY_STARTCOLOR)
{
((CCLayerGradient) node).StartColor = color;
}
else if (propertyName == PROPERTY_ENDCOLOR)
{
((CCLayerGradient) node).EndColor = color;
}
else
{
base.OnHandlePropTypeColor3(node, parent, propertyName, color, reader);
}
}
开发者ID:HarkDev,项目名称:cocos2d-xna,代码行数:15,代码来源:CCLayerGradientLoader.cs
注:本文中的CCBReader类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论