Thread: Help with tags
View Single Post
10-18-09, 10:37 AM   #6
Waverian
A Chromatic Dragonspawn
AddOn Author - Click to view addons
Join Date: Dec 2006
Posts: 188
Originally Posted by xtothx View Post
Code:
                 self.Info = self:CreateFontString(nil, self, 'GameFontHighlightSmallLeft')             
		self.Info:SetFont(font, fontsize)
                self.Info:SetPoint('RIGHT', self, 'LEFT', 140, -34)
		self:Tag(self.Info, '[white][name]')
I am beginner in lua, but thanks for link
You misunderstood. You either need to explicitly set the width and height of your fontstring, or you need to set two anchors. One for the left side and one for the right side - you just have one for the right side.

lua Code:
  1. self.Info = self:CreateFontString(nil, self, 'GameFontHightlightSmallLeft')
  2. self.Info:SetFont(font, fontsize)
  3. -- main anchor
  4. self.Info:SetPoint('TOPLEFT', self, 'BOTTOMLEFT')
  5. -- right side anchor to truncate
  6. self.Info:SetPoint('RIGHT', YourClassificationFontstringName, 'LEFT')
  7. self:Tag(self.Info, '[white][name]')
  Reply With Quote