예제 #1
0
    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;
        }
    }
예제 #2
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;
        }
    }
예제 #3
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;
     }
 }
예제 #4
0
    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;
        }
    }
예제 #5
0
    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;
        }
    }
예제 #6
0
    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;
        }
    }
예제 #8
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;
            }
        }