Made dialog boxes

This commit is contained in:
bizcochito
2022-02-01 15:05:36 +01:00
parent b4311064f6
commit 2113917fb1
7 changed files with 134 additions and 5 deletions

View File

@@ -52,14 +52,14 @@ end
function interfaceButton:getVariable()
return self.target_variable
end
function AddElement(self)
table.insert(UIElement,self)
self.id = #UIElement
end
function interfaceButton:checkMouse(mouse_x, mouse_y)
if self.clicked == false
if not self.clicked
and mouse_x < self.pos.x + self.size.w/2
and mouse_x > self.pos.x - self.size.w/2
and mouse_y < self.pos.y + self.size.h/2