Quantcast
Download
(79 Kb)
Download
Updated: 11-30-16 02:13 PM
Pictures
File Info
Compatibility:
Return to Karazhan (7.1.5)
Updated:11-30-16 02:13 PM
Created:10-04-09 06:21 PM
Downloads:13,694
Favorites:67
MD5:
7.1.5

oUF Simple  Popular! (More than 5000 hits)

Version: 710.20161130
by: zork [More]


Intro

oUF_Simple is a unit layout for oUF. It is a mediator between oUF_SimpleConfig and oUF.
The nameplate feature is brand new. It is not baked into the oUF core yet.
To get it done I had to embed oUF for now.
Documentation
oUF_SimpleConfig documentation
Slash command
/rsim
Supported units
  • player
  • target
  • targettarget
  • focus
  • pet
  • party
  • nameplates !
  • boss
  • raid
Supported elements
  • healthbar
  • absorbbar
  • powerbar
  • classbar
  • altpowerbar
  • raidmark
  • buffs
  • debuffs
Embedded modules
  • rAbsorbBar
  • rClassBar
Requires
rLib, oUF_SimpleConfig, oUF is embedded atm!
Git
https://github.com/zorker/rothui/tre...7.0/oUF_Simple

Optional Files (0)


Archived Files (18)
File Name
Version
Size
Author
Date
710.20161117
78kB
zork
11-17-16 11:42 AM
710.20161114
78kB
zork
11-14-16 11:40 AM
710.20161027
80kB
zork
10-27-16 12:36 PM
700.20161012
78kB
zork
10-12-16 11:28 AM
700.20161011-2
77kB
zork
10-11-16 12:27 PM
700.20161009
77kB
zork
10-09-16 02:31 PM
700.20161006
88kB
zork
10-06-16 03:35 PM
700.20161005
87kB
zork
10-05-16 03:37 PM
700.20161004-2
80kB
zork
10-04-16 12:41 PM
700.20161004
17kB
zork
10-04-16 07:30 AM
50001.02
54kB
zork
09-21-12 02:35 PM
4.003
11kB
zork
06-29-11 04:36 PM
4.002
11kB
zork
05-18-11 03:20 PM
4.001
7kB
zork
05-15-11 03:29 PM
004
36kB
zork
06-29-10 02:39 AM
003
13kB
zork
10-06-09 04:28 PM
002
9kB
zork
10-05-09 01:37 PM
001
7kB
zork
10-04-09 06:21 PM


Post A Reply Comment Options
Unread 10-13-10, 06:06 PM  
Improstor
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
First off, thank you for this awesome laylout. Due to my limited lua knowledge, it is very first time I could set up oUF to my needs.

Anyway, as patch 4.0.1 is live, may I ask if you plan to update it to new oUF version/4.0.1 patch ? Currently I'm using just random UF to get over this new patch madness.

Thank You!
Report comment to moderator  
Reply With Quote
Unread 07-18-10, 06:29 PM  
Flak
A Murloc Raider

Forum posts: 4
File comments: 86
Uploads: 0
I think this tutorial layout may be my fav so far. Can someone tell me how to add DK Runes?


Thanks
Report comment to moderator  
Reply With Quote
Unread 07-18-10, 04:10 AM  
Icerat
A Fallenroot Satyr

Forum posts: 28
File comments: 46
Uploads: 0
I been playing about and learning allot i think lol, after a bit of trial and error I think I figured out how to get the level and power values to show up under the health bar.

Level:
Code:
 
-- gen lvl string func
  lib.gen_lvlstring = function(f)
	-- Level string
	local lvl = lib.gen_fontstring(f.Health, cfg.font, 9, "THINOUTLINE")
	lvl:SetPoint("LEFT", f.Health, "LEFT", 20, 0)
	f:Tag(lvl, "[shortclassification][smartlevel]")
	
	end
Power:
Code:
	
--gen pwr strings func
  lib.gen_pwrstring = function(f)
    -- Power string
    local pwrval = lib.gen_fontstring(f.Health, cfg.font, 9, "THINOUTLINE")
    pwrval:SetPoint("RIGHT", f.Health, "RIGHT", -2, -30)
    f:Tag(pwrval, "[curpp]/[maxpp]%")
	
	end
