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

oUF Simple  Updated this week!  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 11-30-16, 04:42 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1632
File comments: 3612
Uploads: 118
oUF_Simple is dependent on the global variable oUF_SimpleConfig. The content of that variable is up to you. oUF_Simple load order is: rLib, oUF_SimpleConfig, oUF_Simple. This cannot be adjusted unless you edit oUF_Simple.

You have full control over oUF_SimpleConfig. You could add healer specific templates to your config and override your default config under certain conditions that have to be available on runtime (That means no spec. Class and unit name only).

Or you use oUF_SimpleConfig as a gate that loads other config addons of your choosing that are optional dependencies. If they are enabled they can override the default config.

How you set up your config is up to you.
__________________
| 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 : 11-30-16 at 04:47 AM.
Report comment to moderator  
Reply With Quote
Unread 11-30-16, 04:25 AM  
gmarco
A Chromatic Dragonspawn
 
gmarco's Avatar
AddOn Author - Click to view AddOns

Forum posts: 189
File comments: 100
Uploads: 33
Zork,

Not possible without rewriting the whole thing. oUF_Simple functions are dependent on the config
Just to speaking about the question.

May we have variable in OUF_Simple that points to the config with a different name or having it overwritten by a different one ? Or there is a problem related to the dependency in TOC file ?

I mean something like:

SimpleConfig = SimpleConfig_Healer ?

Then SimpleConfig_Healer is basically a copy of SimpleConfig with its changes.

Sorry if I appear tedious but I really like to understand how this thing works

Thanks anyway for your time and attention.
__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
Report comment to moderator  
Reply With Quote
Unread 11-30-16, 02:36 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1632
File comments: 3612
Uploads: 118
Not possible without rewriting the whole thing. oUF_Simple functions are dependent on the config. In theory it is possible to write an addon that has API calls to spawn units using a config but that is not how everything is set up right now.
__________________
| 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 11-30-16, 12:17 AM  
gmarco
A Chromatic Dragonspawn
 
gmarco's Avatar
AddOn Author - Click to view AddOns

Forum posts: 189
File comments: 100
Uploads: 33
Zork,

one more question.

Could the combo OUF_Simple OUF_SimpleConfig acts like all others addon of you so the latter is a template for the first ?

In this way we can posts or have multiple template not having tied to the name OUF_SimpleConfig which is in .TOC file and required by the templates\*

Lua Code:
  1. ## Dependencies: rLib, oUF_SimpleConfig

So a person could have: oUF_SimpleConfig_Healer, oUF_SimpleConfig_Gm_preferred, oUF_SimpleConfig_Test1, etc etc ... and load the one (and only one) like to use .

Thanks.
__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
Last edited by gmarco : 11-30-16 at 12:19 AM.
Report comment to moderator  
Reply With Quote
Unread 11-29-16, 10:26 AM  
gmarco
A Chromatic Dragonspawn
 
gmarco's Avatar
AddOn Author - Click to view AddOns

Forum posts: 189
File comments: 100
Uploads: 33
Hi Zork,

understood

Thanks very much for tips.
__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
Report comment to moderator  
Reply With Quote
Unread 11-29-16, 07:22 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1632
File comments: 3612
Uploads: 118
Do not mess with the ObjectiveTracker (regarding "automatic" reposition). For real. There are so many issues with SecureEnvironment.

Options:

A) Get rid of it and use sth else.

B) Allow the user to resize/drag the frame via user interaction using the WoW API. This is what I do. Requires manual reposition.
http://wowprogramming.com/docs/widge...egisterForDrag
http://wowprogramming.com/docs/widgets/Frame/SetMovable
http://wowprogramming.com/docs/widge...e/SetResizable
http://wowprogramming.com/docs/widge.../SetUserPlaced
https://github.com/zorker/rothui/blo...gframe.lua#L92
__________________
| 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 : 11-29-16 at 07:24 AM.
Report comment to moderator  
Reply With Quote
Unread 11-29-16, 05:12 AM  
gmarco
A Chromatic Dragonspawn
 
gmarco's Avatar
AddOn Author - Click to view AddOns

Forum posts: 189
File comments: 100
Uploads: 33
Originally Posted by zork

@gmarco
Just position the objective tracker a little bit to the left.
http://www.wowinterface.com/download...veTracker.html

oUF_Simple supports SetPoint and SetJustifyH for fontstrings via point and align attribute.
http://wowprogramming.com/docs/widge...ce/SetJustifyH ("LEFT", "RIGHT", "CENTER")

Example:
Lua Code:
  1. name = {
  2.       enabled = true,
  3.       points = {
  4.         {"LEFT",2,0},
  5.         {"RIGHT",-2,0},
  6.       },
  7.       size = 16,
  8.       align = "CENTER",
  9.       tag = "[name]",
  10. },
[/color]
Hi Zork,

thanks so much for the answer.
But I have a little bit confusion about it.

What I wanted ask you was the fact that if should be possible put the ObjectiveTracker automatically under the boss frame (the position is variable depending on how many bosses frame we have), so moving below it non on the left.



You mean perhaps that I could do with rObjTracker ? I am using right now the stock blizzard one.



About the second thing (the name on the left and the hp on the right) I know that the frame has the points possibility. What at the beginning I hadn't understood was the fact that I was missing the health section and I was trying to do name and hp in the name section.
I have solved the problem using 2 distinct elements one aligned left (the name) one aligned right (the hp and % hp)... My error was because the hp element was missing in your original config and I didn't realize that I could use it

The only problem is that if the name is too long probably it overwrites part of the hp section. So I have to use 2 different Y coords or reduced the part of X used for the name itself.

Lua Code:
  1. name = {
  2.       enabled = true,
  3.       points = {
  4.         {"TOPLEFT",2,10},
  5.         {"TOPRIGHT",-2,10},
  6.       },
  7.       size = 13,
  8.       outline = "","",
  9.       align = "LEFT",
  10.       tag = "[name]",
  11.     },
  12.    
  13.     health = {
  14.       enabled = true,
  15.       point = {"RIGHT",-2,0},
  16.       size = 13,
  17.       outline = "","",
  18.       tag = "[oUF_Simple:health]",
  19.     },

Thanks for your attention.
__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
Last edited by gmarco : 11-29-16 at 05:15 AM.
Report comment to moderator  
Reply With Quote
Unread 11-29-16, 02:18 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1632
File comments: 3612
Uploads: 118
@groin
You can add conditions to your config to only load specific files if a specific class/player name is loaded.
Lua Code:
  1. --player name and class
  2. local playerName = UnitName("player")
  3. local _, playerClass = UnitClass("player")
  4.  
  5. --raid_heal.lua file
  6. if playerName ~= "Zörk" then return end --not the healer, return
  7. --put healer only config here
  8.  
  9. --raid.lua file
  10. if playerName == "Zörk" then return end --the healer, return
  11. --put non healer config here
Not sure if that is sufficient. I do not heal and am pretty sure oUF_Simple is missing stuff you need to heal. You could disable the raid frames for your healer and use sth else.

Regarding your statusbar. That is true if your media folder is available to oUF_SimpleConfig.
@gmarco
Just position the objective tracker a little bit to the left.
http://www.wowinterface.com/download...veTracker.html

oUF_Simple supports SetPoint and SetJustifyH for fontstrings via point and align attribute.
http://wowprogramming.com/docs/widge...ce/SetJustifyH ("LEFT", "RIGHT", "CENTER")

Example:
Lua Code:
  1. name = {
  2.       enabled = true,
  3.       points = {
  4.         {"LEFT",2,0},
  5.         {"RIGHT",-2,0},
  6.       },
  7.       size = 16,
  8.       align = "CENTER",
  9.       tag = "[name]",
  10. },
__________________
| 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 : 11-29-16 at 02:34 AM.
Report comment to moderator  
Reply With Quote
Unread 11-29-16, 01:50 AM  
gmarco
A Chromatic Dragonspawn
 
gmarco's Avatar
AddOn Author - Click to view AddOns

Forum posts: 189
File comments: 100
Uploads: 33
... and finally now a question for Zork

Zork,

should be possible to move automagically the objective tracker to the bottom of the new boss frame ?

This to prevent something like this:




wiithout have to manually hide it to reduce it :




Thanks.
__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
Last edited by gmarco : 11-29-16 at 01:52 AM.
Report comment to moderator  
Reply With Quote
Unread 11-29-16, 01:46 AM  
gmarco
A Chromatic Dragonspawn
 
gmarco's Avatar
AddOn Author - Click to view AddOns

Forum posts: 189
File comments: 100
Uploads: 33
Originally Posted by gmarco
and everything works nicely ... the problem now is the little tuning because I am not able to see the boss frame without a boss in combat

Thanks.
Found a solution.
Going in a low level dungeon and edit what you want

__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
Report comment to moderator  
Reply With Quote
Unread 11-29-16, 01:36 AM  
gmarco
A Chromatic Dragonspawn
 
gmarco's Avatar
AddOn Author - Click to view AddOns

Forum posts: 189
File comments: 100
Uploads: 33
Hi all,

I think I have solved the request below:



in boss.lua:

Lua Code:
  1. name = {
  2.       enabled = true,
  3.       points = {
  4.         {"TOPLEFT",2,10},
  5.         {"TOPRIGHT",-2,10},
  6.       },
  7.       size = 13,
  8.       outline = "","",
  9.       align = "LEFT",
  10.       tag = "[name]",
  11.     },
  12.    
  13.     health = {
  14.       enabled = true,
  15.       point = {"RIGHT",-2,0},
  16.       size = 13,
  17.       outline = "","",
  18.       tag = "[oUF_Simple:health]",
  19.     },

and everything works nicely ... the problem nos is the little tuning because I am not able to see the boss frame without a boss in combat

Thanks.
__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
Report comment to moderator  
Reply With Quote
Unread 11-28-16, 06:57 PM  
gmarco
A Chromatic Dragonspawn
 
gmarco's Avatar
AddOn Author - Click to view AddOns

Forum posts: 189
File comments: 100
Uploads: 33
Hi Zork,

is possible in the boss frame to put also the simple health tag right aligned while mantaining the name left aligned ? Now I am able to have both of them aligned in the same way only (left/center/right).



Lua Code:
  1. name = {
  2.       enabled = true,
  3.       points = {
  4.         {"LEFT",2,0},
  5.         {"RIGHT",-2,0},
  6.       },
  7.       size = 13,
  8.       outline = "","",
  9.       align = "LEFT",
  10.       tag = "[name]  [oUF_Simple:health]",
  11.     },


or can I add something like this ?

Lua Code:
  1. health = {
  2.       enabled = true,
  3.       point = {"RIGHT",-2,0},
  4.       size = 13,
  5.       outline = "","",
  6.       tag = "[oUF_Simple:health]",
  7.     },

This because there are some fights when you have to check the health of boss and minibosses like the first in ToV.

Another question:

To test a boss frame I have to go in some dungeons or raid ? or is there the possibility to simulate it ?

Thanks so much
__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
Last edited by gmarco : 11-29-16 at 12:17 AM.
Report comment to moderator  
Reply With Quote
Unread 11-28-16, 09:22 AM  
groin
A Cyclonian
AddOn Compiler - Click to view compilations

Forum posts: 45
File comments: 86
Uploads: 3
hi zork, is there a way to set up different layout (healing/dps) with the same char or between different char?
To Change health and power bar texture can i simply replace statusbar.tga with a sharedmedia lib texture ?
Report comment to moderator  
Reply With Quote
Unread 11-21-16, 07:38 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1632
File comments: 3612
Uploads: 118
Re: Colors

@Aspirefire
Tested custom healthbar statusbar colors and healthbar background colors. Works fine but only if you disable all of the other color attributes like colorDisconnected, colorThreat etc. Will be available in the next version.
https://github.com/zorker/rothui/com...d0fbf04a033f90
__________________
| 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 : 11-21-16 at 07:39 AM.
Report comment to moderator  
Reply With Quote
Unread 11-20-16, 02:09 PM  
Aspirefire
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Colors

Originally Posted by zork
Currently not possible. Only preset colors for now. Will look into bith issues.
Okey, thanks for quick response.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: