public void SetHologramShaderMode(HologramShaderMode mode)
        {
            if (this.IsModeBeingSet)
            {
                return;
            }
            this.IsModeBeingSet = true;

            if (mode != HologramShaderMode.Vanilla && this.ShaderVanillaChoice.Selected)
            {
                this.ShaderVanillaChoice.Selected = false;
                this.ShaderVanillaChoice.Recalculate();
            }
            if (mode != HologramShaderMode.Custom && this.ShaderCustomChoice.Selected)
            {
                this.ShaderCustomChoice.Selected = false;
                this.ShaderCustomChoice.Recalculate();
            }
            if (mode != HologramShaderMode.None && this.ShaderNoneChoice.Selected)
            {
                this.ShaderNoneChoice.Selected = false;
                this.ShaderNoneChoice.Recalculate();
            }

            this.CurrentsShaderMode = mode;

            this.IsModeBeingSet = false;
        }
Beispiel #2
0
        public void Output(
            out HologramMode mode,
            out int type,
            out float scale,
            out byte colorR,
            out byte colorG,
            out byte colorB,
            out byte alpha,
            out int direction,
            out float rotation,
            out int offsetX,
            out int offsetY,
            out int frameStart,
            out int frameEnd,
            out int frameRateTicks,
            out bool worldLight,
            out HologramShaderMode shaderMode,
            out float shaderTime,
            out int shaderType,
            out bool isActivated)
        {
            Color color;

            this.Output(
                mode: out mode,
                type: out type,
                scale: out scale,
                color: out color,
                alpha: out alpha,
                direction: out direction,
                rotation: out rotation,
                offsetX: out offsetX,
                offsetY: out offsetY,
                frameStart: out frameStart,
                frameEnd: out frameEnd,
                frameRateTicks: out frameRateTicks,
                worldLight: out worldLight,
                shaderMode: out shaderMode,
                shaderTime: out shaderTime,
                shaderType: out shaderType,
                isActivated: out isActivated
                );
            colorR = color.R;
            colorG = color.G;
            colorB = color.B;
        }
Beispiel #3
0
        ////////////////

        public void Output(
            out HologramMode mode,
            out int type,
            out float scale,
            out Color color,
            out byte alpha,
            out int direction,
            out float rotation,
            out int offsetX,
            out int offsetY,
            out int frameStart,
            out int frameEnd,
            out int frameRateTicks,
            out bool worldLight,
            out HologramShaderMode shaderMode,
            out float shaderTime,
            out int shaderType,
            out bool isActivated)
        {
            mode           = this.Mode;
            type           = this.Type;
            scale          = this.Scale;
            color          = this.Color;
            alpha          = this.Alpha;
            direction      = this.Direction;
            rotation       = this.Rotation;
            offsetX        = this.OffsetX;
            offsetY        = this.OffsetY;
            frameStart     = this.FrameStart;
            frameEnd       = this.FrameEnd;
            frameRateTicks = this.FrameRateTicks;
            worldLight     = this.WorldLighting;
            shaderMode     = this.ShaderMode;
            shaderTime     = this.ShaderTime;
            shaderType     = this.ShaderType;
            isActivated    = this.IsActivated;
        }