naming conventions act 2: the end

This commit is contained in:
lustlion
2022-03-06 09:35:45 +01:00
parent edd064c2fd
commit 05bf757ea5
29 changed files with 509 additions and 536 deletions

View File

@@ -39,7 +39,7 @@ function InterfaceButton:new(x,y,w,h,table_values,value,style)
scale_proportion = 1.5
}
AddElement(o)
addElement(o)
setmetatable(o, self)
self.__index = self
@@ -71,7 +71,7 @@ function InterfaceButton:checkMouse(mouse_x, mouse_y)
end
end
function InterfaceButton:Draw()
function InterfaceButton:draw()
local c1, c2, c3, a = love.graphics.getColor()
love.graphics.setColor(self.style.color[1],self.style.color[2],self.style.color[3],self.style.alpha)

View File

@@ -29,7 +29,7 @@ function InterfaceDialog:new(style)
scale_proportion = 1
}
AddElement(o)
addElement(o)
setmetatable(o, self)
self.__index = self
@@ -65,7 +65,7 @@ function InterfaceDialog:checkConfirm()
end
end
function InterfaceDialog:Draw()
function InterfaceDialog:draw()
local c1, c2, c3, a = love.graphics.getColor()
love.graphics.setColor(self.style.color[1],self.style.color[2],self.style.color[3],self.style.alpha)