Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Load Volume from somewhere else


Growlith1223
 Share

Recommended Posts

ok so i noticed that almost all games here only do the On/Off thing…I personally hate that since it gets really annoying at times....

Anyways,

Go to ModSound and Look for

```

Public Const DefaultVolume As Long = 80

```
Change that to

```

Public DefaultVolume As Long

```

After that, go into the LoadOptions and add

```

DefaultVolume = GetVar(filename, "OPTIONS", "DefaultVolume")

```
And after that, put a scrollbar on the picOptions and set the min to 1 and Max to 100

Add a label, Name it lblVolume and the caption: "Volume: "

in the scroll bar code,

```

lblVolume.Caption = "Volume: " & scrlVolume.Value

DefaultVolume = scrlVolume.Value

```

After that, in the options.ini add

```

Volume= 80

```
and ur finished!

You can do the saveoptions thing if you want.

EDIT: i fixed a certain part of the code
Link to comment
Share on other sites

  • 2 years later...
You have something about this that makes it a little inconvenient… You should add to the bottom area of the LoadOptions to change the value of lblVolume and scrlVolume to what was found in the ini... Otherwise they can load the old volume, but they have to change it again and dont know the old value without just going back to the ini.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...