private bool RebuildNeeded() { int ch = MadHashCode.FirstPrime; ch = MadHashCode.Add(ch, BuildVersion); ch = MadHashCode.Add(ch, spriteObject != null ? spriteObject.GetHashCode() : 0); ch = MadHashCode.AddList(ch, spritesBackground); ch = MadHashCode.AddList(ch, spritesForeground); ch = MadHashCode.Add(ch, spriteObjectPivot); ch = MadHashCode.Add(ch, label); ch = MadHashCode.Add(ch, effectBurn); ch = MadHashCode.Add(ch, effectBurnSprite); ch = MadHashCode.Add(ch, rectTransform.pivot); if (ch != lastRebuildHash || dirty) { lastRebuildHash = ch; dirty = false; return(true); } else { return(false); } }
private bool RebuildNeeded() { int ch = MadHashCode.FirstPrime; ch = MadHashCode.AddList(ch, spritesBackground); ch = MadHashCode.AddList(ch, spritesForeground); if (ch != lastRebuildHash || dirty) { lastRebuildHash = ch; dirty = false; return true; } else { return false; } }
private bool RebuildNeeded() { int ch = MadHashCode.FirstPrime; ch = MadHashCode.Add(ch, spriteBar != null ? spriteBar.GetInstanceID() : 0); ch = MadHashCode.Add(ch, spriteBarMaterial != null ? spriteBarMaterial.GetInstanceID() : 0); ch = MadHashCode.AddList(ch, spritesBackground); ch = MadHashCode.AddList(ch, spritesForeground); ch = MadHashCode.Add(ch, (int)spriteBarColorType); ch = MadHashCode.Add(ch, (int)growDirection); ch = MadHashCode.Add(ch, label); ch = MadHashCode.Add(ch, effectBurn); ch = MadHashCode.Add(ch, effectBurnSprite); ch = MadHashCode.Add(ch, rectTransform.pivot); ch = MadHashCode.Add(ch, effectTiled); ch = MadHashCode.Add(ch, effectTiledSprite); ch = MadHashCode.Add(ch, barImageRepeater); // Cipsoft change //ch = HashAdd(ch, panel); //ch = HashAdd(ch, textureMode); //ch = HashAddArray(ch, texturesBackground); //ch = HashAddTexture(ch, textureBar); //ch = HashAddArray(ch, texturesForeground); //ch = HashAdd(ch, atlas); //ch = HashAddArray(ch, atlasTexturesBackground); //ch = HashAdd(ch, atlasTextureBarGUID); //ch = HashAddArray(ch, atlasTexturesForeground); //ch = HashAdd(ch, guiDepth); //ch = HashAdd(ch, growDirection); //ch = HashAdd(ch, effectBurn); //ch = HashAddTexture(ch, effectBurnTextureBar); //ch = HashAdd(ch, atlasEffectBurnTextureBarGUID); //ch = HashAdd(ch, labelEnabled); //ch = HashAdd(ch, labelFont); //ch = HashAdd(ch, effectFollow); //ch = HashAdd(ch, premultipliedAlpha); if (ch != lastRebuildHash || dirty) { lastRebuildHash = ch; dirty = false; return(true); } else { return(false); } }