Commit cb75c13b authored by Benik's avatar Benik

Merge branch 'development'

parents df72e04c abdcfd2a
v1.12 - Mar 19 2020
*Fixed Volume up/down mouseover
v1.11 - Feb 24 2020
*Complied to latest ElvUI options changes
*Update and clean Dashboard options
......
## Interface: 11303
## Author: Benik
## Version: 1.11
## Version: 1.12
## Title: |cff1784d1ElvUI|r |cff00c0faBenikUI Classic|r
## Notes: an ElvUI Classic decorative/enhancement edit
## RequiredDeps: ElvUI
......
......@@ -22,6 +22,12 @@ local function GetVolumePercent(cat)
return volume;
end
local function RoundVolume(cat)
local volume = tonumber(GetCVar(cat));
volume = E:Round(volume, 1)
return volume;
end
local function iconBG_OnEnter(self)
GameTooltip:SetOwner(self, 'ANCHOR_RIGHT', 5, -20)
GameTooltip:ClearAllPoints()
......@@ -52,18 +58,16 @@ local function iconBG_OnLeave(self)
end
local function Sound_MasterVolumeUp()
local volume = (GetCVar('Sound_MasterVolume'));
local volume = RoundVolume('Sound_MasterVolume')
volume = tonumber(E:Round(volume, 1));
if (volume and volume <= 0.9) then
SetCVar('Sound_MasterVolume', volume + 0.1);
end
end
local function Sound_MasterVolumeDown()
local volume = (GetCVar('Sound_MasterVolume'));
local volume = RoundVolume('Sound_MasterVolume')
volume = tonumber(E:Round(volume, 1));
if (volume and volume >= 0.1) then
SetCVar('Sound_MasterVolume', volume - 0.1);
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment