Beispiel #1
0
        public void Recompose(ICoreClientAPI capi)
        {
            Texture?.Dispose();
            Texture = new TextTextureUtil(capi).GenTextTexture(Stack.GetName(), CairoFont.WhiteSmallText());

            scissorBounds = ElementBounds.FixedSize(50, 50);
            scissorBounds.ParentBounds = capi.Gui.WindowBounds;
        }
Beispiel #2
0
        public void SetPlaceHolderText(string text)
        {
            TextTextureUtil util = new TextTextureUtil(this.api);

            placeHolderTextTexture?.Dispose();
            CairoFont font = Font.Clone();

            font.Color[3]         *= 0.5;
            placeHolderTextTexture = util.GenTextTexture(text, font);
        }
Beispiel #3
0
        /// <summary>
        /// Disposes of the button.
        /// </summary>
        public override void Dispose()
        {
            base.Dispose();

            activeTexture.Dispose();
            hoverText?.Dispose();
        }
 public override void Dispose()
 {
     base.Dispose();
     texture.Dispose();
     descriptionElement?.Dispose();
     titleElement?.Dispose();
 }
Beispiel #5
0
        public override void Dispose()
        {
            base.Dispose();

            hoverTexture.Dispose();
            descriptionElement.Dispose();
        }
        public override void Dispose()
        {
            base.Dispose();

            texture?.Dispose();
            hoverTexture?.Dispose();
        }
Beispiel #7
0
 public override void Dispose()
 {
     base.Dispose();
     barTexture.Dispose();
     flashTexture.Dispose();
     valueTexture.Dispose();
 }
Beispiel #8
0
        public override void Dispose()
        {
            base.Dispose();

            hoverText?.Dispose();
            normalText?.Dispose();
        }
        public override void Dispose()
        {
            base.Dispose();

            caretTexture.Dispose();
            textTexture.Dispose();
        }
Beispiel #10
0
        /// <summary>
        /// Disposes of the button.
        /// </summary>
        public override void Dispose()
        {
            base.Dispose();

            releasedTexture.Dispose();
            pressedTexture.Dispose();
            hoverTexture.Dispose();
        }
Beispiel #11
0
        public override void Dispose()
        {
            base.Dispose();

            closeIconHoverTexture.Dispose();
            menuIconHoverTexture.Dispose();
            listMenu?.Dispose();
        }
Beispiel #12
0
        public override void Dispose()
        {
            base.Dispose();

            hoverTexture.Dispose();
            normalText?.Dispose();
            pressedText?.Dispose();
            disabledTexture?.Dispose();
        }
Beispiel #13
0
        public override void Dispose()
        {
            base.Dispose();

            handleTexture.Dispose();
            hoverTextTexture.Dispose();
            waterTexture.Dispose();
            alarmValueTexture.Dispose();
        }
Beispiel #14
0
        public override void Dispose()
        {
            base.Dispose();

            leftHighlightTexture.Dispose();
            rightHighlightTexture.Dispose();
            releasedButtonTexture.Dispose();
            pressedButtonTexture.Dispose();
        }
Beispiel #15
0
        public override void Dispose()
        {
            base.Dispose();
            modcellTexture?.Dispose();

            api.Render.GLDeleteTexture(leftHighlightTextureId);
            api.Render.GLDeleteTexture(rightHighlightTextureId);
            api.Render.GLDeleteTexture(switchOnTextureId);
        }
        public override void Dispose()
        {
            base.Dispose();

            for (int i = 0; i < hoverTextures.Length; i++)
            {
                hoverTextures[i].Dispose();
            }
            baseTexture.Dispose();
        }
Beispiel #17
0
        public override void Dispose()
        {
            base.Dispose();

            hoverTexture.Dispose();
            dropDownTexture.Dispose();
            scrollbarTexture.Dispose();

            scrollbar?.Dispose();
        }
Beispiel #18
0
        public override void Dispose()
        {
            base.Dispose();

            highlightTexture.Dispose();
            currentValueTexture.Dispose();
            listMenu?.Dispose();
            arrowDownButtonReleased.Dispose();
            arrowDownButtonPressed.Dispose();
        }
        public override void Dispose()
        {
            base.Dispose();
            listTexture.Dispose();

            foreach (var val in Elements)
            {
                val.Dispose();
            }
        }
        public override void Dispose()
        {
            base.Dispose();

            richtTextTexture?.Dispose();

            foreach (var val in Components)
            {
                val.Dispose();
            }
        }
        public override void Dispose()
        {
            base.Dispose();

            for (int i = 0; slotQuantityTextures != null && i < slotQuantityTextures.Length; i++)
            {
                slotQuantityTextures[i]?.Dispose();
            }
            slotTexture.Dispose();
            highlightSlotTexture.Dispose();
            crossedOutTexture?.Dispose();
        }
        public override void Dispose()
        {
            base.Dispose();

            baseTexture?.Dispose();
            for (int i = 0; i < hoverTextures.Length; i++)
            {
                hoverTextures[i].Dispose();
                if (notifyTextures != null)
                {
                    notifyTextures[i].Dispose();
                }
            }
        }
Beispiel #23
0
        public void Dispose()
        {
            foreach (var val in interactiveElements)
            {
                val.Value.Dispose();
            }

            foreach (var val in staticElements)
            {
                val.Value.Dispose();
            }

            staticElementsTexture.Dispose();

            Composed = false;
        }
Beispiel #24
0
 public override void Dispose()
 {
     base.Dispose();
     highlightTexture.Dispose();
     placeHolderTextTexture?.Dispose();
 }
Beispiel #25
0
 public override void Dispose()
 {
     textTexture?.Dispose();
 }
Beispiel #26
0
 public override void Dispose()
 {
     base.Dispose();
     buttonHighlightTexture.Dispose();
 }
Beispiel #27
0
 public void Dispose()
 {
     Texture?.Dispose();
 }
Beispiel #28
0
        public override void Dispose()
        {
            base.Dispose();

            onTexture.Dispose();
        }
Beispiel #29
0
 public override void Dispose()
 {
     Texture?.Dispose(); Texture = null;
 }
Beispiel #30
0
        public override void Dispose()
        {
            base.Dispose();

            handleTexture.Dispose();
        }