Digital Paint Discussion Board

Development => General Development => Topic started by: UDead on March 21, 2008, 11:34:55 AM

Title: I need help with my menu
Post by: UDead on March 21, 2008, 11:34:55 AM
I want to be able to stop my music that i have in my in game menu......what i would like to have it a stop butten i can click in my menu and it will stop the music so if i wanted to play a difrent song....

Heres what I have for my in game menu....

Code: [Select]
widget
    yrel 16
    halign center
    type text
    text "Music"
    command "menu music_list"

and here is what its bind too...

Code: [Select]
pb2menu 1

background menu_bg_ingame


widget
   xcent 0
   ycent -45
   halign center
   type text
   text " ˆËŽˆß͈ÏÕˆ¿Óˆ¯ÉˆŸÃˆË›ˆ¯Ìˆ¿ÉˆÏÓˆßԈˎ "

widget
   yrel 26
   halign center
   type text
   text " Soulja Boy "
   command "play sb"

widget
   yrel 16
   halign center
   type text
   text " fergie feat sean kingston "
   command "play bg"

widget
   yrel 16
   halign center
   type text
   text " Fergie Ft. Ludacris "
   command "play gl"

so can someone help me...??
Title: Re: I need help with my menu
Post by: ViciouZ on March 21, 2008, 11:48:38 AM
I did the same thing with a menu recently, main menu background noises.

Make a button and give it the command "snd_restart". Note this will kill all sounds playing.
Title: Re: I need help with my menu
Post by: UDead on March 21, 2008, 11:56:39 AM
ok...thx....now will the stander sound still work...like flag and stuff??
Title: Re: I need help with my menu
Post by: ViciouZ on March 21, 2008, 12:06:48 PM
Yes, but if they are playing when you click the button they will stop too.
Title: Re: I need help with my menu
Post by: UDead on March 21, 2008, 12:13:26 PM
ok...ill try it.....is there anything else u have that i could mess with or add.....??

i created a map....its called "Dye #2"......