SHARE
TWEET

menu.lua

a guest Apr 23rd, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if Menu then return end
  2.  
  3. Menu = {Title = "", Button1 = "", Button2 = "", Button3 = "", Button4 = "", Button5 = "", Button6 = "", Button7 = "", Button8 = "", Button9 = ""}
  4.  
  5. function Menu:Create(m)
  6.     m.parent = self
  7.  
  8.     function m:ToString()
  9.         return self.Title..","..self.Button1..","..self.Button2..","..self.Button3..","..self.Button4..","..self.Button5..","..self.Button6..","..self.Button7..","..self.Button8..","..self.Button9
  10.     end
  11.  
  12.     function m:AddButton(b)
  13.         if self.Button1 == "" then
  14.             self.Button1 = b
  15.         elseif self.Button2 == "" then
  16.             self.Button2 = b
  17.         elseif self.Button3 == "" then
  18.             self.Button3 = b
  19.         elseif self.Button4 == "" then
  20.             self.Button4 = b
  21.         elseif self.Button5 == "" then
  22.             self.Button5 = b
  23.         elseif self.Button6 == "" then
  24.             self.Button6 = b
  25.         elseif self.Button7 == "" then
  26.             self.Button7 = b
  27.         elseif self.Button8 == "" then
  28.             self.Button8 = b
  29.         elseif self.Button9 == "" then
  30.             self.Button9 = b
  31.         end
  32.     end
  33.  
  34.     function m:ClearButtons()
  35.         self.Button1 = ""
  36.         self.Button2 = ""
  37.         self.Button3 = ""
  38.         self.Button4 = ""
  39.         self.Button5 = ""
  40.         self.Button6 = ""
  41.         self.Button7 = ""
  42.         self.Button8 = ""
  43.         self.Button9 = ""
  44.     end
  45.  
  46.     return m
  47. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top