Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local gui_elements = {}
- local gui_metatable = {}
- function gui_metatable
- function gui_elements.new_gui()
- local gui_table = {}
- setmetatable(gui_table, gui_metatable)
- end
- function gui_metatable.add_button(self, x_1, y_1, x_2, y_2, click_function)
- self.buttons = self.buttons or {}
- local cur_button = {
- x_1 = x_1,
- y_1 = y_1,
- x_2 = x_2,
- y_2 = y_2,
- click_function = click_function
- }
- table.insert(self.buttons, cur_button)
- end
- function gui_metatable.on_event(self, event, info_1, info_2, info_3)
- end
- return gui_elements
Advertisement
Add Comment
Please, Sign In to add comment