Is this the correct way to do it ?
How do I get it to display in the following format: LVL NAME ie 80 Icerat i keep getting overlap.

I'm also trying to get it to show the lvl colour in relation to my level, alter looking at ouf_Lumen I see he has created a custom tag [mySmartLevel] is this the only way?
Last edited by Icerat : 07-18-10 at 04:10 AM.
Report comment to moderator  
Reply With Quote
Unread 07-16-10, 01:43 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1633
File comments: 3618
Uploads: 118
Just start out slow and keep progressing. Do not overdo stuff or you will get overwhelmed just at the start. It's hard enough to understand step 1 if you come from nowhere.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW) | TDMOG

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Report comment to moderator  
Reply With Quote
Unread 07-15-10, 01:36 PM  
Icerat
A Fallenroot Satyr

Forum posts: 28
File comments: 46
Uploads: 0
Just come across this and its inspired me to have a go at creating my own layout once i get home (@Work at mo).

That being said im a complete lua nooob lol and was wondering how hard would it be to add dk runes and a lvl on player and target frames?

Looking at the oUF lumen code it doesn't look to bad but all his doe is in one file not broke up like this.

I like the modular approach as it will help me understand / break it down in my mind.

Great work
Report comment to moderator  
Reply With Quote
Unread 07-05-10, 01:02 AM  
Areul
A Kobold Labourer

Forum posts: 0
File comments: 122
Uploads: 0
Hey sir ! XD

if I want to add a mana text,how?

Code:
  --gen mp strings func
  lib.gen_mpstrings = function(f)
    -- mp /name text strings
    local name = lib.gen_fontstring(f.Power, cfg.font, 13, "THINOUTLINE")
    name:SetPoint("LEFT", f.Power, "LEFT", 2, 0)
    name:SetJustifyH("LEFT")
    
    local hpval = lib.gen_fontstring(f.Power, cfg.font, 13, "THINOUTLINE")
    hpval:SetPoint("RIGHT", f.Power, "RIGHT", -2, 0)
    --this will make the name go "..." when its to long
    --name:SetPoint("RIGHT", hpval, "LEFT", -5, 0)
    
    --f:Tag(name, "[name]")
    f:Tag(hpval, "[curmp]/[perhp]%")
  end
I try to edit like this ..but..
Report comment to moderator  
Reply With Quote
Unread 07-04-10, 01:14 PM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1633
File comments: 3618
Uploads: 118
Follow the tutorial link. Raid frames are implemented now and the code is on GoogleCode. This is only a tutorial layout nothing more.

http://www.wowinterface.com/forums/s...ad.php?t=33566
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW) | TDMOG

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Last edited by zork : 07-04-10 at 01:15 PM.
Report comment to moderator  
Reply With Quote
Unread 07-04-10, 07:14 AM  
Areul
A Kobold Labourer

Forum posts: 0
File comments: 122
Uploads: 0
Bug ..

Code:
1x oUF_Simple\core.lua:192: attempt to call method 'SpawnHeader' (a nil value)

Locals:

  ---
no party frame in raid group..
Report comment to moderator  
Reply With Quote
Unread 07-03-10, 06:39 PM  
Game92
A Molten Giant
 
Game92's Avatar
AddOn Author - Click to view AddOns

Forum posts: 744
File comments: 733
Uploads: 14
Does anyone know how to do add borders on buffs?
Report comment to moderator  
Reply With Quote
Unread 06-30-10, 02:46 AM  
Drauer
A Fallenroot Satyr
 
Drauer's Avatar
AddOn Author - Click to view AddOns

Forum posts: 22
File comments: 89
Uploads: 25
Thanks for this tutorial, you're awesome
__________________
Quando omni flunkus moritati
Report comment to moderator  
Reply With Quote
Unread 06-30-10, 01:17 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1633
File comments: 3618
Uploads: 118
Re: Re: Re: Nice Ouf Layout

@Ferous
I applied no overlay (border) texture, that is correct and intended, but oUF does its own "button.overlay" in the elements/aura.lua that becomes visible for specific debuffs. The outer glow is done by using SetBackDrop(). You can skin the overlay ANYTIME.
Check http://code.google.com/p/rothui/sour...oUF_D3Orbs.lua and search for "button.overlay" this is how I do it for oUF_D3Orbs just copy that part over to the "lib.PostCreateIcon" function in lib.lua
Skinning aura icons in oUF is always done in the CreateIcon function.

@Poltig
Check core.lua how I implemented one function for each unit. I applied self.mystyle = "player" etc. so you always know which style function called the lib.function. So adjust your condition to
Code:
if self.mystyle == "player" then
  ...
end
Nevertheless this is just a tutorial, something that can be used to develop own stuff, not sth. that can be used out of the box.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW) | TDMOG

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Last edited by zork : 06-30-10 at 01:26 AM.
Report comment to moderator  
Reply With Quote
Unread 06-29-10, 11:07 PM  
Ferous
Sheer Sense of Doom
AddOn Author - Click to view AddOns

Forum posts: 863
File comments: 564
Uploads: 32
Re: Re: Nice Ouf Layout

For some reason.... the buffs for oUF aren't being skinned by the code.. for some weird reason. Idk why, maybe an AddOn is conflicting... I'll have to dig deeper.

edit - does it have something to do with the new oUF release?
Last edited by Ferous : 06-29-10 at 11:19 PM.
Report comment to moderator  
Reply With Quote
Unread 06-29-10, 10:30 AM  
Politig
A Chromatic Dragonspawn
AddOn Compiler - Click to view compilations

Forum posts: 176
File comments: 402
Uploads: 1
When the realms go up, I'll be playing around with this a lot. I do have a quick question though; is there a way to change class colors/power colors? I've been playing with oUF ALZA and there's a bit here:
Code:
local powercolors = {
    ["MANA"] = {.3, .5, .85},
    ["RAGE"] = {.9, .2, .3},
    ["FUEL"] = {0, 0.55, 0.5},
    ["FOCUS"] = {.9, .9, .1},
    ["ENERGY"] = {.9, .9, .1},
    ["AMMOSLOT"] = {0.8, 0.6, 0},
    ["RUNIC_POWER"] = {.35, .45, .6},
    ["POWER_TYPE_STEAM"] = {0.55, 0.57, 0.61},
    ["POWER_TYPE_PYRITE"] = {0.60, 0.09, 0.17},
}
Is there some local or something that could be placed into oUF Simple as well?

EDIT: I've been playing with settings (I'm new) and I tried to add a little name hider thing:

Code:
  --gen hp strings func
  lib.gen_hpstrings = function(f)
    --health/name text strings
    local name = lib.gen_fontstring(f.Health, cfg.font, 13, "THINOUTLINE")
    name:SetPoint("LEFT", f.Health, "LEFT", 2, 0)
    name:SetJustifyH("LEFT")
    local hpval = lib.gen_fontstring(f.Health, cfg.font, 13, "THINOUTLINE")
    hpval:SetPoint("LEFT", f.Health, "RIGHT", -2, 0)
    --this will make the name go "..." when its to long
    name:SetPoint("RIGHT", hpval, "LEFT", -5, 0)
    
    f:Tag(name, "[name]")
    f:Tag(hpval, "[curhp]/[perhp]%")
      
      if (unit == "player") then
        name:Hide()
      else
        name:Show()
      end
  end
My edit is in red. However, nothing in game changes. What am I doing wrong?
Last edited by Politig : 06-29-10 at 03:31 PM.
Report comment to moderator  
Reply With Quote
Unread 06-29-10, 05:51 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1633
File comments: 3618
Uploads: 118
Re: Nice Ouf Layout

It's a tutorial. I show you how to do stuff and you start editing. Be your own creative director.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW) | TDMOG

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Report comment to moderator  
Reply With Quote
Unread 06-29-10, 05:39 AM  
Tagnar31
A Kobold Labourer
 
Tagnar31's Avatar

Forum posts: 0
File comments: 20
Uploads: 0
Nice Ouf Layout

Ye this layout is awesome...however the cfg.lua is a bit restricted :P...I wonder if you can put the options to able/disable buffs/debuffs on target/party/player/pet/focus, to show/not show the castbars or hide the latency on the castbars also the ability to change the font etc. etc. ...If you can do all these to this addon it might just become my favourite OuF Layout
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: