本文整理汇总了C#中FAtlasElement类的典型用法代码示例。如果您正苦于以下问题:C# FAtlasElement类的具体用法?C# FAtlasElement怎么用?C# FAtlasElement使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FAtlasElement类属于命名空间,在下文中一共展示了FAtlasElement类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SetHole1
public void SetHole1(FAtlasElement holeElement,FAtlasElement toDigElement)
{
_elementHole1=holeElement;
_elementToDig1=toDigElement;
_hole1Offset=_elementHole1.uvTopLeft-_elementToDig1.uvTopLeft;
needsApply = true;
}
示例2: SetHole0
public void SetHole0(FAtlasElement holeElement,FAtlasElement toDigElement)
{
_elementHole0=holeElement;
_elementToDig0=toDigElement;
_hole0Offset=_elementHole0.uvTopLeft-_elementToDig0.uvTopLeft;
needsApply = true;
}
示例3: Init
protected void Init(FFacetType facetType, FAtlasElement element, int numberOfFacetsNeeded)
{
_element = element;
base.Init(facetType,_element.atlas,numberOfFacetsNeeded);
HandleElementChanged();
}
示例4: UpdateToDig0
public void UpdateToDig0(FAtlasElement toDigElement)
{
if (_elementHole0!=null) {
_elementToDig0=toDigElement;
_hole0Offset=_elementHole0.uvTopLeft-_elementToDig0.uvTopLeft;
needsApply = true;
}
}
示例5: FSplitSprite
public FSplitSprite(FAtlasElement element)
: base()
{
Init(FFacetType.Quad, element,0); //this will call HandleElementChanged(), which will call SetupSlices();
_isAlphaDirty = true;
UpdateLocalVertices();
}
示例6: FFont
public FFont(string name, FAtlasElement element, string configPath, FTextParams fontTextParams)
{
_name = name;
_element = element;
_configPath = configPath;
_fontTextParams = fontTextParams;
LoadAndParseConfigFile();
}
示例7: WTAnimation
public WTAnimation(string name, FAtlasElement[] spriteFrames, float minFrameDuration, float maxFrameDuration, bool isLooping)
{
this.spriteFrames = spriteFrames;
this.name = name;
this.isLooping = isLooping;
this.minFrameDuration = minFrameDuration;
this.maxFrameDuration = maxFrameDuration;
this.frameDuration = this.minFrameDuration;
}
示例8: FSprite
public FSprite (FAtlasElement element) : base()
{
_localVertices = new Vector2[4];
Init(FFacetType.Quad, element,1);
_isAlphaDirty = true;
UpdateLocalVertices();
}
示例9: Init
protected void Init(FMeshData meshData, FAtlasElement element)
{
_meshData = meshData;
_previousMeshDataVersion = _meshData.version;
Init(_meshData.facetType, element,meshData.facets.Count);
_isMeshDirty = true;
_isAlphaDirty = true;
}
示例10: AddElement
//It's recommended to use myAtlas.CreateElement() instead of this
public void AddElement(FAtlasElement element)
{
if(_allElementsByName.ContainsKey(element.name))
{
throw new FutileException("Duplicate element name '" + element.name +"' found! All element names must be unique!");
}
else
{
_allElementsByName.Add (element.name, element);
}
}
示例11: FFont
public FFont(string name, FAtlasElement element, string configPath, float offsetX, float offsetY, FTextParams textParams)
{
_name = name;
_element = element;
_configPath = configPath;
_textParams = textParams;
_offsetX = offsetX;
_offsetY = offsetY;
LoadAndParseConfigFile();
}
示例12: FShadowSprite
public FShadowSprite(FAtlasElement element, float shadowOffsetX, float shadowOffsetY)
: base()
{
_shadowOffsetX = shadowOffsetX;
_shadowOffsetY = shadowOffsetY;
Init(FFacetType.Quad, element,0); //this will call HandleElementChanged(), which will call SetupSlices();
_isAlphaDirty = true;
UpdateLocalVertices();
}
示例13: FractalElement
public FractalElement(float size,bool root,int maxChainCount,FAtlasElement atlasElement=null,float spriteScaleRatio=1f)
{
_size=size;
_root=root;
_spriteScaleRatio=spriteScaleRatio;
_maxChaincount=maxChainCount;
_atlasElement=atlasElement;
if (_atlasElement==null) {
_atlasElement=Futile.atlasManager.GetElementWithName("Futile_White");
}
_elements=new List<FractalElement>();
Build();
}
示例14: CircularParticleSystem
public CircularParticleSystem(FAtlasElement element, float innerRadius, float lifetime, float speed, float particlesPerSecond, int maxParticleCount)
: base(maxParticleCount)
{
this.element = element;
this.innerRadius = innerRadius;
this.lifetime = lifetime;
this.speed = speed;
this.timePerParticle = 1.0f / particlesPerSecond;
timeUntilNextParticle = timePerParticle;
particleDef = new FParticleDefinition (element);
particleDef.endColor = Color.white.CloneWithNewAlpha (0.0f);
ListenForAfterUpdate (HandleUpdate);
}
示例15: FSliceSprite
public FSliceSprite (FAtlasElement element, float width, float height, float insetTop, float insetRight, float insetBottom, float insetLeft) : base()
{
_width = width;
_height = height;
_insetTop = insetTop;
_insetRight = insetRight;
_insetBottom = insetBottom;
_insetLeft = insetLeft;
Init(FFacetType.Quad, element,0); //this will call HandleElementChanged(), which will call SetupSlices();
_isAlphaDirty = true;
UpdateLocalVertices();
}