Example #1
0
        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");
        }
Example #2
0
 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);
 }
Example #3
0
        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);
        }
Example #4
0
        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);
        }
Example #5
0
 public void SetNormalFontObject(IFontString fontString)
 {
     throw new NotImplementedException();
 }
Example #6
0
 public void SetHighlightFontObject(IFontString font)
 {
     throw new NotImplementedException();
 }
Example #7
0
 public void SetFontString(IFontString fontString)
 {
     throw new NotImplementedException();
 }
Example #8
0
 public void SetDisabledFontObject(IFontString font)
 {
     throw new NotImplementedException();
 }
Example #9
0
 public TextScoper()
 {
     this.fontString = Global.Frames.UIParent.CreateFontString();
 }