Skip to content
Snippets Groups Projects
Commit 2ffb6e25 authored by DarkGod's avatar DarkGod
Browse files

fix numberbox !!!!!

Reduced the volume of door creaking
parent e9fe69e7
No related branches found
No related tags found
No related merge requests found
All the medias located in all the "/data/gfx" folders are granted to use with the Tales of Maj'Eyal game only.
Please contact darkgod@te4.org for more informations.
All the tiles located in all the "gfx/shockbolt", "gfx/lore" "gfx/achievements"
folders are granted to use with the Tales of Maj'Eyal game only.
Please contact darkgod@te4.org for more informations.
......@@ -76,6 +76,7 @@ end
function _M:volumeMusic(vol)
vol = util.bound(vol, 0, 100)
print("====",vol)
if vol then
config.settings.audio = config.settings.audio or {}
config.settings.audio.music_volume = vol
......
......@@ -51,6 +51,7 @@ function _M:playSound(name, position)
local f = loadfile("/data/sound/"..name..".lua")
setfenv(f, setmetatable({}, {__index=_G}))
def = f()
if not def.file then def.file = name..".ogg" end
print("[SOUND] loading from", "/data/sound/"..name..".lua", ":=:", "/data/sound/"..def.file, ":>")
ok, def.sample = pcall(core.sound.load, "/data/sound/"..def.file, false)
if not ok then print("Failed loading sound", def.file, def.sample) return end
......
......@@ -76,5 +76,5 @@ function _M:updateText(v)
Textbox.setText(self, text)
end
if self.on_change and old ~= self.number then self.on_number_change(self.number) end
if self.on_number_change and old ~= self.number then self.on_number_change(self.number) end
end
......@@ -26,7 +26,7 @@ newBirthDescriptor{
locked = function() return profile.mod.allow_build.race_giant end,
locked_desc = "Powerful beings that tower over all, but the bigger they are, the harder they fall...",
desc = {
[[#{italic}#"Giant"#{normal}# is a catch-all term for humanoids which are typically over nine feet in height. Their origins, cultures, and relationships to other races differ wildly, but they tend to live as refugees and outcasts, shunned by smaller sentient races who usually see them as a threat.]],
[[#{italic}#"Giant"#{normal}# is a catch-all term for humanoids which are typically over eight feet in height. Their origins, cultures, and relationships to other races differ wildly, but they tend to live as refugees and outcasts, shunned by smaller sentient races who usually see them as a threat.]],
},
descriptor_choices =
{
......
return { volume = 35 }
return { volume = 35 }
return { volume = 35 }
return { volume = 35 }
return { volume = 35 }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment