private void IdentifyFrameElements() { var buttonName = this.button.GetName(); this.iconTexture = this.wrapper.Wrap <ITexture>(buttonName + "Icon"); this.cooldownFrame = this.wrapper.Wrap <IFrame>(buttonName + "Cooldown"); this.hotKeyFont = this.wrapper.Wrap <IFontString>(buttonName + "HotKey"); }
public TitleBar(ContentContainer attachedFrame) { this.attachedFrame = attachedFrame; this.dragableButton = CreateDragableButton(this.attachedFrame); this.textFrame = CreateText(this.dragableButton); this.background = CreateBackground(this.dragableButton); this.closeButton = CreateCloseButton(this.dragableButton, () => { this.attachedFrame.Hide(); }); this.attachedFrame.AttachTo(this.dragableButton.Button); this.borderFrame = CreateBorder(this.dragableButton); this.iconTexture = CreateIconTexture(this.dragableButton); }
public FormattedTextFrame(IFlags flags) { var name = GenerateFrameName(); this.frame = (IFrame)Global.FrameProvider.CreateFrame(FrameType.Frame, name); this.label = this.frame.CreateFontString(name + "Label", Layer.BORDER); this.label.SetAllPoints(this.frame); this.frame.SetHeight(flags.FontSize); this.label.SetFont(flags.Font, flags.FontSize); this.label.SetJustifyH(JustifyH.LEFT); }
private IFrame GetObjectOfLabel(IFontString label) { var frame = label.GetParent(); while (!this.textLabelObjectRegex.IsMatch(frame.GetName())) { frame = frame.GetParent(); if (frame == null) { throw new UiSimuationException("Highest level object not found."); } } return((IFrame)frame); }
public void SetNormalFontObject(IFontString fontString) { throw new NotImplementedException(); }
public void SetHighlightFontObject(IFontString font) { throw new NotImplementedException(); }
public void SetFontString(IFontString fontString) { throw new NotImplementedException(); }
public void SetDisabledFontObject(IFontString font) { throw new NotImplementedException(); }
public TextScoper() { this.fontString = Global.Frames.UIParent.CreateFontString(); }