fix: fix missing vars

This commit is contained in:
Kazhnuz Klappsthul 2020-11-09 15:59:57 +01:00
parent 77311a803b
commit 6a66cff503
2 changed files with 3 additions and 3 deletions

View File

@ -61,7 +61,7 @@ function Box3D:setSizeFromOwner()
self:setSize(self.owner.w, self.owner.h, self.owner.d)
end
function Box3D:setSize()
function Box3D:setSize(w, h, d)
self.w = w
self.h = h
self.d = d

View File

@ -113,7 +113,7 @@ function widgets.Switch:new(scene, menu, keyname)
local label = core.lang:translate("options", keyname)
local label2 = self:getLabel()
widgets.Switch.super.new(self, widgetmenu, font, label, label2)
self.order = order or 0
self.order = 0
end
function widgets.Switch:modifyKey()
@ -263,7 +263,7 @@ end
function widgets.Audio:new(scene, menu, audiotype)
self.scene = scene
self.audiotype = key
self.audiotype = audiotype
local widgetmenu = self.scene.menusystem.menus[menu]