Gamestudio Links
Zorro Links
Newest Posts
zorro license, IB connection
by miwok. 12/06/23 16:32
Newbie Questions
by fairtrader. 12/06/23 11:29
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
6 registered members (miwok, AndrewAMD, TipmyPip, 3run, Quad, 1 invisible), 645 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
pls help how will i code for the volume control... #255039
03/07/09 08:31
03/07/09 08:31
Joined: Aug 2008
Posts: 10
R
Rye Offline OP
Newbie
Rye  Offline OP
Newbie
R

Joined: Aug 2008
Posts: 10
this is my code
Code:
#include <acknex.h>
#include "default.c"

var volume = 0;

SOUND* test1_wav = "CI_Battlefield.wav";
SOUND* test2_wav = "Ci_Intro.wav";
SOUND* test3_wav = "Sword01.wav";
BMAP* test1_pcx = "option_volume.pcx";
BMAP* arrow_pcx = "arrow.pcx";

function main()
{
    video_mode = 7;
    screen_color.blue = 150;
    mouse_map = arrow_pcx;
    mouse_mode = 2;
    while (1)
     {
         mouse_pos.x = mouse_cursor.x;
         mouse_pos.y = mouse_cursor.y;
         wait (1);
     }
}

function volume()
{
	// what code in here?...
}

PANEL* main_pan =
{
    bmap = test1_pcx;
    pos_x = 0;
    pos_y = 0;
    hslider (35, 182, 349, "slider.pcx", 0, 100, volume);
    digits (15, 50, 3, _a4font, 1, volume);
    flags = VISIBLE;
}




Re: pls help how will i code for the volume control... [Re: Rye] #255083
03/07/09 14:02
03/07/09 14:02
Joined: May 2007
Posts: 2,043
Germany
Lukas Offline

Programmer
Lukas  Offline

Programmer

Joined: May 2007
Posts: 2,043
Germany


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1