Made dialog boxes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user