bool RebuildNeeded() {
        if (panel == null) {
            return false;
        }

        var hash = new MadHashCode();
        hash.AddEnumerable(texturesBackground);
        hash.Add(atlas);
        hash.Add(textureIcon);
        hash.Add(textureSlot);
        hash.Add(atlasTextureIconGUID);
        hash.Add(atlasTextureSlotGUID);
        hash.Add(repeatCount);
        hash.Add(repeatPositionDelta);
        hash.Add(guiDepth);
        hash.Add(growType);
        hash.Add(fillDirection);
        hash.Add(labelEnabled);
        hash.Add(labelFont);
        hash.Add(pivot);
        hash.Add(premultipliedAlpha);
        
        int hashNumber = hash.GetHashCode();
        
        if (hashNumber != lastRebuildHash || dirty) {
            lastRebuildHash = hashNumber;
            dirty = false;
            return true;
        } else {
            return false;
        }
    }
Beispiel #2
0
 public override int GetHashCode() {
     var hash = new MadHashCode();
     hash.Add(spriteGUID);
     hash.Add(color);
     
     return hash.GetHashCode();
 }
        public override int GetHashCode()
        {
            var hash = new MadHashCode();

            hash.Add(texture);
            hash.Add(color);

            return(hash.GetHashCode());
        }
Beispiel #4
0
    private bool RebuildNeeded() {
        if (panel == null) {
            return false;
        }

        var hash = new MadHashCode();

        hash.Add(textureMode);
        hash.Add(atlas);

        hash.Add(objectTexture);
        hash.Add(objectAtlasTextureGUID);

        hash.Add(objectAnchor);

        hash.AddEnumerable(texturesBackground);
        hash.AddEnumerable(atlasTexturesBackground);
        hash.AddEnumerable(texturesForeground);
        hash.AddEnumerable(atlasTexturesForeground);

        hash.Add(transformTranslate);
        hash.Add(transformRotate);
        hash.Add(transformScale);

        hash.Add(translateFunction);
        hash.Add(rotateFunction);
        hash.Add(scaleFunction);

        hash.Add(labelEnabled);
        hash.Add(labelFont);

        hash.Add(premultipliedAlpha);

        int hashNumber = hash.GetHashCode();

        if (hashNumber != lastRebuildHash || dirty) {
            lastRebuildHash = hashNumber;
            dirty = false;
            return true;
        } else {
            return false;
        }
    }
Beispiel #5
0
 bool RebuildNeeded() {
     var hash = new MadHashCode();
     hash.AddEnumerable(texturesBackground);
     hash.Add(textureBar);
     hash.AddEnumerable(texturesForeground);
     hash.Add(guiDepth);
     hash.Add(growDirection);
     hash.Add(effectBurn);
     hash.Add(labelEnabled);
     hash.Add(labelFont);
     hash.Add(effectFollow);
     hash.Add(effectFollowObject);
     
     int hashNumber = hash.GetHashCode();
 
     if (hashNumber != lastRebuildHash || dirty) {
         lastRebuildHash = hashNumber;
         dirty = false;
         return true;
     } else {
         return false;
     }
 }
    bool RebuildNeeded() {
        if (panel == null) {
            return false;
        }

        var hash = new MadHashCode();
        hash.Add(textureMode);
        hash.Add(atlas);
            
        hash.AddEnumerable(texturesBackground);
        hash.AddEnumerable(atlasTexturesBackground);
        hash.AddEnumerable(texturesForeground);
        hash.AddEnumerable(atlasTexturesForeground);
        hash.Add(renderingMethod);
        hash.Add(gridTexture);
        hash.Add(gridAtlasTextureGUID);
        hash.AddEnumerable(sequenceTextures);
        hash.AddEnumerable(sequenceAtlasTexturesGUID);
        hash.Add(gridWidth);
        hash.Add(gridHeight);
        hash.Add(gridFrameCountManual);
        hash.Add(gridFrameCount);
        hash.Add(guiDepth);
        hash.Add(labelEnabled);
        hash.Add(labelFont);
        hash.Add(premultipliedAlpha);
        
        int hashNumber = hash.GetHashCode();
        
        if (hashNumber != lastRebuildHash || dirty) {
            lastRebuildHash = hashNumber;
            dirty = false;
            return true;
        } else {
            return false;
        }
    }
    bool RebuildNeeded() {
        if (panel == null) {
            return false;
        }

        var hash = new MadHashCode();
        hash.Add(textureMode);
        hash.Add(atlas);
            
        hash.AddEnumerable(texturesBackground);
        hash.AddEnumerable(atlasTexturesBackground);
        hash.AddEnumerable(texturesForeground);
        hash.AddEnumerable(atlasTexturesForeground);
        hash.Add(renderingMethod);
        hash.Add(gridTexture);
        hash.Add(gridAtlasTextureGUID);
        hash.AddEnumerable(sequenceTextures);
        hash.AddEnumerable(sequenceAtlasTexturesGUID);
        hash.Add(gridWidth);
        hash.Add(gridHeight);
        hash.Add(gridFrameCountManual);
        hash.Add(gridFrameCount);
        hash.Add(guiDepth);
        hash.Add(labelEnabled);
        hash.Add(labelFont);
        hash.Add(premultipliedAlpha);
        
        int hashNumber = hash.GetHashCode();
        
        if (hashNumber != lastRebuildHash || dirty) {
            lastRebuildHash = hashNumber;
            dirty = false;
            return true;
        } else {
            return false;
        }
    }
    bool RebuildNeeded() {
        if (panel == null) {
            return false;
        }

        var hash = new MadHashCode();
        hash.AddEnumerable(texturesBackground);
        hash.Add(atlas);
        hash.Add(textureIcon);
        hash.Add(textureSlot);
        hash.Add(atlasTextureIconGUID);
        hash.Add(atlasTextureSlotGUID);
        hash.Add(repeatCount);
        hash.Add(repeatPositionDelta);
        hash.Add(guiDepth);
        hash.Add(growType);
        hash.Add(fillDirection);
        hash.Add(labelEnabled);
        hash.Add(labelFont);
        hash.Add(pivot);
        hash.Add(premultipliedAlpha);
        
        int hashNumber = hash.GetHashCode();
        
        if (hashNumber != lastRebuildHash || dirty) {
            lastRebuildHash = hashNumber;
            dirty = false;
            return true;
        } else {
            return false;
        }
    }
    private bool RebuildNeeded() {
        if (panel == null) {
            return false;
        }

        var hash = new MadHashCode();

        hash.Add(textureMode);
        hash.Add(atlas);

        hash.Add(objectTexture);
        hash.Add(objectAtlasTextureGUID);

        hash.Add(objectAnchor);

        hash.AddEnumerable(texturesBackground);
        hash.AddEnumerable(atlasTexturesBackground);
        hash.AddEnumerable(texturesForeground);
        hash.AddEnumerable(atlasTexturesForeground);

        hash.Add(transformTranslate);
        hash.Add(transformRotate);
        hash.Add(transformScale);

        hash.Add(translateFunction);
        hash.Add(rotateFunction);
        hash.Add(scaleFunction);

        hash.Add(labelEnabled);
        hash.Add(labelFont);

        hash.Add(premultipliedAlpha);

        int hashNumber = hash.GetHashCode();

        if (hashNumber != lastRebuildHash || dirty) {
            lastRebuildHash = hashNumber;
            dirty = false;
            return true;
        } else {
            return false;
        }
    }
Beispiel #10
0
 // ===========================================================
 // Methods
 // ===========================================================
 
 public override int GetHashCode() {
     var hash = new MadHashCode();
     hash.Add(texture);
     hash.Add(glyphs);
     hash.Add(linesCount);
     hash.Add(fillFactorTolerance);
     hash.Add(createStatus);
     hash.Add(created);
     hash.Add(material);
     hash.Add(dimensions);
     
     return hash.GetHashCode();
 }
        bool RebuildNeeded()
        {
            var hash = new MadHashCode();
            hash.AddEnumerable(texturesBackground);
            hash.Add(textureBar);
            hash.AddEnumerable(texturesForeground);
            hash.Add(guiDepth);
            hash.Add(growDirection);
            hash.Add(effectBurn);
            hash.Add(labelEnabled);
            hash.Add(labelFont);
            hash.Add(effectFollow);
            hash.Add(effectFollowObject);

            int hashNumber = hash.GetHashCode();

            if (hashNumber != lastRebuildHash || dirty) {
            lastRebuildHash = hashNumber;
            dirty = false;
            return true;
            } else {
            return false;
            }
        }
Beispiel #12
0
        public override int GetHashCode()
        {
            var hash = new MadHashCode();
            hash.Add(texture);
            hash.Add(color);

            return hash.GetHashCode();
        }
Beispiel #13
0
    private int ComputeHash() {
        var hashCode = new MadHashCode();
        hashCode.Add(configuration);
        hashCode.Add(configurationGroup);
        hashCode.Add(hideManagedObjects);
        hashCode.Add(setupMethod);
        hashCode.Add(iconTemplate);
        hashCode.Add(iconScale);
        hashCode.Add(iconOffset);
        hashCode.Add(leftSlideSprite);
        hashCode.Add(leftSlideScale);
        hashCode.Add(leftSlideOffset);
        hashCode.Add(rightSlideSprite);
        hashCode.Add(rightSlideScale);
        hashCode.Add(rightSlideOffset);
        hashCode.Add(gridWidth);
        hashCode.Add(gridHeight);
        hashCode.Add(horizontalAlign);
        hashCode.Add(verticalAlign);
        hashCode.Add(pixelsWidth);
        hashCode.Add(pixelsHeight);
        hashCode.Add(pagesOffsetManual);
        hashCode.Add(pagesOffsetFromResolution);
        hashCode.Add(enumerationType);

        return hashCode.GetHashCode();
    }
Beispiel #14
0
 int ConfigurationHash() {
     var hash = new MadHashCode();
     hash.Add(bulletTextureOff);
     hash.Add(bulletTextureOn);
     hash.Add(hideManagedObjects);
     hash.Add(bulletDistance);
     hash.Add(guiDepth);
     if (draggable != null) {
         hash.Add(draggable.dragStopCount);
     }
     return hash.GetHashCode();
 }