Skip to content

Commit

Permalink
v1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
EnhancedJax committed Feb 7, 2022
1 parent b9bb890 commit 3ab63fb
Show file tree
Hide file tree
Showing 67 changed files with 767 additions and 369 deletions.
Binary file modified @Resources/Actions/Source code/YourMixer.ahk
Binary file not shown.
Binary file added @Resources/Icons/GetIcons/Icons/7zG.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added @Resources/Icons/GetIcons/Icons/ColorPickerUI.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added @Resources/Icons/GetIcons/Icons/FileConverter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added @Resources/Icons/GetIcons/Icons/Signal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added @Resources/Icons/GetIcons/Icons/SndVol.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added @Resources/Icons/GetIcons/Icons/SpeechUXWiz.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added @Resources/Icons/GetIcons/Icons/iconsext.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added @Resources/Icons/GetIcons/Icons/inkscape.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added @Resources/Icons/GetIcons/Icons/osu!.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added @Resources/Icons/GetIcons/Icons/paintdotnet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added @Resources/Icons/GetIcons/Icons/wps.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added @Resources/Icons/New folder/Volume0Segoe.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added @Resources/Icons/New folder/Volume1Segoe.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added @Resources/Icons/New folder/Volume2Segoe.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added @Resources/Icons/New folder/Volume3Segoe.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added @Resources/Icons/New folder/Volume4Segoe.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added @Resources/Icons/Volume0Material_64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added @Resources/Icons/Volume0Segoe.ico
Binary file not shown.
Binary file added @Resources/Icons/Volume0Segoe_64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added @Resources/Icons/Volume1Material_64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added @Resources/Icons/Volume1Segoe.ico
Binary file not shown.
Binary file added @Resources/Icons/Volume1Segoe_64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added @Resources/Icons/Volume2Material_64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added @Resources/Icons/Volume2Segoe.ico
Binary file not shown.
Binary file added @Resources/Icons/Volume2Segoe_64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added @Resources/Icons/Volume3Material_64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added @Resources/Icons/Volume3Segoe.ico
Binary file not shown.
Binary file added @Resources/Icons/Volume3Segoe_64.png
Binary file added @Resources/Icons/Volume4Material_64.png
Binary file added @Resources/Icons/Volume4Segoe.ico
Binary file not shown.
Binary file added @Resources/Icons/Volume4Segoe_64.png
Binary file removed @Resources/Icons/Volume4Win10.ico
Binary file not shown.
Binary file removed @Resources/Icons/Volume4Win10_16.png
Diff not rendered.
Binary file added @Resources/Images/YourMixer.png
Binary file added @Resources/Images/tour2.png
Binary file added @Resources/Images/tour3.png
Binary file added @Resources/Images/tour4.png
10 changes: 5 additions & 5 deletions @Resources/Includes/Tray1.inc
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
[AppVolper0]
Measure=Plugin
Plugin=Win7AudioPlugin
IfCondition=AppVolper0 <= 0
IfCondition=AppVolper0 < 0
iftrueaction=[!SetOption MeasureTray IconName "#@#Icons\Volume0#IconTheme#.ico"][!UpdateMeasure MeasureTray]
IfCondition2=(AppVolPer0 > 0) && (AppVolPer0 < 20)
IfCondition2=(AppVolPer0 = 0)
IfTrueAction2=[!SetOption MeasureTray IconName "#@#Icons\Volume1#IconTheme#.ico"][!UpdateMeasure MeasureTray]
IfCondition3=(AppVolPer0 >= 20) && (AppVolPer0 < 50)
IfCondition3=(AppVolPer0 > 0) && (AppVolPer0 < 30)
IfTrueAction3=[!SetOption MeasureTray IconName "#@#Icons\Volume2#IconTheme#.ico"][!UpdateMeasure MeasureTray]
IfCondition4=(AppVolPer0 >= 50) && (AppVolPer0 < 90)
IfCondition4=(AppVolPer0 >= 30) && (AppVolPer0 < 70)
IfTrueAction4=[!SetOption MeasureTray IconName "#@#Icons\Volume3#IconTheme#.ico"][!UpdateMeasure MeasureTray]
IfCondition5=(AppVolPer0 >= 90)
IfCondition5=(AppVolPer0 >= 70)
IfTrueAction5=[!SetOption MeasureTray IconName "#@#Icons\Volume4#IconTheme#.ico"][!UpdateMeasure MeasureTray]
DynamicVariables=1
UpdateDivider=1
Expand Down
Binary file modified @Resources/Lua/Func.lua
Binary file not shown.
115 changes: 110 additions & 5 deletions @Resources/Powershell/generateMixer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,27 @@ function generateMixer {
$saveLocation = "$($RmAPI.VariableStr('ROOTCONFIGPATH'))Main\Accessories\Page\Main.ini"
$scale = $RmAPI.VariableStr('scale')
$pageW = $RmAPI.VariableStr('W')
$collapsetype = $RmAPI.VariableStr('CollapseIcons')

$rows = $RmAPI.Measure('AppVolumeParent')
if ($collapsetype -ne 0) {
$AppArray = @()
$SkipIndex = @()

for (($i = 1); $i -le $rows; $i++) {
$RmAPI.Bang("[!SetOption AppVolTester Index $i][!UpdateMeasure AppVolTester]")
$AppName = $RmAPI.MeasureStr('AppvolTester')
if ($AppName -in $AppArray) {
$SkipIndex += $i
}
$AppArray += $appName
}

if ($collapsetype -eq 2) {
$AppHash = $AppArray | Group-Object -AsHashTable -AsString
}
}

if (($rows -gt 0) -and ($RmAPI.Variable('Stroke') -eq 1)) {
$fileContent += @"
Expand All @@ -14,15 +33,62 @@ MeterStyle=DividerStyle
"@
$additionalSize = 40
}
$pageH = ((60+(40+($RmAPI.Variable('additionalPadding')))*($rows+1)+20+$additionalSize) * $scale)
for (($i = 1); $i -le $rows; $i++) {
$fileContent += @"

# $pageH = ((80+(40+($RmAPI.Variable('additionalPadding')))*($rows+1-$SkipIndex.Count)+20+$additionalSize) * $scale)
$pad = $RmAPI.Variable('additionalPadding')
$pageH = ((80 + (40 + $pad) * ($rows - $SkipIndex.Count) + 40 + $additionalSize) * $scale)

if ($collapsetype -ne 2) {
for (($i = 1); ($i -le $rows) ; $i++) {
if ($i -notin $SkipIndex) {
$fileContent += @"
[AppVol$i]
Measure=Plugin
Plugin=AppVolume
Parent=AppVolumeParent
Index=$i
Substitute=#ReplaceApp#
Group=UpdateWhenChange
[AppVolPer$i]
Measure=Calc
Formula=Round(AppVol$i * 100)
Group=UpdateWhenChange
Substitute="-100":"Muted"
[pVol$i]
Meter=Image
MeterStyle=ImageStyle | ImageStyle:#FetchIcons#
[Vol$i]
Meter=String
MeterStyle=RegularText | TextStyle | TextStyle:#FetchIcons#
[$i]
Meter=Shape
MeterStyle=ShapeStyle
[VolPer$i]
Meter=String
MeterStyle=RegularText | VolStyle
"@
}

}
} else {
$RmAPI.Log($AppArray)
# $RmAPI.Log($rows)
# $RmAPI.Log($AppHash['Discord'].Count)
for (($i = 1); ($i -le $rows) ; $i++) {
if ($i -notin $SkipIndex) {
$fileContent += @"
[AppVol$i]
Measure=Plugin
Plugin=AppVolume
Parent=AppVolumeParent
Index=$i
Substitute=".exe":""
Substitute=#ReplaceApp#
Group=UpdateWhenChange
[AppVolPer$i]
Expand All @@ -39,19 +105,58 @@ MeterStyle=ImageStyle | ImageStyle:#FetchIcons#
Meter=String
MeterStyle=RegularText | TextStyle | TextStyle:#FetchIcons#
"@
if ($AppHash[$AppArray[$i-1]].Count -gt 1) {
$occuranceArray = (0..($AppArray.Count-1)) | where {$AppArray[$_] -eq "$($AppArray[$i-1])"}
for ($j = 0; $j -lt $occuranceArray.Count; $j++) {
$fileContent += @"
[$($occuranceArray[$j] + 1)]
Meter=Shape
X=(#LeftW# * #scale# + ((#W#-(#LeftW#+22+75)*#scale#)/ $($AppHash[$AppArray[$i-1]].Count) - 10 * ($($AppHash[$AppArray[$i-1]].Count) - 1) + 20)* $j)
MeterStyle=ShapeStyle | ShapeStyle:$($AppHash[$AppArray[$i-1]].Count)
"@
}
} else {
$fileContent += @"
[$i]
Meter=Shape
MeterStyle=ShapeStyle
"@
}
$fileContent += @"
[VolPer$i]
Meter=String
MeterStyle=RegularText | VolStyle
"@
} else {
$fileContent += @"
[AppVol$i]
Measure=Plugin
Plugin=AppVolume
Parent=AppVolumeParent
Index=$i
Substitute=#ReplaceApp#
Group=UpdateWhenChange
[AppVolPer$i]
Measure=Calc
Formula=Round(AppVol$i * 100)
Group=UpdateWhenChange
Substitute="-100":"Muted"
"@
}
}

}

$fileContent | Out-File -FilePath $($RmAPI.VariableStr('ROOTCONFIGPATH') + 'Main\\Accessories\\Page\\Variants\\VolumeMixerCache.inc') -Encoding unicode

$RmAPI.Bang("[!WriteKeyValue Variables W $pageW `"$saveLocation`"][!WriteKeyValue Variables H $pageH `"$saveLocation`"][!Activateconfig `"YourMixer\Main\Accessories\Page`"]")

}
Binary file modified @Resources/Presets/Blur.inc
Binary file not shown.
Binary file modified @Resources/Presets/BlurIcon.inc
Binary file not shown.
Binary file modified @Resources/Presets/DEFAULT.inc
Binary file not shown.
Binary file modified @Resources/Vars.inc
Binary file not shown.
Binary file modified @Resources/Version.inc
Binary file not shown.
Binary file modified Core/#page.inc
Binary file not shown.
Loading

0 comments on commit 3ab63fb

Please sign in to comment.