2 registered members (Akow, tomaslolo),
1,536
guests, and 12
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Stupid SED? (small code)
#257821
03/25/09 18:21
03/25/09 18:21
|
Joined: Apr 2005
Posts: 2,332 Germany, BaWü
aztec
OP
Expert
|
OP
Expert
Joined: Apr 2005
Posts: 2,332
Germany, BaWü
|
can't fint any mistakes in the following code but somehow it doesnt change the panel when the mouse touches the button and it won't make any sounds (beep();) only if I press the button p off course. Does anyone know whats wrong? function overbeep
{
beep();
}
on_p = overbeep;
panel playerpan
{
pos_x = 0;
pos_y = 0;
bmap = hintergrund;
flags = visible,refresh,overlay;
layer = 1;
button = -15,-8,mainbtn,mainbtn,mainbtn,null,null,null;
button = -15,-8,startbtn,startbtn,startover,overbeep,null,overbeep;
button = -15,-50,stopbtn,stopbtn,stopover,overbeep,null,overbeep;
}
function main
{
wait(1);
video_window(NULL,NULL,16,"AztecMP3-Player V: 1.0");
video_set(420,120,0,0);
mouse_mode = 2;
mouse_map = cursor;
while(1)
{
MOUSE_POS.X = mouse_cursor.x;
MOUSE_POS.Y = mouse_cursor.y;
wait(1);
}
} best regards Aztec
Visit: schwenkschuster-design.de
|
|
|
Re: Stupid SED? (small code)
[Re: aztec]
#257825
03/25/09 18:39
03/25/09 18:39
|
Joined: Apr 2006
Posts: 273 Germany, NRW
Meerkat
Member
|
Member
Joined: Apr 2006
Posts: 273
Germany, NRW
|
Ich bin mir nicht sicher. Aber ich glaub du musst die Abfrage des in die Main function schreiben. So funktionierts bei mir. ^^
http://www.gpi-studios.comOS: Windows 7 Home Premium (64 Bit Version) AMD Athlon 64 X2 Dual Core Processor 5200+ 6gb DDR 2 - RAM NVIDIA GeForce GTX 460 GameStudio Version A8 Commercial
|
|
|
Re: Stupid SED? (small code)
[Re: aztec]
#257834
03/25/09 20:04
03/25/09 20:04
|
Joined: Jul 2007
Posts: 959 nl
flits
User
|
User
Joined: Jul 2007
Posts: 959
nl
|
maby this is your rpoblem
Buttons outside the panel area won't react on the mouse. The panel area is defined either by the size of the panel background bitmap, or by the size_x/y parameters. If the panel only consists of a single button and has no background bitmap, always place it at the 0,0 position
"empty"
|
|
|
Re: Stupid SED? (small code)
[Re: flits]
#257855
03/25/09 23:25
03/25/09 23:25
|
Joined: Jun 2008
Posts: 428
Rasch
Senior Member
|
Senior Member
Joined: Jun 2008
Posts: 428
|
Probiers mal damit! function overbeep
{
beep();
}
on_p = overbeep;
panel playerpan
{
pos_x = 0;
pos_y = 0;
bmap = hintergrund;
flags = visible,refresh,overlay;
layer = 1;
button = 15,8,mainbtn,mainbtn,mainbtn2,null,null,null;
button = 15,8,startbtn,startbtn,startover,null,null,overbeep;
button = 15,50,stopbtn,stopbtn,stopover,null,null,overbeep;
}
function main
{
wait(1);
video_window(NULL,NULL,16,"AztecMP3-Player V: 1.0");
video_set(420,120,0,0);
mouse_mode = 2;
mouse_map = cursor;
while(1)
{
MOUSE_POS.X = mouse_cursor.x;
MOUSE_POS.Y = mouse_cursor.y;
wait(1);
}
}
|
|
|
|