Skip to content

Commit

Permalink
*adjusting volumes
Browse files Browse the repository at this point in the history
  • Loading branch information
bahstrike committed Dec 26, 2022
1 parent 259200f commit e7c3262
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
8 changes: 4 additions & 4 deletions ACAudio/PluginCore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,10 @@ protected override void Startup()
View["Defaults"].Hit += delegate (object sender, EventArgs e)
{
(View["Enable"] as HudCheckBox).Checked = true;
(View["Volume"] as HudHSlider).Position = 75;
(View["Volume"] as HudHSlider).Position = 100;

(View["MusicEnable"] as HudCheckBox).Checked = true;
(View["MusicVolume"] as HudHSlider).Position = 35;
(View["MusicVolume"] as HudHSlider).Position = 75;

(View["PortalMusicEnable"] as HudCheckBox).Checked = true;
};
Expand Down Expand Up @@ -421,10 +421,10 @@ protected override void Startup()
using (INIFile ini = INIFile)
{
(View["Enable"] as HudCheckBox).Checked = ini.GetKeyString(Core.CharacterFilter.AccountName, "Enable", "1") != "0";
(View["Volume"] as HudHSlider).Position = int.Parse(ini.GetKeyString(Core.CharacterFilter.AccountName, "Volume", "75"));
(View["Volume"] as HudHSlider).Position = int.Parse(ini.GetKeyString(Core.CharacterFilter.AccountName, "Volume", "100"));

(View["MusicEnable"] as HudCheckBox).Checked = ini.GetKeyString(Core.CharacterFilter.AccountName, "MusicEnable", "1") != "0";
(View["MusicVolume"] as HudHSlider).Position = int.Parse(ini.GetKeyString(Core.CharacterFilter.AccountName, "MusicVolume", "35"));
(View["MusicVolume"] as HudHSlider).Position = int.Parse(ini.GetKeyString(Core.CharacterFilter.AccountName, "MusicVolume", "75"));

(View["PortalMusicEnable"] as HudCheckBox).Checked = ini.GetKeyString(Core.CharacterFilter.AccountName, "PortalMusicEnable", "1") != "0";

Expand Down
Binary file modified DEPLOY_ACAUDIO/ACAudio.dll
Binary file not shown.
14 changes: 9 additions & 5 deletions DEPLOY_ACAUDIO/data/master.aca
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,13 @@ push
pop


file tax2020_3.mp3
include olthoidungeons.aca
dungeon 0096//eater jaw
push
vol 0.685

file tax2020_3.mp3
include olthoidungeons.aca
dungeon 0096//eater jaw
pop


// HAHA lets test tying a song to an enemy
Expand Down Expand Up @@ -498,7 +502,7 @@ dynamic class=misc string(name)="Bonfire" // fires seen with some random monster

// ------ FOOD SIMMERING --------
file simmering.ogg
vol 0.4
vol 0.8
mindist 6.0
maxdist 16.0

Expand All @@ -508,7 +512,7 @@ static 02000345// cooking pot hanging over fire

// ------ BLACKSMITH FORGE --------
file forge.ogg
vol 0.2
vol 0.6
mindist 8.0
maxdist 18.0

Expand Down

0 comments on commit e7c3262

Please sign in to comment.