Download
(23Kb)
Download
Updated: 09-02-18 03:40 AM
Addon for:
oUF_Simple.
Compatibility:
Battle for Azeroth (8.0.1)
Updated:09-02-18 03:40 AM
Created:10-09-16 02:29 PM
Downloads:6,001
Favorites:9
MD5:

oUF SimpleConfig  Popular! (More than 5000 hits)

Version: 800.20180901
by: zork [More]


Intro

oUF_SimpleConfig contains the configuration settings used for oUF_Simple.

Important! As soon as you adjust the config it becomes your config. Do not override it lightly. You will loose your changes. The one uploaded is my personal setup.
Documentation
oUF_SimpleConfig documentation
Requires
rLib
Git
https://github.com/zorker/rothui/tre...F_SimpleConfig

Optional Files (0)


Post A Reply Comment Options
Unread 09-04-19, 08:53 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
@Daamd
Of course you can disable it. You probably use oUF_SimpleConfig. In your nameplate config you can set enabled to false.
https://github.com/zorker/rothui/blo...eplate.lua#L66
@JDoubleU00
The fader is for onmouseover only sadly. Currently I use the simple visibility function for macro conditions. This will just show/hide frames.
https://github.com/zorker/rothui/blo.../spawn.lua#L41
Lua Code:
  1. RegisterStateDriver(player, "visibility", player.cfg.frameVisibility)

You could provide your own macro function that is able to handle alpha state instead. It has to be secure though.
An example for such a function is given here. I register the state driver to call the function set on attribute _onstate-page.
https://github.com/zorker/rothui/blo...r/bars.lua#L89
Another example is here. I use alpha here in a secure environment but I do not work with a state driver here. Just to give you an idea on how to set the alpha value in a secure environment.
https://github.com/zorker/rothui/blo.../core.lua#L184
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Last edited by zork : 09-04-19 at 09:01 AM.
Report comment to moderator  
Reply With Quote
Unread 04-21-19, 05:25 PM  
JDoubleU00
A Firelord
 
JDoubleU00's Avatar
AddOn Author - Click to view AddOns

Forum posts: 463
File comments: 82
Uploads: 2
Is there a way to have the player frame partially visible, say at 40% rather than all or nothing? I looked in the player.lua and found this line:

Code:
frameVisibility = "[combat][mod][@target,exists][@vehicle,exists][overridebar][shapeshift][vehicleui][possessbar][@mouseover,exists]show;hide",
--fader via OnShow
  fader = {
    fadeInAlpha = 1,
    fadeInDuration = 0.3,
    fadeInSmooth = "OUT",
    fadeOutAlpha = 0,
    fadeOutDuration = 0.9,
    fadeOutSmooth = "OUT",
    fadeOutDelay = 0,
    trigger = "OnShow",
  },
But I could not get it to do what I wanted. If this isn't easy to do or possible, I understand. Thanks!
__________________
Author of JWExpBar and JWRepBar.
Report comment to moderator  
Reply With Quote
Unread 11-15-17, 12:13 AM  
Daamd
A Defias Bandit

Forum posts: 2
File comments: 37
Uploads: 0
Zork any way to disable using the nameplate feature baked into the oUF_Simple? and either (A) Keep stock Blizzard frames or (B) use a different nameplate addon?

I want to have a Target Indicator arrows on the active target nameplate or some kind of highlighting of the targeted nameplate. Unless there is a way to add that?
Report comment to moderator  
Reply With Quote
Unread 02-08-17, 12:54 PM  
kazama14
A Kobold Labourer

Forum posts: 0
File comments: 40
Uploads: 0
Hey Zork, I was wondering if there was a way to set a custom power color table in your config? In the past in other oUF frames I've used I've done something like:

local colors = setmetatable({
power = setmetatable({
['MANA'] = {0, 200/255, 1},
['RAGE'] = {255/255, 148/255, 148/255},
['FOCUS'] = {148/255, 255/255, 166/255},
['ENERGY'] = {255/255, 255/255, 150/255},
['RUNIC_POWER'] = {0, 131/255, 170/255},
['AMMOSLOT'] = {0.8, 0.6, 0},
['FUEL'] = {0, 166/255, 118/255},
['POWER_TYPE_STEAM'] = {140/255, 140/255, 140/255},
['POWER_TYPE_PYRITE'] = {140/255, 25/255, 25/255},
}, {__index = oUF.colors.power}),
runes = setmetatable({
[1] = {0.77, 0.12, 0.23},
[2] = {0.3, 0.8, 0.1},
[3] = {0, 0.4, 0.7},
[4] = {180/255, 0, 175/255},
}, {__index = oUF.colors.runes}),
}, {__index = oUF.colors})

but this does seem to work since oUF is custom embedded maybe? Any advice would be appreciated
Report comment to moderator  
Reply With Quote
Unread 11-29-16, 07:49 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
Got a question on how to add group header titles. They are not supported but can of course added to the raid frame group header once it is created.

Lua Code:
  1. --SetRaidHeaderTitle
  2. local function SetRaidHeaderTitle(i)
  3.   local name = "oUF_SimepleRaidHeader"..i
  4.   local header = _G[name]
  5.   if not header then return end
  6.   if _G[name.."Title"] then return end
  7.   --fontstring
  8.   local fs = header:CreateFontString(name.."Title", "ARTWORK", GameFontNormalSmall)
  9.   local fontFamily, fontSize, fontOutline = fs:GetFont()
  10.   fs:SetFont(fontFamily, fontSize or 14, fontOutline)
  11.   fs:SetJustifyH("CENTER")
  12.   fs:SetPoint("TOP",0,0)
  13.   fs:SetText("Group"..i)
  14. end
  15.  
  16. --event handler
  17. local eventHandler = CreateFrame("Frame")
  18.  
  19. --OnLogin
  20. local function OnLogin()
  21.   for i=1,8 do
  22.     SetRaidHeaderTitle(i)
  23.   end
  24.   eventHandler:UnregisterEvent("PLAYER_LOGIN")
  25.   eventHandler = nil
  26. end
  27.  
  28. --register PLAYER_LOGIN event
  29. eventHandler:SetScript("OnEvent", OnLogin)
  30. eventHandler:RegisterEvent("PLAYER_LOGIN")
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"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:53 AM.
Report comment to moderator  
Reply With Quote
Unread 11-23-16, 12:42 PM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
Code:
/console scriptErrors 1
/reload
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"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-23-16, 12:27 PM  
onevox
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
Hello Zork,

Any sort of error logging included or somewhere i can see why custom tags not working? IE. Unitframes just show blue with "Bugfix" on them.

Thanks!
Report comment to moderator  
Reply With Quote
Unread 11-06-16, 08:45 AM  
gmarco
An Onyxian Warder
 
gmarco's Avatar
AddOn Author - Click to view AddOns

Forum posts: 362
File comments: 334
Uploads: 46
Thanks Zork,

I'll check it ...
__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
Report comment to moderator  
Reply With Quote
Unread 11-05-16, 04:00 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
The configuration is bound by reference. Changing an attribute on runtime should lead to a change of the color values.

First to change stuff between classes just grab the classname like I do it in rFilter.
https://github.com/zorker/rothui/blo...g/init.lua#L16

Add a classspecific function set that adjusts the default config based on class or name of the player.
Spec is different you need an event handler to do this. You can use the rLib registercallback if you want.

Lua Code:
  1. local function OnSpellsChanged(args,...) --args as table followed by the default event arguments in ...
  2.   if GetSpecialization() == 3 then
  3.     oUF_SimplePlayer.Health.colorThreat = false
  4.   end
  5. end
  6. rLib:RegisterCallback("SPELLS_CHANGED", OnSpellsChanged) --event,function,arg0..n

All this can be done in oUF_SimpleConfig.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Last edited by zork : 11-05-16 at 04:31 AM.
Report comment to moderator  
Reply With Quote
Unread 11-05-16, 02:58 AM  
gmarco
An Onyxian Warder
 
gmarco's Avatar
AddOn Author - Click to view AddOns

Forum posts: 362
File comments: 334
Uploads: 46
Hi Zork,

It should be possible to setting differents values for differents spec/classes ?

I.e:

If I want to have when the player is in A tank spec (guardian druid, prot war and so on):

Lua Code:
  1. colorTapping = true,
  2.     colorReaction = true,
  3.     colorClass = true,
  4.     colorHealth = false,
  5.     colorThreat = true,
  6.     colorThreatInvers = true,

otherwise:

Lua Code:
  1. colorTapping = true,
  2.     colorReaction = true,
  3.     colorClass = true,
  4.     colorHealth = false,
  5.     colorThreat = false,
  6.     colorThreatInvers = true,

Which is the best way to achieve it (if it is possible
Have I to add a custom filter that set:

Lua Code:
  1. player.colorThreat = false
  2. target.colorThreat = false
  3. nameplate.colorThreat = false


Thanks.

P.s.
The same question I'll post in rFilter forum for it
__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
Report comment to moderator  
Reply With Quote
Unread 10-27-16, 04:30 PM  
janangler
A Kobold Labourer

Forum posts: 0
File comments: 33
Uploads: 0
Great, thanks a lot for your help
Report comment to moderator  
Reply With Quote
Unread 10-27-16, 01:28 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
You can do this with the custom filter.
Lua Code:
  1. --custom filter
  2. local function CustomFilter(buttons, unit, button)
  3.   if button.isPlayer then
  4.     button.icon:SetDesaturated(false)
  5.   else
  6.     button.icon:SetDesaturated(true)
  7.   end
  8. end

Example for a custom filter is given for the nameplate unit. You can add the filter to any unit you like.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Last edited by zork : 10-27-16 at 02:45 AM.
Report comment to moderator  
Reply With Quote
Unread 10-26-16, 03:58 PM  
janangler
A Kobold Labourer

Forum posts: 0
File comments: 33
Uploads: 0
First of all, thanks for the new unit frames. I like the new "simple" look

In the diablo unit frames there was an option called "desaturateDebuffs" on the target unit frame, Is something like this also available for ouf_Simple?
Report comment to moderator  
Reply With Quote
Unread 10-17-16, 01:07 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1740
File comments: 3728
Uploads: 77
Focustarget...sure I could add it but why? When do you need it?
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Last edited by zork : 10-17-16 at 01:10 AM.
Report comment to moderator  
Reply With Quote
Unread 10-15-16, 11:14 AM  
theruleof4
Guest

Join Date: Not Yet
Forum posts: 0
File comments: 0
Uploads: 0
A config file for the focustarget would be really nice.
Last edited by : 10-27-16 at 03:29 PM.
Report comment to moderator  
Edit/Delete Message Reply With Quote
Post A Reply



Category Jump: