mirror of
https://git.alee14.me/shiftos-archive/ShiftOS_TheReturn.git
synced 2025-02-02 06:17:34 +00:00
Added audio volume shiftorium upgrade
This commit is contained in:
parent
28f0cda0c5
commit
22e567ca3f
1 changed files with 2 additions and 0 deletions
|
@ -112,6 +112,7 @@ namespace ShiftOS.Engine
|
|||
{
|
||||
[Command("setvol", description = "Set the volume of the system audio to anywhere between 0 and 100.")]
|
||||
[RequiresArgument("value")]
|
||||
[RequiresUpgrade("audio_volume")]
|
||||
public static bool SetVolume(Dictionary<string,object> args)
|
||||
{
|
||||
int val = Convert.ToInt32(args["value"].ToString());
|
||||
|
@ -119,6 +120,7 @@ namespace ShiftOS.Engine
|
|||
AudioManager.SetVolume(volume);
|
||||
return true;
|
||||
}
|
||||
[RequiresUpgrade("audio_volume")]
|
||||
[Command("mute", description = "Sets the volume of the system audio to 0")]
|
||||
public static bool MuteAudio()
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue