mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 16:25:42 +00:00
Change GuiProfile to use Sound Asset
-Added SoundAssetInspector to bypass circular issue -Added SoundAsset to GuiTypes
This commit is contained in:
parent
ebbf0947b3
commit
5d85664b40
10 changed files with 91 additions and 106 deletions
|
|
@ -29,9 +29,6 @@ function UI::onDestroyGameServer(%this){}
|
|||
function UI::initClient(%this)
|
||||
{
|
||||
//Load UI stuff
|
||||
//we need to load this because some of the menu profiles use the sounds here
|
||||
//%this.queueExec("./datablocks/guiSounds");
|
||||
|
||||
//Profiles
|
||||
%this.queueExec("./scripts/profiles");
|
||||
|
||||
|
|
|
|||
|
|
@ -100,8 +100,8 @@ new GuiControlProfile( GuiMenuButtonProfile )
|
|||
canKeyFocus = false;
|
||||
//bitmapAsset = "UI:menu_button_image";
|
||||
hasBitmapArray = false;
|
||||
soundButtonDown = menuButtonPressed;
|
||||
soundButtonOver = menuButtonHover;
|
||||
soundButtonDown = "UI:buttonClick";
|
||||
soundButtonOver = "UI:buttonHover";
|
||||
category = "Core";
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +1,10 @@
|
|||
<SoundAsset canSave="true" canSaveDynamicFields="true" AssetName="buttonClick" soundFile="@assetFile=buttonClick.wav" PitchAdjust="1" VolumeAdjust="1" is3D="false" isLooping="false" isStreaming="false" useHardware="false" minDistance="1" maxDistance="100" coneInsideAngle="360" coneOutsideAngle="360" coneOutsideVolume="1" rolloffFactor="-1" scatterDistance="0 0 0"/>
|
||||
<SoundAsset
|
||||
AssetName="buttonClick"
|
||||
soundFile="@assetFile=buttonClick.wav"
|
||||
PitchAdjust="1"
|
||||
VolumeAdjust="1"
|
||||
is3D="false"
|
||||
minDistance="1"
|
||||
maxDistance="100"
|
||||
sourceGroup="AudioChannelGui"
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -1 +1,10 @@
|
|||
<SoundAsset canSave="true" canSaveDynamicFields="true" AssetName="buttonHover" soundFile="@assetFile=buttonHover.wav" PitchAdjust="1" VolumeAdjust="1" is3D="false" isLooping="false" isStreaming="false" useHardware="true" minDistance="1" maxDistance="120" coneInsideAngle="360" coneOutsideAngle="360" coneOutsideVolume="1" rolloffFactor="-1" scatterDistance="0 0 0"/>
|
||||
<SoundAsset
|
||||
AssetName="buttonHover"
|
||||
soundFile="@assetFile=buttonHover.wav"
|
||||
PitchAdjust="1"
|
||||
VolumeAdjust="1"
|
||||
is3D="false"
|
||||
minDistance="1"
|
||||
maxDistance="100"
|
||||
sourceGroup="AudioChannelGui"
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue