Thread Tools Display Modes
03-12-11, 09:19 AM   #1
Paktolol
A Defias Bandit
Join Date: Mar 2010
Posts: 3
Little problem (i'm new to lua editing)

Hi everyone,I'm realizing a new ui for myself (and maybe release it later).
I am trying to make an oUF layot made just of words.
But the problem is that I have no real big experience with oUF and lua (except some easy aptechka modding).
In fact I am trying to create simple a layout text only and anchor it to bars made with http://wow.curse.com/downloads/wow-a...fusionhud.aspx

I already tried


I just want to create 3 simple bars:
-Name,coloured by class (Tar,tot,focus,tof)
-Current HP / HP % (Player,tar,tot,tott,focus,tof)
-Power / Power % (without % if Power max is 100) , Mana / Mana% (player,tar)
-Threat (obviously only player).
  Reply With Quote
03-12-11, 06:06 PM   #2
Dawn
A Molten Giant
 
Dawn's Avatar
AddOn Author - Click to view addons
Join Date: May 2006
Posts: 918
First of all, that's entirely possible.

You need the very basic structure of an oUF layout and use tags to display your text based information. For example, like that:
Code:
	player = function(self, ...)
		self.Name = self:CreateFontString(nil, "OVERLAY")
		self.Name:SetFont(Font, Size, Flag)
		self:Tag(self.Name, '[threatcolor][name] [hpvalue] [perhp]')			
		self.Name:SetPoint("LEFT", self, 0, 0)
		
		self:SetSize(130, 20)		
	end,
You don't necessarily need to anchor the text to those bars. The text will be moveable through oUF_MovableFrames (plugin) in game. And/or you can simply place them directly via "SetPoint" next to the HUD.

Anyway, I would recommend to build the HUD through oUF, too.
__________________
Rock: "We're sub-standard DPS. Nerf Paper, Scissors are fine."
Paper: "OMG, WTF, Scissors!"
Scissors: "Rock is OP and Paper are QQers. We need PvP buffs."

"neeh the game wont be remembered as the game who made blizz the most money, it will be remembered as the game who had the most QQ'ers that just couldnt quit the game for some reason..."

  Reply With Quote
03-12-11, 08:01 PM   #3
Paktolol
A Defias Bandit
Join Date: Mar 2010
Posts: 3
I saw only very old oUF projects with huds instead of classic layout,do you think it is "easy"?
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Little problem (i'm new to lua editing)


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off