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