Version 1.3 - auto reconnect, better bot (with sound), animated mounts, bug fixes

This commit is contained in:
OTCv8
2019-11-11 17:10:03 +01:00
parent d78af570ea
commit 1072671986
48 changed files with 458 additions and 154 deletions

View File

@@ -26,3 +26,23 @@ Panel
margin-top: 3
minimum: 0
maximum: 100
Label
id: botSoundVolumeLabel
!text: tr('Bot sound volume: %d', 100)
anchors.left: parent.left
anchors.right: parent.right
anchors.top: prev.bottom
margin-top: 6
@onSetup: |
local value = modules.client_options.getOption('botSoundVolume')
self:setText(tr('Bot sound volume: %d', value))
OptionScrollbar
id: botSoundVolume
anchors.left: parent.left
anchors.right: parent.right
anchors.top: prev.bottom
margin-top: 3
minimum: 0
maximum: 100

View File

@@ -26,11 +26,6 @@ Panel
!text: tr('Enable smart walking')
!tooltip: tr('Will detect when to use diagonal step based on the\nkeys you are pressing')
OptionCheckBox
id: realDirection
!text: tr('Show real direction (ignore walk direction)')
!tooltip: tr('Shows real creature direction while it\'s walking')
Label
anchors.top: prev.bottom
anchors.left: parent.left

View File

@@ -3,7 +3,7 @@ local defaultOptions = {
showFps = true,
showPing = true,
fullscreen = false,
classicView = false,
classicView = true,
classicControl = true,
smartWalk = false,
extentedPreWalking = true,
@@ -16,12 +16,13 @@ local defaultOptions = {
showPrivateMessagesInConsole = true,
showPrivateMessagesOnScreen = true,
rightPanels = 1,
leftPanels = 0,
leftPanels = 2,
containerPanel = 8,
backgroundFrameRate = 100,
enableAudio = false,
enableAudio = true,
enableMusicSound = false,
musicSoundVolume = 100,
botSoundVolume = 100,
enableLights = false,
floorFading = 500,
crosshair = 2,
@@ -235,6 +236,11 @@ function setOption(key, value, force)
g_sounds.getChannel(SoundChannels.Music):setGain(value/100)
end
audioPanel:getChildById('musicSoundVolumeLabel'):setText(tr('Music volume: %d', value))
elseif key == 'botSoundVolume' then
if g_sounds ~= nil then
g_sounds.getChannel(SoundChannels.Bot):setGain(value/100)
end
audioPanel:getChildById('botSoundVolumeLabel'):setText(tr('Bot sound volume: %d', value))
elseif key == 'showHealthManaCircle' then
modules.game_healthinfo.healthCircle:setVisible(value)
modules.game_healthinfo.healthCircleFront:setVisible(value)