Quantcast
Download
(3 MB)
Download
Updated: 07-29-17 09:44 AM
Pictures
File Info
Compatibility:
Argus (7.3.0)
Tomb of Sargeras (7.2.0)
Return to Karazhan (7.1.5)
Updated:07-29-17 09:44 AM
Created:08-27-12 11:27 AM
Downloads:25,484
Favorites:75
MD5:
Categories:Generic Compilations, Minimalistic Compilations
7.2.0

ViksUI  Popular! (More than 5000 hits)

Version: 7.15
by: frohanss [More]



This is for Version 7 only!
Previous install should be deleted before installing this.
ViksUI is a fully functional UI replacement for WOW and is based around oUF layout. The unitframe changes based on raidsize. This UI is tweaked for 1920x1080.




The UI started long time ago as Qulight UI, and have been heavily rewritten by me. So most of the Credit goes to Qulight. Lately i have gotten alot of ideas from ShestakUI, and with permision i have used alot of the codes.


The UI is based on my likings so it will not change alot, but i try to add options to change most. Like turning off panels, change colors and fonts.

Some things included in ViksUI:

  • Addon Skins - DBM, Pallypower,Skada,Recount,Omen,Quartz,Bigwigs,DXE,ExtraButton
  • Announcements options - Enemy Drinking, Interupts, Casting, Lightwell, Toys, Thanks, Pull Count, Using Flask, Announce Feasts/Souls/Repair +++
  • Auras/Buffs/Debuffs options - Full customizing, can cancel by rightclick, track who cast buff+++
  • Automation options - Auto Equip Chef's Hat/Safari Hat, Set role, Sell grey, Autorepair+++
  • Bag options - customize size, search, sort and Stacking (Right click on X button for menu)
  • Combat text - xCT integrated into UI.
  • Cooldown Flash - Flash icon when Spell is ready after use.
  • Enemy cooldowns - Track enemys cd in BG or arena.
  • Error options - Filters away some error messages.
  • Datatext - Arena, Armor, Avoidance, Bags, Battleground, Crit, Durability, Friends, Gold, Guild, Haste, Hit, location, Mastery, Power, Regen, System (Fps, Ms & MB), Talent, Time
  • Loot and Roll Frames - Custom frames with automation options like AutoGreed/Disenchant Green items.
  • Top Panel / Info Frame - Mouseover panel with main stats and buttons for toggle helm/cloak
  • Map options - Turn off fog, % explored and % quest done in zone+
  • Raid cooldowns - Tracks raid players CD. Left click to announce and right click to remove.
  • Pulse cooldowns - Pulsate spell icon when cd is over.
  • Buffs reminder - Buff reminders for solo and raid
  • Stats options - Different stats options. Still under work
  • raidframes - oUF raid frames with dynamic size based on raid size
  • unitframes - oUF unitframes with most needed information and good overview.
  • nameplate - Fully customizable nameplate with castbar. Built inn "healer has to die" for pvp
  • minimap - Custom minimap with quick menu (yellow icon) and right click menu.
  • tooltip - Custom tooltip with extended information like iLvl and tallentspec
  • XPBar - Custom XP bar with extended information detail.
  • Miscellaneous - Alot of small tweaks like gem counter, markbar+++ Realy to much to write
  • Chat - Fully adapted and tweaked chat.
  • World Boss kill tracker - Track what world bosses your char have killed this week when mouseover the clock under minimap.
  • Skins - Skinning of Blizzard frames and many other. NB! Keep using the Addon skins over this!

Quest automation: Gossip Skip, Auto Accept, Turnins. Shift Click to override.
Mage Portals: Left click for Teleport, Right Click for Portal.
Raid Utility: Left Click for Menu, Right Click for Ready Check, Middle click for Rolecheck.
Aligment Grid: /align
One click DE/Milling/Prospecting by holding Alt button in and click on item.
Shift+Righclick on item on AH for direct Buyout

INGAME COMMANS:
  • /cfg - Open interface settings.
  • /ui - Moving interface elements.
  • /rl - Reload interface.
  • /rc - Make readycheck.
  • /gm - Open gm frame.
  • /role - Check party/raid roles.
  • /rd - Disband party or raid.
  • /convert - Convert to party or raid.
  • /uihelp - Description of commands.
  • /resetui - Resetting general settings to default.
  • /resetuf - Resetting unit frames positions to default.
  • /resetconfig - Reset ViksUI_Config settings.
  • /resetstats - Resetting statistics of gold and time spent.
  • /settings msbt - Type /settings msbt, to apply the settings MSBT.
  • /settings dbm - Type /settings dbm, to apply the settings DBM.
  • /settings chat - Type /settings chat, to apply the settings for chat.
  • /settings cvar - Type /settings cvar, to apply the game settings.
  • /settings bartender - Type /settings bartender, to apply the settings Bartender (Must reselect profiles after).
  • /settings skada - Type /settings skada, to apply the settings Skada.[/i]
  • /settings all - Type /settings all, to apply the settings for all modifications.
  • /litestats - Help for LiteStats.
  • /dbmtest - DBM test mode.
  • /raidcd - Raid cooldowns test.
  • /testuf - UF test.
  • /bags - Managing bags.
  • /xct - Manage combat text.
  • /tach - Test Blizzard's announce window.
  • /teb - Test and move Blizzard Extra Action Button.
  • /testroll - Test group roll.
  • /ss - Switching talent spec.
  • /farmmode or /fm - Increases the minimap.
  • /align - Grid alignment interface.
Addons i also use / Recomend:
Setup:
  • Delete/backup your current UI. (Updating to v5, then you should fully delete ViksUI folders due to big changes to files, also removed alot unused media files)
  • Copy all from archive to your World of Warcraft folder(Interface\AddOns\).
For first time install pr wow account setup.
  • Close Skada window
  • Click “Accept” on First tim on ViksUI.
  • Click “Damage” or “Healer” (Not added yet so no changes)
  • Click “Accept” on DBM Settings (if installed). By default skinning off DBM is enabled.
  • type: /settings all (NB! Only first time pr account, resets bartender layout)

Settings pr character:
  • Select bartender profile type: /vbt
Tip for WoD: The Garrison special ability button, drag the button to action bar to remove texture!

IF ERRORS:
Not installed correctly and/or had it previously installed.
Type: /installui
Type: /settings all

If errors with click2cast or simular. Try to remove (and take backup) the ViksUI.lua and Viks_ConfigUI.lua. Both under \Account\YOURACCOUNTNAME\SavedVariables and under \Account\YOURACCOUNTNAME\REALM\CHARACTERNAME\SavedVariables
These errors normaly comes when not cleaning fully up before upgrading to Version 5.

Notes:
Updating to V5 - See Setup! ONLY WORK ON PATCH 6/WoDFrom Version 5.03 Masque_Viks is no longer needed. So delete the folder if had previous install of addon.

Ingame Settings



Simple Movie Showing the simple basic for firsttimers.



YouTube Vid: Showing different stuff in UI (Old).


Look through the “/config” for more settings.
The text under the minimap toggles different stuff

Misc Stuff:

Ctrl+Alt+Shift + Mouse click on target/raid frame to set/clear focus.


Inspiration for few things:
  • Qulight UI for the addon pack thats inspired from Tukz again.
  • oUF_Karma MOP inspired the Font, Rest/Combat icon.
  • Tukz for different spec bars in MOP


Credits to: Qulight, Haste, Tukz, Unkn, myno, hankthetank, Monolit, Shestak, Hanomi, Alza, AlleyKat, Fernir, affli, Nightcracker, Allez, Zork, Tekkub, Tuller, Freebaser, Haleth, drakull, P3lim, Dawn, nibelheim, bachlott, Neal, ballagarba, Shestak

Stuff todo:
Updating/adding more MOP spells to Class Timer
Cleaning up the code more
Better layout switch on raidframes (Dps/Heal)
Fix broken parts (Disabled stuff)

7.15
* Fixed known errors
* Drop down menus are fully shown now (no deleted lines)
* Themes working

7.14
* Fixes

7.13
* Update for 7.2

7.12
* Bugfixes

7.11
* Bugfix

7.10
* Rogues now have 10 combo points
* Removed more old spells

7.09
* Fix for 7.1.5
* Other minor changes

7.08
* Filger spells added more and cleanup
* Created Datatext for artifact power
* Nameplate rewritten
* Other minor stuff
* Added Cyrillic to Unitframe Font

7.07
* Added warlock spells to Filger
* Bug fixes
* Fixed FPS issue with SlotItemLevel

7.06
* Skin fix
* Spells and debuff update
* misc errors

7.05
* Many fixes for 7.1

7.04
* Many bug fixes since last release
* Updated for 7.1

7.03
* Added Legion chest to auto open
* Added some raid debuff for Legion
* Added Leeching Poison to selfbuff reminder
* Added more spells to Filger
* Added more spells to Classtimer
* Added Nethershard to currency
* Nameplate update
* Bug fixes
* Some improved skinning

7.02
* Big cleanup

7.01
* Updated Bags
* Fixed resolution check
* Removed Rune of power bar
* Fixed ilvl on tooltip
* Fixed wowheadlink
* Disabled buffreminder for paladin buffs
* Removed bodyguard.lua
* Fixed spec switching command
* Another fix for bliz windowed mode bug
* Updated buff indicators on raidframes
* Added some missing skins
* Added Demon Hunter and new Rogue spells to Filger
* Fixed Rune error
* Fixed frames for MacClients
* Fixed marking of unusable items in Bags
* Added regent deposit button to bag frames
* Added cleanup (right mouseclick for Blizz cleanup) to bag frame

5.25
* Slotitemlevel updated
- Showing correct item level on TW items
- Moved text to inside frame
- Ilvl text colored based on difference from average ilvl
- Moved durability here
* Correct ilvl for Timewarped items (tooltip and bags)
* Added Beacon of Faith to buff tracker
* Removed main assist from raid utility
* Added new world markers and hiding markbar unless player is leader/assist
* Updated Filger
* Removed old variables
* Updated Classtimer

5.24
* Many minor bugfixes/updates

5.23
* Upgraded ilvl calculation
* Tweaked objectiveframe, Fog of War, Garrison skin, Alt powerbar++
* Added option to change icon size for filger
* Many small fixes

5.22
* Alot of minor fixes (to many to list)
* Added some small stuff like ilvl inbags.

5.21
* Added Short Numbers to combat text
* Added Check for old spells
* Added Terrorfist, Deathalon, Doomroller and Vengance to kill tracker
(under time)
* Added upgraded ilvl support to ilvl on character page
* Skinned few missing stuff

5.20
* Many minor bug fixes
* Updated to 6.2.2

5.19
Filger:
* Added Dark Regeneration [warlock]
* Added Tanaan Utility Items
* Added Demonic Servitude Pet Abilities [warlock]
* Added [Patch 6.2] Trinkets
* Added more Potions, Utility Items
* Added Healthstone [warlock]
* Added a few spells, better organizationSpells sorted alphabetically for easier reading
* Added Feign Death (target) [PVP]
* Added Spectral Guise (player) [Priest]
* Added Spirit Mend; Engineering Shields (target) [PVP]

LiteStats update
Clock:
* Added 5man Mythic tracking
* Added tracking of number of seals for current week

New Currency tab:
* Show Archaeology under currency tab
* Show Coocking under currency tab
* Show Professions under currency tab
* Show Seals under currency tab
* Show PvP under currency tab
* Show Miscellaneous under currency tab, like Oil

Adding extra to tooltip
* Reworked name to only show name without realm name
* Added option to show title with name - Default off
* Added option to show realm name on own line - Default on

Misc changes
* Temp fix for Blizzards bug killing the anoying Blizz error "Interface\FrameXML\RaidFrame.lua:181"
* ObjectiveTracker: Hidden title and collapsed as default
* Skinned missing buttons
* Updated ItemLevel tooltip info
* Fixing combobar show for tallent Combobar should now be shown also in stance "Claws of Shirvallah".
* Skinning complete all buttonFor Master Plan
* Updated language files


5.18
* Bug fix for litestats
* Filger - Updated and added options to config
* Added option to hide Boss Frame (New loot spalsh)

5.17
* Added HFC raid debuffs

5.16
* Added update for 6.2

5.15
* Fixed some bugs and performance issue in raid (bossframe)
* Reverted some code changes due to blizz hotfix
* Skinned Tokens and deathrecap
* Fixed some missing skins

5.14
* Added more spells to Auras
* Updated channeling ticks for spells on castbar
* Added Beast Cleave to Filger
* Added Seals pr Week to "Time tooltip"
* Fixed Rukhmar kill tracking
* Updated currency to show under "Gold datatext tooltip"
* Fixed Twitter bugs
* Added missing skinning parts to Interface and Options
* Fixed /fstack issue caused by classbars

5.13
* Added Master Plan tab skinning
* Updated/added more skinning
* bug fixes
* more spell fix

5.12
* Skinned Collection (partly)
* Fixed DBM Skin (may need /settings dbm)
* Minor bug fix

5.11
* Performance fix
* Bug fix
* Temp disabled Collection skinning

5.10
* Toc update
* Updates spells in classtimer
* Updated raiddebuffs

5.09
* Reminders Updated
* RaidAuras Updated
* ClassTimer Updated
* Filger Updated
* Some Cleanup

5.08
* Updated/Cleaned up more new/old spells
* Added option to change background on health bars
* Added option to change text color when using class color on health bars
* Cleanups

5.07
* Error fix for Loot

5.06
* Added Zygor skin
* Cleanup on spells++
* Fixed Chat style
* Small fixes

5.05
* Some skinn fix
* Misc Cleanup
* Locals updated
* Added CTRL/ALT abandon/share for Objective frame
* Added auto opening items in bag option

5.04
* Added smileys support to chat (icons in work still)
* Updated locales
* Cleaned up more spells
* Changes chat setting some
* Added vengeance source
* Some small tweaks

5.03
* Added New spells to filters
* LiteStats updated
* Masque_Viks is integrated to ViksUI for better Theme support
* Chat settings fixed. Added /setting chat and /settings cvar for reset just thos setting. Added to /settings all
* Added reagentbank to bags
* Better WorldMap
* Fixed error on using QuestItem on Objectiveframe
* Better Transmog tip on tooltip
* Added Themes (Beta stage! Hover mouse over bottom left of minimap to show button. Under FarmMode button)
* Made Tooltip movable again and added corners to anchor from.
NOTE! Rember to delete \AddOns\Masque_Viks folder. It's no longer needed.
5.02
* Added command for selecting correct Bartender profile: /vbt
* Disable Achivment popup frame due to errors for now.
* Showing Quest Level in worldmap again.
* Fixed Aura indicators that was giving errors
* Few other improvments and bugs

5.01
* Minor bugfix and improvment
5.0
* Big rework for errors and WoD. Works only on patch 6 and WoD (Beta).
4.34
* Fixed Burning Ember bar. Should show 4 embers now.
* Moved Classtimer above Orb bar for Priest.
* Fixed ScenarioFrame showing behind minimap.
* Made WatchFrame non movable again, but repositioned it better.

4.33 - Removed the need for WTF folder. Settings is added on first start or by doing /installui
4.32 - Fixed Error in itemlevelslot in inspect frame and fixed character frame to show correct quality color.
4.31 - Minor bug fixes. Made Watchframe movable
4.3 - Update after long breake... Minor fixes.
4.22 - Fixed game menu and skinned store button.

4.21 - Fixed Realmname shwoing on guild tab and few other minor fixes/changes.

4.2 - Many small fixes. Added shop and loottoggle on minimenu. Fixed some skinning errors.

4.14 - Fixed Friend list (datatext) and some minor fixes.

4.13 - Fixed Autoinvite. Minor other changes.

4.12 - Fixed errors, cleaned up combatlog and other minor tweaks. Disabled Autoinvite untill error have been found.

4.11 - Fixed error in move function (/ui), cleaned up and remade Petbattle frame some also few minor typos/errors.

4.1 - Fixed various skins. Updated spell info and raid debuff. Fixed:bags, healericon, ClickCast, Combattext and few other stuff.

3.3
- Improved bag/bank. Changed style and refreshed it some. Remember "right click" x button in bag for sorting/stack.
- Improved and fixed Chat.
- Added styling of chattbubbles.
- Moved Guild Instance Difficulty flag on minimap. (Remove if from minimapbuttonframe if hidden)

3.2
-Fixed Buff error for Shamman.

3.1
-Updated spells in Filger and Classtimer

3.0
-Buggfixes with Raiddebuffs
-Removed spells that was deleted in last pach
- Added RaidDebuffs for Throne of Thunder
- Changed a few Default values, recomend reset ingame.

2.13
Added loot & Lootroll window again. And smaller changes.

2.12
Fixed Monk Chi bar and updated addons + minor bug fixes.
2.11
Minor error fix in Datatext; Friend and Gold.
2.1
Changed small errors from MOP. Buff for shammys, Heal indicator for monks and other reported errors.
Updated Raid Debuffs, Filger, ClassTimer, ToolTip and few other.
Sugest deleting Interface\AddOns\ViksUI folder before extracting due to some files have been removed.

2.0
Big changes to raid frames and layouts. Including icons, indicators, debuffs, positions and much more.

1-92 -
Added Threathbar function
Reenabled Cooldownflash, Markbar & RaidUtil
Reenabled Indicators, Auras and Debuffs to raid frames.
Added option to select 2 different Indicators, Auras and Debuffs style.
Added raid frames layout based on size for both type of raidframes.
And some other small changes.

UPDATING FROM 1-91 - Delete current ViksUI folder then extract this version.

1-91 -
Fixed minor errors
Added ability to change size on panels
Improved the looks and placement on few things
Fixed "hotkey clicking" to set/clear focus

1-9 -
Minor error changes
Fixed Unitframe Move with /ui
Disabled Loot frames due to errors


1-8 - Simle .toc change

1-7
* Hidding Unitframes, XPBar and few panels when doing Pet Battles
* Enabled Buff reminder on Raid Frames.
* Fixed Buff/Debuff errors on raid frames for few classes.
* Updated Filger.



* 1-6 - Fixed/changed Anchoring on Tooltip. Added extra xp/rep bar at bottom.

* 1-5 - Added Aurawatch, Debuff display and indicators for tracking spells/hot's on Raid Frames. Reenabled Filger (No spells yet). Fixed XP/Rep Bar. Added option to hide panels.

* 1-4 - Fixed Totem Bar and party/raid frame (style 1)

* 1-3 - Updated for Live Server (5.0.4). Added more options for minimap.

* B1-2 - Added picomenu to minimap and also fixed trackingmenu.

* B1-1 - Big fix: Clean up on code, fixed few errors.
Optional Files (0)


Archived Files (20)
File Name
Version
Size
Author
Date
7.14
3MB
frohanss
07-05-17 12:51 PM
7.13
3MB
frohanss
03-30-17 04:57 AM
7.11
3MB
frohanss
01-20-17 03:01 AM
7.10
3MB
frohanss
01-12-17 01:09 PM
7.09
3MB
frohanss
01-11-17 02:02 PM
7.08
3MB
frohanss
12-09-16 02:39 PM
2.1
6MB
frohanss
11-09-12 08:15 AM
2.0
6MB
frohanss
09-23-12 05:20 AM
1.9.2
6MB
frohanss
09-11-12 08:50 AM
1.91
6MB
frohanss
09-06-12 11:02 AM
1.9
6MB
frohanss
09-02-12 05:39 PM
1.8
6MB
frohanss
09-02-12 06:05 AM
1.7
6MB
frohanss
09-02-12 04:48 AM
1.6
6MB
frohanss
08-31-12 05:37 AM
1.5
6MB
frohanss
08-30-12 09:34 AM
1.4
6MB
frohanss
08-29-12 03:24 PM
1.3
5MB
frohanss
08-29-12 06:09 AM
B1.2
5MB
frohanss
08-28-12 03:20 PM
B1.1
5MB
frohanss
08-28-12 04:20 AM
B1.0
6MB
frohanss
08-27-12 11:27 AM


Post A Reply Comment Options
Unread 08-15-17, 07:38 AM  
frohanss
An Aku'mai Servant
AddOn Author - Click to view AddOns

Forum posts: 33
File comments: 202
Uploads: 2
Re: error as priest healer

Originally Posted by joelsoul
Frohanss, here's an error i get while using Clique as priest healer, not sure if its related to Clique or not, maybe if you have a chance you could let me know what you think about this:

Code:
110x Attempt to access forbidden object from code tainted by an AddOn
[C]: ?
[C]: ?
[C]: in function `CreateFrame'
ViksUI\Main\Cooldown.lua:124: in function <ViksUI\Main\Cooldown.lua:121>
ViksUI\Main\Cooldown.lua:150: in function <ViksUI\Main\Cooldown.lua:146>
[C]: in function `SetCooldown'
FrameXML\Cooldown.lua:5: in function `CooldownFrame_Set'
...eBlizzard_NamePlates\Blizzard_NamePlates.lua:522: in function `UpdateBuffs'
...eBlizzard_NamePlates\Blizzard_NamePlates.lua:159: in function `OnUnitAuraUpdate'
...eBlizzard_NamePlates\Blizzard_NamePlates.lua:89: in function `OnNamePlateAdded'
...eBlizzard_NamePlates\Blizzard_NamePlates.lua:44: in function <...eBlizzard_NamePlates\Blizzard_NamePlates.lua:35>

Locals:
As always thanks for your work in keeping this updated
I also use Clique with my priest, and i can't recreate this error.
Can you recreate the error? It's a taint error, so it can be related to anything.

I did see some minor stuff that needed fixing tho, so change coming.
You can manualy change ViksUI\Main\Cooldown.lua to this:
Lua Code:
  1. local T, C, L, _ = unpack(select(2, ...))
  2. if not C.cooldown.enable == true then return end
  3.  
  4. -- want hex color instead of RGB?
  5. RGBToHex = function(r, g, b)
  6.     r = r <= 1 and r >= 0 and r or 0
  7.     g = g <= 1 and g >= 0 and g or 0
  8.     b = b <= 1 and b >= 0 and b or 0
  9.     return string.format("|cff%02x%02x%02x", r*255, g*255, b*255)
  10. end
  11.  
  12. --constants!
  13. OmniCC = true --hack to work around detection from other addons for OmniCC
  14. local ICON_SIZE = 36 --the normal size for an icon (don't change this)
  15. local DAY, HOUR, MINUTE = 86400, 3600, 60 --used for formatting text
  16. local DAYISH, HOURISH, MINUTEISH = 3600 * 23.5, 60 * 59.5, 59.5 --used for formatting text at transition points
  17. local HALFDAYISH, HALFHOURISH, HALFMINUTEISH = DAY/2 + 0.5, HOUR/2 + 0.5, MINUTE/2 + 0.5 --used for calculating next update times
  18.  
  19. --configuration settings
  20. local FONT_FACE = C.media.pixel_font --what font to use
  21. local FONT_SIZE = 17 --the base font size to use at a scale of 1
  22. local MIN_SCALE = 0.5 --the minimum scale we want to show cooldown counts at, anything below this will be hidden
  23. local MIN_DURATION = 2.5 --the minimum duration to show cooldown text for
  24. local EXPIRING_DURATION = 0 --the minimum number of seconds a cooldown must be to use to display in the expiring format
  25.  
  26. local EXPIRING_FORMAT = RGBToHex(1, 0, 0)..'%.1f|r' --format for timers that are soon to expire
  27. local SECONDS_FORMAT = RGBToHex(1, 1, 0)..'%d|r' --format for timers that have seconds remaining
  28. local MINUTES_FORMAT = RGBToHex(1, 1, 1)..'%dm|r' --format for timers that have minutes remaining
  29. local HOURS_FORMAT = RGBToHex(0.4, 1, 1)..'%dh|r' --format for timers that have hours remaining
  30. local DAYS_FORMAT = RGBToHex(0.4, 0.4, 1)..'%dh|r' --format for timers that have days remaining
  31.  
  32. --local bindings!
  33. local floor = math.floor
  34. local min = math.min
  35. local GetTime = GetTime
  36. -- remove decimal from a number
  37.  
  38. Round = function(number, decimals)
  39.     if not decimals then decimals = 0 end
  40.     return (("%%.%df"):format(decimals)):format(number)
  41. end
  42. --returns both what text to display, and how long until the next update
  43. local function getTimeText(s)
  44.     --format text as seconds when below a minute
  45.     if s < MINUTEISH then
  46.         local seconds = tonumber(Round(s))
  47.         if seconds > EXPIRING_DURATION then
  48.             return SECONDS_FORMAT, seconds, s - (seconds - 0.51)
  49.         else
  50.             return EXPIRING_FORMAT, s, 0.051
  51.         end
  52.     --format text as minutes when below an hour
  53.     elseif s < HOURISH then
  54.         local minutes = tonumber(Round(s/MINUTE))
  55.         return MINUTES_FORMAT, minutes, minutes > 1 and (s - (minutes*MINUTE - HALFMINUTEISH)) or (s - MINUTEISH)
  56.     --format text as hours when below a day
  57.     elseif s < DAYISH then
  58.         local hours = tonumber(Round(s/HOUR))
  59.         return HOURS_FORMAT, hours, hours > 1 and (s - (hours*HOUR - HALFHOURISH)) or (s - HOURISH)
  60.     --format text as days
  61.     else
  62.         local days = tonumber(Round(s/DAY))
  63.         return DAYS_FORMAT, days,  days > 1 and (s - (days*DAY - HALFDAYISH)) or (s - DAYISH)
  64.     end
  65. end
  66.  
  67. --stops the timer
  68. local function Timer_Stop(self)
  69.     self.enabled = nil
  70.     self:Hide()
  71. end
  72.  
  73. --forces the given timer to update on the next frame
  74. local function Timer_ForceUpdate(self)
  75.     self.nextUpdate = 0
  76.     self:Show()
  77. end
  78.  
  79. --adjust font size whenever the timer's parent size changes
  80. --hide if it gets too tiny
  81. local function Timer_OnSizeChanged(self, width, height)
  82.     local fontScale = Round(width) / ICON_SIZE
  83.     if fontScale == self.fontScale then
  84.         return
  85.     end
  86.  
  87.     self.fontScale = fontScale
  88.     if fontScale < MIN_SCALE then
  89.         self:Hide()
  90.     else
  91.         self.text:SetFont(FONT_FACE, fontScale * FONT_SIZE, 'OUTLINE')
  92.         self.text:SetShadowColor(0, 0, 0, 0.5)
  93.         self.text:SetShadowOffset(2, -2)
  94.         if self.enabled then
  95.             Timer_ForceUpdate(self)
  96.         end
  97.     end
  98. end
  99.  
  100. --update timer text, if it needs to be
  101. --hide the timer if done
  102. local function Timer_OnUpdate(self, elapsed)
  103.     if self.nextUpdate > 0 then
  104.         self.nextUpdate = self.nextUpdate - elapsed
  105.     else
  106.         local remain = self.duration - (GetTime() - self.start)
  107.         if tonumber(Round(remain)) > 0 then
  108.             if (self.fontScale * self:GetEffectiveScale() / UIParent:GetScale()) < MIN_SCALE then
  109.                 self.text:SetText('')
  110.                 self.nextUpdate  = 1
  111.             else
  112.                 local formatStr, time, nextUpdate = getTimeText(remain)
  113.                 self.text:SetFormattedText(formatStr, time)
  114.                 self.nextUpdate = nextUpdate
  115.             end
  116.         else
  117.             Timer_Stop(self)
  118.         end
  119.     end
  120. end
  121.  
  122. --returns a new timer object
  123. local function Timer_Create(self)
  124.     --a frame to watch for OnSizeChanged events
  125.     --needed since OnSizeChanged has funny triggering if the frame with the handler is not shown
  126.     local scaler = CreateFrame('Frame', nil, self)
  127.     scaler:SetAllPoints(self)
  128.  
  129.     local timer = CreateFrame('Frame', nil, scaler); timer:Hide()
  130.     timer:SetAllPoints(scaler)
  131.     timer:SetScript('OnUpdate', Timer_OnUpdate)
  132.  
  133.     local text = timer:CreateFontString(nil, 'OVERLAY')
  134.     text:SetPoint("CENTER", 2, 0)
  135.     text:SetJustifyH("CENTER")
  136.     timer.text = text
  137.  
  138.     Timer_OnSizeChanged(timer, scaler:GetSize())
  139.     scaler:SetScript('OnSizeChanged', function(self, ...) Timer_OnSizeChanged(timer, ...) end)
  140.  
  141.     self.timer = timer
  142.     return timer
  143. end
  144.  
  145. --hook the SetCooldown method of all cooldown frames
  146. --ActionButton1Cooldown is used here since its likely to always exist
  147. --and I'd rather not create my own cooldown frame to preserve a tiny bit of memory
  148. local function Timer_Start(self, start, duration)
  149.     if self.noOCC then return end
  150.     --start timer
  151.     if start > 0 and duration > MIN_DURATION then
  152.         local timer = self.timer or Timer_Create(self)
  153.         timer.start = start
  154.         timer.duration = duration
  155.         timer.enabled = true
  156.         timer.nextUpdate = 0
  157.         if timer.fontScale >= MIN_SCALE then timer:Show() end
  158.     --stop timer
  159.     else
  160.         local timer = self.timer
  161.         if timer then
  162.             Timer_Stop(timer)
  163.         end
  164.     end
  165. end
  166.  
  167. hooksecurefunc(getmetatable(ActionButton1Cooldown).__index, "SetCooldown", Timer_Start)
  168.  
  169. local active = {}
  170. local hooked = {}
  171.  
  172. local function cooldown_OnShow(self)
  173.     active[self] = true
  174. end
  175.  
  176. local function cooldown_OnHide(self)
  177.     active[self] = nil
  178. end
  179.  
  180. local function cooldown_ShouldUpdateTimer(self, start, duration)
  181.     local timer = self.timer
  182.     return not(timer and timer.start == start and timer.duration == duration and timer.charges == charges and timer.maxCharges == maxCharges)
  183. end
  184.  
  185. local function cooldown_Update(self)
  186.     local button = self:GetParent()
  187.     local action = button.action
  188.     local start, duration, enable = GetActionCooldown(action)
  189.     local charges, maxCharges, chargeStart, chargeDuration = GetActionCharges(action)
  190.  
  191.     if cooldown_ShouldUpdateTimer(self, start, duration) then
  192.         Timer_Start(self, start, duration)
  193.     end
  194. end
  195.  
  196. local EventWatcher = CreateFrame("Frame")
  197. EventWatcher:Hide()
  198. EventWatcher:SetScript("OnEvent", function(self, event)
  199.     for cooldown in pairs(active) do
  200.         cooldown_Update(cooldown)
  201.     end
  202. end)
  203. EventWatcher:RegisterEvent("ACTIONBAR_UPDATE_COOLDOWN")
  204.  
  205. local function actionButton_Register(frame)
  206.     local cooldown = frame.cooldown
  207.     if not hooked[cooldown] then
  208.         cooldown:HookScript("OnShow", cooldown_OnShow)
  209.         cooldown:HookScript("OnHide", cooldown_OnHide)
  210.         hooked[cooldown] = true
  211.     end
  212. end
  213.  
  214. if _G["ActionBarButtonEventsFrame"].frames then
  215.     for i, frame in pairs(_G["ActionBarButtonEventsFrame"].frames) do
  216.         actionButton_Register(frame)
  217.     end
  218. end
  219.  
  220. hooksecurefunc("ActionBarButtonEventsFrame_RegisterFrame", actionButton_Register)
Report comment to moderator  
Reply With Quote
Unread 08-03-17, 10:54 PM  
joelsoul
A Kobold Labourer

Forum posts: 0
File comments: 46
Uploads: 0
error as priest healer

Frohanss, here's an error i get while using Clique as priest healer, not sure if its related to Clique or not, maybe if you have a chance you could let me know what you think about this:

Code:
110x Attempt to access forbidden object from code tainted by an AddOn
[C]: ?
[C]: ?
[C]: in function `CreateFrame'
ViksUI\Main\Cooldown.lua:124: in function <ViksUI\Main\Cooldown.lua:121>
ViksUI\Main\Cooldown.lua:150: in function <ViksUI\Main\Cooldown.lua:146>
[C]: in function `SetCooldown'
FrameXML\Cooldown.lua:5: in function `CooldownFrame_Set'
...eBlizzard_NamePlates\Blizzard_NamePlates.lua:522: in function `UpdateBuffs'
...eBlizzard_NamePlates\Blizzard_NamePlates.lua:159: in function `OnUnitAuraUpdate'
...eBlizzard_NamePlates\Blizzard_NamePlates.lua:89: in function `OnNamePlateAdded'
...eBlizzard_NamePlates\Blizzard_NamePlates.lua:44: in function <...eBlizzard_NamePlates\Blizzard_NamePlates.lua:35>

Locals:
As always thanks for your work in keeping this updated
Report comment to moderator  
Reply With Quote
Unread 07-29-17, 06:52 PM  
Ninecatz
A Kobold Labourer

Forum posts: 0
File comments: 7
Uploads: 0
Thanks for the update !

I come back to you if any pb.
Report comment to moderator  
Reply With Quote
Unread 07-10-17, 02:11 PM  
frohanss
An Aku'mai Servant
AddOn Author - Click to view AddOns

Forum posts: 33
File comments: 202
Uploads: 2
Originally Posted by Ninecatz
Hey frohanss,

Still got the right click lfr thing.

Any tips for fix/disable it ?
I will add it to the todo list. Not subscribing to wow atm, so hard to test
Report comment to moderator  
Reply With Quote
Unread 07-06-17, 03:03 PM  
Ninecatz
A Kobold Labourer

Forum posts: 0
File comments: 7
Uploads: 0
Hey frohanss,

Still got the right click lfr thing.

Any tips for fix/disable it ?
Report comment to moderator  
Reply With Quote
Unread 07-05-17, 04:02 PM  
frohanss
An Aku'mai Servant
AddOn Author - Click to view AddOns

Forum posts: 33
File comments: 202
Uploads: 2
Originally Posted by joelsoul
Hey Fro i have a minor error to report:

Code:
1x ViksUI\UnitFrames\core.lua:833: bad argument #1 to 'pairs' (table expected, got nil)
[C]: in function `pairs'
ViksUI\UnitFrames\core.lua:833: in function `?'
FrameXML\ChatFrame.lua:4397: in function `ChatEdit_ParseText'
FrameXML\ChatFrame.lua:4065: in function `ChatEdit_SendText'
FrameXML\ChatFrame.lua:4101: in function `ChatEdit_OnEnterPressed'
[string "*:OnEnterPressed"]:1: in function <[string "*:OnEnterPressed"]:1>

Locals:
(*temporary) = nil
(*temporary) = "table expected, got nil"
 = <function> defined =[C]:-1
This error occurs when /testuf entered

Thanks as always for your work.
Have rewritten the code. Should work now
Report comment to moderator  
Reply With Quote
Unread 07-05-17, 04:02 PM  
frohanss
An Aku'mai Servant
AddOn Author - Click to view AddOns

Forum posts: 33
File comments: 202
Uploads: 2
Re: Error

Originally Posted by Almerish
Hey I just installed your UI and am really loving it however i am having some issues. When opening the group finder i get an error and i am unable to right click people when in a cross realm group. The errors I get are below (this is a fresh install of your ui since it is the first time i am using it).

Group Finder Error:

Code:
Message: attempt to call a nil value
Time: 04/09/17 18:13:03
Count: 1
Stack: [C]: ?
[C]: in function `securecall'
Interface\AddOns\ViksUI\Main\Minimap.lua:226: in function `func'
Interface\FrameXML\UIDropDownMenu.lua:791: in function `UIDropDownMenuButton_OnClick'
[string "*:OnClick"]:1: in function <[string "*:OnClick"]:1>

Locals:
Cross Realm Unit Frame Right Click Error:

Code:
Message: Interface\FrameXML\UnitPopup.lua:580: attempt to index local 'cntButton' (a nil value)
Time: 04/09/17 18:20:26
Count: 2
Stack: [C]: ?
Interface\FrameXML\UnitPopup.lua:580: in function `UnitPopup_ShowMenu'
Interface\FrameXML\SecureTemplates.lua:237: in function `initFunction'
Interface\FrameXML\UIDropDownMenu.lua:69: in function `UIDropDownMenu_Initialize'
Interface\FrameXML\UIDropDownMenu.lua:941: in function `ToggleDropDownMenu'
Interface\FrameXML\SecureTemplates.lua:309: in function `handler'
Interface\FrameXML\SecureTemplates.lua:619: in function `SecureActionButton_OnClick'
Interface\FrameXML\SecureTemplates.lua:659: in function <Interface\FrameXML\SecureTemplates.lua:651>

Locals:
First error is fixed. Gona check the other one later.
Report comment to moderator  
Reply With Quote
Unread 07-05-17, 04:00 PM  
frohanss
An Aku'mai Servant
AddOn Author - Click to view AddOns

Forum posts: 33
File comments: 202
Uploads: 2
Re: Re: Re: Colour

Originally Posted by esperkitty
Originally Posted by frohanss
Originally Posted by Juzu
Hi is there a way to change the blue colour of the setting ?
Yes, and there is also 6 premade "themes", by clicking on the blue icon on left side of minimap.
or by changing it under "MEDIA" in /config
Regretfully, it doesn't change anything when I've tried utilizing it. :<
Just forgot to change ViksUI/Config/theme.lua. Made changes to naming and forgot this file.

This is how it should look. Will add it in next update. Working on PTR version atm

Lua Code:
  1. local T, C, L, _ = unpack(select(2, ...))
  2.  
  3. ----------------------------------------------------------------------------------------
  4. --  Switch theme mouseover button on minimap
  5. ----------------------------------------------------------------------------------------
  6. local theme = CreateFrame("Button", "SwitchTheme", UIParent)
  7. theme:SetTemplate("Transparent")
  8. theme:SetPoint("BOTTOMRIGHT", Minimap, "BOTTOMLEFT", -3, 0)
  9. theme:SetSize(19, 19)
  10. theme:SetAlpha(0)
  11.  
  12. theme.t = theme:CreateTexture(nil, "OVERLAY")
  13. theme.t:SetTexture(C.media.blank)
  14. theme.t:SetVertexColor(unpack(C.media.border_color))
  15. theme.t:SetPoint("TOPLEFT", theme, 2, -2)
  16. theme.t:SetPoint("BOTTOMRIGHT", theme, -2, 2)
  17.  
  18. local function ThemeBorderC(r, g, b, a)
  19.     if not GUIConfigAll then return end
  20.     if GUIConfigAll[T.realm][T.name] == true then
  21.         if GUIConfig == nil then GUIConfig = {} end
  22.         if GUIConfig["media"] == nil then GUIConfig["media"] = {} end
  23.         GUIConfig["media"]["border_color"] = {r, g, b, a}
  24.     else
  25.         if GUIConfigSettings == nil then GUIConfigSettings = {} end
  26.         if GUIConfigSettings["media"] == nil then GUIConfigSettings["media"] = {} end
  27.         GUIConfigSettings["media"]["border_color"] = {r, g, b, a}
  28.     end
  29. end
  30.  
  31. local function ThemeBackdropC(r, g, b, a)
  32.     if not GUIConfigAll then return end
  33.     if GUIConfigAll[T.realm][T.name] == true then
  34.         if GUIConfig == nil then GUIConfig = {} end
  35.         if GUIConfig["media"] == nil then GUIConfig["media"] = {} end
  36.         GUIConfig["media"]["backdrop_color"] = {r, g, b, a}
  37.     else
  38.         if GUIConfigSettings == nil then GUIConfigSettings = {} end
  39.         if GUIConfigSettings["media"] == nil then GUIConfigSettings["media"] = {} end
  40.         GUIConfigSettings["media"]["backdrop_color"] = {r, g, b, a}
  41.     end
  42. end
  43.  
  44. local function ThemeOverlayC(r, g, b, a)
  45.     if not GUIConfigAll then return end
  46.     if GUIConfigAll[T.realm][T.name] == true then
  47.         if GUIConfig == nil then GUIConfig = {} end
  48.         if GUIConfig["media"] == nil then GUIConfig["media"] = {} end
  49.         GUIConfig["media"]["overlay_color"] = {r, g, b, a}
  50.     else
  51.         if GUIConfigSettings == nil then GUIConfigSettings = {} end
  52.         if GUIConfigSettings["media"] == nil then GUIConfigSettings["media"] = {} end
  53.         GUIConfigSettings["media"]["overlay_color"] = {r, g, b, a}
  54.     end
  55. end
  56.  
  57. local menuFrame = CreateFrame("Frame", "MinimapSwitchThemeButton", UIParent, "UIDropDownMenuTemplate")
  58. local thememenu = {
  59.     {text = "Style", isTitle = 1, notCheckable = 1, notClickable = 1},
  60.     {text = "Classic", notCheckable = 1, func = function()
  61.         ThemeBorderC(0, .38, .651, 1)
  62.         ThemeBackdropC(.06,.06,.06, 1)
  63.         ThemeOverlayC(0, 0, 0, 0.9)
  64.         ReloadUI()
  65.     end},
  66.     {text = "ClassicTransp", notCheckable = 1, func = function()
  67.         ThemeBorderC(0, .38, .651, 1)
  68.         ThemeBackdropC(.06,.06,.06, 1)
  69.         ThemeOverlayC(0, 0, 0, 0.5)
  70.         ReloadUI()
  71.     end},
  72.     {text = "TranspGray", notCheckable = 1, func = function()
  73.         ThemeBorderC(.64, .64, .64, 1)
  74.         ThemeBackdropC(.06,.06,.06, 1)
  75.         ThemeOverlayC(0, 0, 0, 0.5)
  76.         ReloadUI()
  77.     end},
  78.     {text = "Dark", notCheckable = 1, func = function()
  79.         ThemeBorderC(.31, .31, .31, 1)
  80.         ThemeBackdropC(.1, .1, .1, 1)
  81.         ThemeOverlayC(.054, .054, .054, .8)
  82.         ReloadUI()
  83.     end},
  84.     {text = "Black", notCheckable = 1, func = function()
  85.         ThemeBorderC(.125, .125, .125)
  86.         ThemeBackdropC(.05, .05, .05)
  87.         ThemeOverlayC(0, 0, 0, 0.4)
  88.         ReloadUI()
  89.     end},
  90.     {text = format("|cff%02x%02x%02x%s|r", 255 * T.color.r, 255 * T.color.g, 255 * T.color.b, "ClassColor"), notCheckable = 1, func = function()
  91.         ThemeBorderC(T.color.r, T.color.g, T.color.b, 1)
  92.         ThemeBackdropC(.06,.06,.06, 1)
  93.         ThemeOverlayC(0, 0, 0, 0.9)
  94.         ReloadUI()
  95.     end},
  96. }
  97.  
  98. theme:EnableMouse(true)
  99. theme:SetScript("OnClick", function()
  100.     EasyMenu(thememenu, menuFrame, "cursor", 0, 0, "MENU")
  101. end)
  102.  
  103. theme:SetScript("OnEnter", function()
  104.     if InCombatLockdown() then return end
  105.     theme:FadeIn()
  106. end)
  107.  
  108. theme:SetScript("OnLeave", function()
  109.     theme:FadeOut()
  110. end)
Last edited by frohanss : 07-05-17 at 04:01 PM.
Report comment to moderator  
Reply With Quote
Unread 04-19-17, 05:11 PM  
joelsoul
A Kobold Labourer

Forum posts: 0
File comments: 46
Uploads: 0
Hey Fro i have a minor error to report:

Code:
1x ViksUI\UnitFrames\core.lua:833: bad argument #1 to 'pairs' (table expected, got nil)
[C]: in function `pairs'
ViksUI\UnitFrames\core.lua:833: in function `?'
FrameXML\ChatFrame.lua:4397: in function `ChatEdit_ParseText'
FrameXML\ChatFrame.lua:4065: in function `ChatEdit_SendText'
FrameXML\ChatFrame.lua:4101: in function `ChatEdit_OnEnterPressed'
[string "*:OnEnterPressed"]:1: in function <[string "*:OnEnterPressed"]:1>

Locals:
(*temporary) = nil
(*temporary) = "table expected, got nil"
 = <function> defined =[C]:-1
This error occurs when /testuf entered

Thanks as always for your work.
Report comment to moderator  
Reply With Quote
Unread 04-09-17, 05:26 PM  
Almerish
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Error

Hey I just installed your UI and am really loving it however i am having some issues. When opening the group finder i get an error and i am unable to right click people when in a cross realm group. The errors I get are below (this is a fresh install of your ui since it is the first time i am using it).

Group Finder Error:

Code:
Message: attempt to call a nil value
Time: 04/09/17 18:13:03
Count: 1
Stack: [C]: ?
[C]: in function `securecall'
Interface\AddOns\ViksUI\Main\Minimap.lua:226: in function `func'
Interface\FrameXML\UIDropDownMenu.lua:791: in function `UIDropDownMenuButton_OnClick'
[string "*:OnClick"]:1: in function <[string "*:OnClick"]:1>

Locals:
Cross Realm Unit Frame Right Click Error:

Code:
Message: Interface\FrameXML\UnitPopup.lua:580: attempt to index local 'cntButton' (a nil value)
Time: 04/09/17 18:20:26
Count: 2
Stack: [C]: ?
Interface\FrameXML\UnitPopup.lua:580: in function `UnitPopup_ShowMenu'
Interface\FrameXML\SecureTemplates.lua:237: in function `initFunction'
Interface\FrameXML\UIDropDownMenu.lua:69: in function `UIDropDownMenu_Initialize'
Interface\FrameXML\UIDropDownMenu.lua:941: in function `ToggleDropDownMenu'
Interface\FrameXML\SecureTemplates.lua:309: in function `handler'
Interface\FrameXML\SecureTemplates.lua:619: in function `SecureActionButton_OnClick'
Interface\FrameXML\SecureTemplates.lua:659: in function <Interface\FrameXML\SecureTemplates.lua:651>

Locals:
Report comment to moderator  
Reply With Quote
Unread 02-27-17, 03:31 AM  
esperkitty
A Defias Bandit
 
esperkitty's Avatar

Forum posts: 2
File comments: 9
Uploads: 0
Re: Re: Colour

Originally Posted by frohanss
Originally Posted by Juzu
Hi is there a way to change the blue colour of the setting ?
Yes, and there is also 6 premade "themes", by clicking on the blue icon on left side of minimap.
or by changing it under "MEDIA" in /config
Regretfully, it doesn't change anything when I've tried utilizing it. :<
__________________
-=Where the rain is, so shall I be...
Report comment to moderator  
Reply With Quote
Unread 02-13-17, 04:52 AM  
frohanss
An Aku'mai Servant
AddOn Author - Click to view AddOns

Forum posts: 33
File comments: 202
Uploads: 2
Re: Colour

Originally Posted by Juzu
Hi is there a way to change the blue colour of the setting ?
Yes, and there is also 6 premade "themes", by clicking on the blue icon on left side of minimap.
or by changing it under "MEDIA" in /config
Report comment to moderator  
Reply With Quote
Unread 02-12-17, 04:51 AM  
Juzu
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Colour

Hi is there a way to change the blue colour of the setting ?
Report comment to moderator  
Reply With Quote
Unread 01-31-17, 06:32 AM  
frohanss
An Aku'mai Servant
AddOn Author - Click to view AddOns

Forum posts: 33
File comments: 202
Uploads: 2
Originally Posted by SWAGG3R
Trying to change the size of chat, I change the value and nothing happens even after restart
What size are you trying to change to? By default it's forced to be minimum 11.

Originally Posted by SWAGG3R
how to remove unitframes missing amount of health?
This can't be changed without coding.

Originally Posted by SWAGG3R
where you can change the size, font castbar?
It's linked to section under unitframe, but size is forced in code.

Originally Posted by SWAGG3R
and how to change the font here? http://imgur.com/a/rmXSq
Code:
	-- Nameplates font
	["nameplates_font"] = C.media.pixel_font,
	["nameplates_font_size"] = 8,
	["nameplates_font_style"] = "OUTLINEMONOCHROME",
	["nameplates_font_shadow"] = false,
Inside ViksUI\Config\Config.lua -> This is not loaded into ingame config.
Report comment to moderator  
Reply With Quote
Unread 01-22-17, 08:52 PM  
SWAGG3R
A Defias Bandit

Forum posts: 2
File comments: 6
Uploads: 0
Trying to change the size of chat, I change the value and nothing happens even after restart
and how to remove unitframes missing amount of health?
where you can change the size, font castbar?
and how to change the font here? http://imgur.com/a/rmXSq
Last edited by SWAGG3R : 01-23-17 at 12:04 AM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.