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; }
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); }
/// <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(); }
public override void Dispose() { base.Dispose(); hoverTexture.Dispose(); descriptionElement.Dispose(); }
public override void Dispose() { base.Dispose(); texture?.Dispose(); hoverTexture?.Dispose(); }
public override void Dispose() { base.Dispose(); barTexture.Dispose(); flashTexture.Dispose(); valueTexture.Dispose(); }
public override void Dispose() { base.Dispose(); hoverText?.Dispose(); normalText?.Dispose(); }
public override void Dispose() { base.Dispose(); caretTexture.Dispose(); textTexture.Dispose(); }
/// <summary> /// Disposes of the button. /// </summary> public override void Dispose() { base.Dispose(); releasedTexture.Dispose(); pressedTexture.Dispose(); hoverTexture.Dispose(); }
public override void Dispose() { base.Dispose(); closeIconHoverTexture.Dispose(); menuIconHoverTexture.Dispose(); listMenu?.Dispose(); }
public override void Dispose() { base.Dispose(); hoverTexture.Dispose(); normalText?.Dispose(); pressedText?.Dispose(); disabledTexture?.Dispose(); }
public override void Dispose() { base.Dispose(); handleTexture.Dispose(); hoverTextTexture.Dispose(); waterTexture.Dispose(); alarmValueTexture.Dispose(); }
public override void Dispose() { base.Dispose(); leftHighlightTexture.Dispose(); rightHighlightTexture.Dispose(); releasedButtonTexture.Dispose(); pressedButtonTexture.Dispose(); }
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(); }
public override void Dispose() { base.Dispose(); hoverTexture.Dispose(); dropDownTexture.Dispose(); scrollbarTexture.Dispose(); scrollbar?.Dispose(); }
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(); } } }
public void Dispose() { foreach (var val in interactiveElements) { val.Value.Dispose(); } foreach (var val in staticElements) { val.Value.Dispose(); } staticElementsTexture.Dispose(); Composed = false; }
public override void Dispose() { base.Dispose(); highlightTexture.Dispose(); placeHolderTextTexture?.Dispose(); }
public override void Dispose() { textTexture?.Dispose(); }
public override void Dispose() { base.Dispose(); buttonHighlightTexture.Dispose(); }
public void Dispose() { Texture?.Dispose(); }
public override void Dispose() { base.Dispose(); onTexture.Dispose(); }
public override void Dispose() { Texture?.Dispose(); Texture = null; }
public override void Dispose() { base.Dispose(); handleTexture.Dispose(); }