Product Chat / Adding sounds to main menu - hovering and selecting

Author
Message
Duchenkuke
GameGuru VBOTB Developer
8
Years of Service
User Offline
Joined: 7th Jun 2016
Location: Germany
Posted: 6th Dec 2016 22:42
Hey Guys, I know that there has been a thread like this bevore.
But we couldn't find a solution and I really want to do this...

I want to add sounds to the main menu.
One that plays when the players hovers a button -
and ine that plays when the player selects something.

Would be great if it works in the loading/options menus as well.
Do you have an idea how this could be accomplished?

- Duchenkuke
Windows 10 64bit - Intel Core i7-2600 CPU @ 3.40GHz, 8,0 GB Ram, AMD Radeon R9 270X

Youtube:
The German Music Dude: https://www.youtube.com/user/DeutscherVolker
DK Productions: https://www.youtube.com/channel/UCIqwvScXnJL_zNYqSsfTCqA
Teabone
Forum Support
18
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Earth
Posted: 7th Dec 2016 03:47
I'd be very interested too! I know this was possible in FPSC. I think in GG the main menu is a lua script so it is possible?
Twitter - Teabone3 | Youtube - Teabone3 | Twitch - Teabone3 | TGC Assets - Store Link

i7 -2600 CPU @ 3.40GHz - Windows 7 - 8GB RAM - Nivida GeForce GT 740
Pirate Myke
Forum Support
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 7th Dec 2016 05:54
Yes it would be with the lua scripts that are in the titlesbank/default folder. Now scripting that in, is above my current skill level.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

Duchenkuke
GameGuru VBOTB Developer
8
Years of Service
User Offline
Joined: 7th Jun 2016
Location: Germany
Posted: 7th Dec 2016 13:54
Yes... same for me. Thanks so far !
Windows 10 64bit - Intel Core i7-2600 CPU @ 3.40GHz, 8,0 GB Ram, AMD Radeon R9 270X

Youtube:
The German Music Dude: https://www.youtube.com/user/DeutscherVolker
DK Productions: https://www.youtube.com/channel/UCIqwvScXnJL_zNYqSsfTCqA
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 7th Dec 2016 22:45
first add 2 sounds to
Quote: "audiobank\misc\"

name 1
Quote: "menu_hover_sound.ogg"
and the other
Quote: "menu_select_sound.ogg"


then...
video guide ;


text guide;
now find the main(e) part of the menu script you want to add sound to (title.lua etc)
and look for
Quote: "if iHighlightButton == i then
SetSpriteImage ( g_sprButton[i], g_imgButtonH[i] )"

add a new line directly below it and paste

now look a couple lines down for
Quote: "else
SetSpriteImage ( g_sprButton[i], g_imgButton[i] )"

add a new line directly below and paste

that's your moving onto a button sound done.

now find (should be just below the previous code again)
Quote: " if g_MouseClick == 1 then"

add a new line and paste

and that's the adding a sound when clicking a button done.
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Duchenkuke
GameGuru VBOTB Developer
8
Years of Service
User Offline
Joined: 7th Jun 2016
Location: Germany
Posted: 8th Dec 2016 12:30
Awesome. Will try this as soon as I am back from work. THANKS !!!
Windows 10 64bit - Intel Core i7-2600 CPU @ 3.40GHz, 8,0 GB Ram, AMD Radeon R9 270X

Youtube:
The German Music Dude: https://www.youtube.com/user/DeutscherVolker
DK Productions: https://www.youtube.com/channel/UCIqwvScXnJL_zNYqSsfTCqA
Pirate Myke
Forum Support
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 8th Dec 2016 13:57
Thank you smallg.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

Duchenkuke
GameGuru VBOTB Developer
8
Years of Service
User Offline
Joined: 7th Jun 2016
Location: Germany
Posted: 8th Dec 2016 15:33
Yes, works perfectly ! Thank you very much smallg !
Windows 10 64bit - Intel Core i7-2600 CPU @ 3.40GHz, 8,0 GB Ram, AMD Radeon R9 270X

Youtube:
The German Music Dude: https://www.youtube.com/user/DeutscherVolker
DK Productions: https://www.youtube.com/channel/UCIqwvScXnJL_zNYqSsfTCqA
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 8th Dec 2016 16:25
no worries
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11

Login to post a reply

Server time is: 2024-09-29 01:22:02
Your offset time is: 2024-09-29 01:22:02