Advertisement
Guest User

Untitled

a guest
Feb 7th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.61 KB | None | 0 0
  1. OC = {}
  2. OC.SidePanelList = {}
  3. OC.SidePanelColor = {}
  4. OC.TopPanelColor = {}
  5. OC.MainPageColor = {}
  6. OC.SurveyQuestions = {}
  7. OC.BugQuestions = {}
  8. OC.SuggestionQuestions = {}
  9. OC.ReviewQuestions = {}
  10. OC.ApplicationQuestions = {}
  11. function AddSurveyQuestion(question, type, helptext, table )
  12. OC.SurveyQuestions[#OC.SurveyQuestions+1] = {Q = question, T = type, H = helptext, O = table}
  13. end
  14. function AddBugQuestion(question, type, helptext, table)
  15. OC.BugQuestions[#OC.BugQuestions+1] = {Q = question, T = type, H = helptext, O = table}
  16. end
  17. function AddReviewQuestion(question)
  18. OC.ReviewQuestions[#OC.ReviewQuestions+1] = {Q = question}
  19. end
  20. function AddSuggestionQuestion(question, type, helptext, table)
  21. OC.SuggestionQuestions[#OC.SuggestionQuestions+1] = {Q = question, T = type, H = helptext, O = table}
  22. end
  23. function AddApplicationQuestion(question, type, helptext, table)
  24. OC.ApplicationQuestions[#OC.ApplicationQuestions+1] = {Q = question, T = type, H = helptext, O = table}
  25. end
  26. --------------------------------------------------------------------------------------------------------------
  27. -------Touching anything above this line will most likely mess something up. Please do not touch above.-------
  28. --------------------------------------------------------------------------------------------------------------
  29. ////////////////////////////////////////////////////////////////
  30. ////////------------------------------------------------////////
  31. ////////----------DO NOT TOUCH ANYTHING ABOVE!----------////////
  32. ////////------------------------------------------------////////
  33. ////////////////////////////////////////////////////////////////
  34. --------------------------------------------------------------------------------------------------------------
  35. -------Touching anything above this line will most likely mess something up. Please do not touch above.-------
  36. --------------------------------------------------------------------------------------------------------------
  37.  
  38. OC.EnableChatCommand = true --True enables the ability to type something in chat to open the menu. False disables that ability.
  39. OC.PlayerChatCommand = "!feedback" --If the above is true, this will be the chat command to open the menu.
  40. OC.EnableFKey = false --True enables the possibilty to use an Fkey to open the menu. False disables that ability.
  41. OC.FKeyCommand = KEY_F10 --If the above is true, this will be the FKey that you will press to open the menu. Please use this as a guide: http://wiki.garrysmod.com/page/Enums/KEY
  42. OC.DisplayOpenInChat = true --True will show a message in chat to everyone saying that the menu was opened.
  43.  
  44. OC.Debug = false --This activates the developer mode. In the developer mode, almost every action will display things in console. I suggest to keep this off (false).
  45.  
  46. OC.OneSurveyEach = true --True makes it so that a player can only submit one survey. False makes it have no limit.
  47. OC.OneReviewEach = true --True makes it so that a player can only submit one review. False makes it have no limit.
  48. OC.OneApplicationEach = true --True makes it so that a player can only submit one application. False makes it have no limit.
  49.  
  50. OC.RewardForSurvey = false --Allow people to get rewards for submitting a Survey.
  51. OC.RewardSurveyType = "darkrp" --Options are darkrp, pointshop, and pointshop2. Keep lowercase.
  52. OC.RewardSurveyAmt = 0 --The amount of reward a player can get from doing a Survey.
  53.  
  54. OC.RewardForReview = false --Allow people to get rewards for submitting a Review.
  55. OC.RewardReviewType = "darkrp" --Options are darkrp, pointshop, and pointshop2. Keep lowercase.
  56. OC.RewardReviewAmt = 0 --The amount of reward a player can get from doing a Review.
  57.  
  58. OC.SuggestionStatus = { --These are the options for different stages of the suggstions.
  59. "Voting",
  60. "Implemented",
  61. "Denied",
  62. "Implementing"
  63. }
  64.  
  65. OC.ApplicationStatus = { --Options for the applications. If you would like it to auto add the people, contact me. I will give you the code.
  66. "Voting",
  67. "Denied",
  68. "Accepted"
  69. }
  70.  
  71. OC.BugStatus = { --These are the options for different stages of the bug.
  72. "Investigating",
  73. "Fixed",
  74. "Inconclusive",
  75. "Uh, Oh"
  76. }
  77.  
  78. --WHEN ADDING IN RANKS, MAKE SURE THEY ARE ALL LOWERCASE. EVEN IF YOU HAVE THEN CAPITALIZED--
  79.  
  80. OC.OrionAdmin = { --These are the ranks that can change the stages/status of most things as well as can see the admin only sidebar tabs.
  81. "superadmin"
  82. }
  83.  
  84. OC.OrionSuperAdmin = { --These are the ranks that can change the stages/status of an application.
  85. "superadmin"
  86. }
  87.  
  88. --Most of the colors are self explanatory. If you want greater detail, alter the color and see what is affected.
  89. OC.SidePanelColor.DarkLine = Color(46, 53, 71, 255)
  90. OC.SidePanelColor.LightLine = Color(61, 72, 90, 255)
  91. OC.SidePanelColor.SleectedLine = Color(39, 164, 245, 255)
  92. OC.SidePanelColor.SelectedButton = Color(47, 57, 72, 255)
  93. OC.SidePanelColor.CategoryText = Color(93, 106, 127, 255)
  94. OC.SidePanelColor.ButtonText = Color(161, 171, 189, 255)
  95. OC.SidePanelColor.SelectedButtonText = Color(231, 231, 231, 231)
  96. OC.SidePanelColor.Background = Color(53, 64, 81, 255)
  97.  
  98. OC.TopPanelColor.CloseButton = Color(216, 56, 68, 255)
  99. OC.TopPanelColor.Background = Color(255, 255, 255, 255)
  100. OC.TopPanelColor.LineSeperator = Color(238, 239, 243, 255)
  101.  
  102. OC.MainPageColor.BoxColor = Color(236, 242, 246, 255)
  103. OC.MainPageColor.BoxOutlineColor = Color(216, 223, 229, 255)
  104. OC.MainPageColor.PrimaryColor = Color(66, 187, 192, 255)
  105. OC.MainPageColor.StatusBar = Color(217, 228, 234, 255)
  106. OC.MainPageColor.SecondaryColor = Color(216, 223, 229, 255)
  107. OC.MainPageColor.BottomButton = Color(112, 125, 147, 255)
  108. OC.MainPageColor.BottomButtonText = Color(241, 241, 241, 255)
  109. OC.MainPageColor.QuestionTextColor = Color(110, 116, 123, 255)
  110. OC.MainPageColor.AnswerTextColor = Color(169, 177, 188, 255)
  111. OC.MainPageColor.NameColor = Color(62, 73, 89, 255)
  112. OC.MainPageColor.OtherColor = Color(160, 167, 173, 255)
  113.  
  114. /*****************************************************************************************************************************************************************
  115. ** Now here is the fun part..... The suggestion questions cannot be altered as it will mess up the viewing. That is the same with bug questions except for one.**
  116. ** **
  117. ** --For Survey and Application Questions-- *********************************************
  118. ** AddSurveyQuestion("This is where the question goes!", "This is where you can pick from 4 different types. You can choose from: MultipleChoice, ChoiceOption, SingleLineTextBox, or MultiLineTextBox", **
  119. ** "Now we have our Hint. It all0ws players to have an idea of what to put in the place.", { *********************************************
  120. ** "To finish it off, we end with a table. This is only necessary when you are doing multiple choice and choice option. More Details Below!"}) **
  121. ** **
  122. ** --For Bug Question-- **
  123. ** As of right now, there is only one bug question that is editable. It MUST stay as a ChoiceOption. You can edit the things in the table. **
  124. ** **
  125. ** --For Review Questions-- **
  126. ** For the review questions, you are only able to enter questions. The player will be able to rate the quality of your question out of 5 stars. **
  127. *****************************************************************************************************************************************************************/
  128.  
  129. AddSurveyQuestion("How old are you?", "ChoiceOption", "Pick an option!", {
  130. "10",
  131. "11",
  132. "12",
  133. "13",
  134. "14",
  135. "15",
  136. "16",
  137. "17",
  138. "18"
  139. } )
  140. AddSurveyQuestion("Do you like the server?", "MultipleChoice", "Something Here!", {
  141. "I LOVE IT!",
  142. "I enjoy it.",
  143. "I dislike it.",
  144. "I HATE IT!"
  145. } )AddSurveyQuestion("Do you like the server?", "MultipleChoice", "Something Here!", {
  146. "I LOVE IT!",
  147. "I enjoy it.",
  148. "I dislike it.",
  149. "I HATE IT!"
  150. } )
  151. AddSurveyQuestion("Who is your favorite player?", "SingleLineTextBox", "Name a player...", {
  152. ""--For Text Boxes leave them like this!
  153. } )
  154. AddSurveyQuestion("What was your favorite thing that happened on the server?", "MultiLineTextBox", "Write a story...", {
  155. ""--For Text Boxes leave them like this!
  156. } )
  157. AddBugQuestion("What is your issue?", "ChoiceOption", "Select an Issue", {
  158. "Weapons",
  159. "NPC",
  160. "Menu",
  161. "Other"
  162. })
  163. AddApplicationQuestion("How old are you?", "ChoiceOption", "Pick an option!", {
  164. "10",
  165. "11",
  166. "12",
  167. "13",
  168. "14",
  169. "15",
  170. "16",
  171. "17",
  172. "18"
  173. } )
  174. AddApplicationQuestion("Are you allowed to randomly kill someone(RDM)?", "MultipleChoice", "Something Here!", {
  175. "Yes",
  176. "No",
  177. "Of Course",
  178. "Giant Red Dildo"
  179. } )
  180. AddApplicationQuestion("How long have you played on the server?", "MultipleChoice", "Something Here!", {
  181. "First Day",
  182. "2-5 Days",
  183. "6-10 Days",
  184. "11+ Days"
  185. } )
  186. AddSurveyQuestion("Who is your favorite admin?", "SingleLineTextBox", "Name an admin...", {
  187. ""--For Text Boxes leave them like this!
  188. } )
  189. AddSurveyQuestion("Why do you want to be staff?", "MultiLineTextBox", "Explain yourself...", {
  190. ""--For Text Boxes leave them like this!
  191. } )
  192. AddReviewQuestion("Admin Service")
  193. AddReviewQuestion("Server Performance")
  194. AddReviewQuestion("Addon Selection")
  195. AddReviewQuestion("Job Selection")
  196. AddReviewQuestion("Player Base")
  197. AddReviewQuestion("Overall Expierience")
  198.  
  199. /*****************************************************************************************************************************************************************
  200. ** Now we get to the categories. This applies to everything that appears in the side menu. You can disable, enable, and make them admin only. **
  201. ** **
  202. ** --BE VERY CAREFUL. ANYTHING YOU MESS WITH HERE MAY CAUSE ISSUES-- **
  203. ** **
  204. ** OC.SidePanelList.Feedback will be any form. To get rid of one showing up just put 2 dashes in front of it. To make it admin only, put admin to true. **
  205. ** **
  206. ** OC.SidePanelList.View will be any viewing. To get rid of one showing up, just put 2 dashes in front of it. To make it admin only, put admin to true. **
  207. *****************************************************************************************************************************************************************/
  208.  
  209. OC.SidePanelList.Feedback = {
  210. BUGS = {Name = "BUG FORM", Func = function() OpenBugForm() end, Admin = false},
  211. REVIEW = {Name = "REVIEW FORM", Func = function() OrionFormReviewStart() end, Admin = false},
  212. SUGGESTIONS = {Name = "SUGGESTION FORM", Func = function() OpenSuggestionForm() end, Admin = false},
  213. SURVEY = {Name = "SURVEY FORM", Func = function() OrionFormSurveyStart() end, Admin = false},
  214. APPLICATION = {Name = "APPLICATION FORM", Func = function() OrionFormApplicationStart() end, Admin = false},
  215. }
  216. OC.SidePanelList.View = {
  217. BUGS = {Name = "BUGS", Func = function() OrionOpenBugStart() end},
  218. STATISTICS = {Name = "STATISTICS", Func = function() OrionOpenStatiticsStart() end, Admin = false},
  219. REVIEW = {Name = "REVIEWS", Func = function() OrionOpenReviewStart() end, Admin = false},
  220. SUGGESTIONS = {Name = "SUGGESTIONS", Func = function() OrionOpenSuggestionStart() end, Admin = false},
  221. SURVEY = {Name = "SURVEYS", Func = function() OrionOpenSurveyStart() end, Admin = false},
  222. APPLICATION = {Name = "APPLICATIONS", Func = function() OrionOpenApplicationStart() end, Admin = true}
  223. }
  224. --------------------------------------------------------------------------------------------------------------
  225. -------Touching anything below this line will most likely mess something up. Please do not touch below.-------
  226. --------------------------------------------------------------------------------------------------------------
  227. ////////////////////////////////////////////////////////////////
  228. ////////------------------------------------------------////////
  229. ////////----------DO NOT TOUCH ANYTHING BELOW!----------////////
  230. ////////------------------------------------------------////////
  231. ////////////////////////////////////////////////////////////////
  232. --------------------------------------------------------------------------------------------------------------
  233. -------Touching anything below this line will most likely mess something up. Please do not touch below.-------
  234. --------------------------------------------------------------------------------------------------------------
  235. OC.SidePanelList.Admin = {
  236. --STATISTICS = {Name = "STATISTICS"}
  237. }
  238.  
  239. AddSuggestionQuestion("What is the title of suggestion?", "SingleLineTextBox", "Title...", {
  240. ""--For Text Boxes leave them like this!
  241. } )
  242. AddSuggestionQuestion("What is the type of suggestion?", "ChoiceOption", "Select a Type", {
  243. "Weapon",
  244. "Addon",
  245. "SWEP",
  246. "Vehicle",
  247. "Tool",
  248. "Map",
  249. "Other"
  250. } )
  251. AddSuggestionQuestion("Give a brief description of your suggestion.", "MultiLineTextBox", "Brief Description...", {
  252. ""--For Text Boxes leave them like this!
  253. } )
  254.  
  255. AddBugQuestion("When did this issue occur?", "SingleLineTextBox", "Time when this happened", {
  256. ""--For Text Boxes leave them like this!
  257. } )
  258. AddBugQuestion("Short Description of the issue.", "MultiLineTextBox", "What happened...", {
  259. ""--For Text Boxes leave them like this!
  260. } )
  261. AddBugQuestion("What caused this issue?", "MultiLineTextBox", "What caused it...", {
  262. ""--For Text Boxes leave them like this!
  263. } )
  264. AddBugQuestion("If you have one, please include the lua error.", "MultiLineTextBox", "Lua Error...", {
  265. ""--For Text Boxes leave them like this!
  266. } )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement