Advertisement
Guest User

mudletsthing

a guest
Dec 16th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.03 KB | None | 0 0
  1. --[[
  2. This is where all of the configuration options can be set.
  3. Anything I've put in this script object can be changed, but please do pay attention to what you're doing.
  4. If you change one of the values to something it shouldn't be, you could break it.
  5. ]]
  6.  
  7. --This is where you tell it to use tabbed chat.
  8. demonnic.chat.use = true
  9.  
  10. --[[
  11. This is where you put what container to put the tabbed chat stuff into. Make it
  12. equal to the actual container object you want it in, or false for none. Defaults to false
  13. Which is to say if you want to put the tabbed chat stuff into a container made using
  14. uiRight = Geyser.Container:new()
  15.  
  16. you would put
  17.  
  18. demonnic.chat.useContainer = uiRight
  19.  
  20. and if you don't want it in a container you would put
  21.  
  22. demonnic.chat.useContainer = false
  23. ]]
  24.  
  25. demonnic.chat.useContainer = false
  26.  
  27. --[[
  28. The timestamp option is set here.
  29. Set to false if you do not want any timestamps displayed for chat.
  30. If you do want it displayed, set to the string for the format you wish.
  31. see http://wiki.mudlet.org/w/Manual:Lua_Functions#getTime for information
  32. how to format the string
  33. ]]
  34. demonnic.chat.config.timestamp = "HH:mm:ss"
  35.  
  36. --[[ Should we use our own colors for the timestamp?
  37. Set to true if you want to specify foreground and background colors
  38. for the timestamp.
  39. Set to false if you want the timestamps background and foreground
  40. colors to match that of the mud output.
  41. ]]
  42. demonnic.chat.config.timestampCustomColor = false
  43. --[[
  44. and what foreground color? You can either use one of the 'named' colors
  45. (see http://wiki.mudlet.org/images/c/c3/ShowColors.png for available colors)
  46. demonnic.chat.config.timestampFG = "slate_grey"
  47.  
  48. Or you can use a table of R,G,B values.
  49. demonnic.chat.config.timestampFG = {
  50. 255,
  51. 0,
  52. 0,
  53. }
  54. then the foreground for the timestamp would be 255 read, 100 green, and 0 blue
  55. ]]
  56. demonnic.chat.config.timestampFG = "red"
  57.  
  58. --and background? Same rules as for the foreground above
  59. demonnic.chat.config.timestampBG = "blue"
  60.  
  61. --[[
  62. This is where you say what corner of the screen you want the tabbed chat on
  63. Valid settings are "topright", "topleft", "bottomright", "bottomleft"
  64. ]]--
  65. demonnic.chat.config.location = "topright"
  66.  
  67. --[[
  68. This is a table of channels you would like.
  69. AKA the place you tell the script what tabs you want.
  70. Each entry must be a string. The defaults should be a pretty effective guide.
  71. ]]
  72.  
  73. demonnic.chat.config.channels = {
  74. "All",
  75. "Chatnet",
  76. "Corpnet",
  77. "Pager",
  78. "Party",
  79. "CM",
  80. }
  81.  
  82.  
  83. --Set this to the name of the channel you want to have everything sent to.
  84. --Per the default, this would be the "All" channel. If you have a different name for it:
  85. --
  86. --demonnic.chat.config.Alltab = "Bucket"
  87. --
  88. --And if you don't want it turned on at all:
  89. --
  90. --demonnic.chat.config.Alltab = false
  91.  
  92. demonnic.chat.config.Alltab = "All"
  93.  
  94. --Set this to the name of the channel you want to display your map. Set to "" if you
  95. --don't want to display the map in your YATCO tabs
  96. demonnic.chat.config.Maptab = ""
  97.  
  98.  
  99. ---------------------------------------------------------------------------------
  100. -- --
  101. --The infamous blinking stuff!!! --
  102. -- --
  103. ---------------------------------------------------------------------------------
  104.  
  105. --[[
  106. Do you want tabs to blink when you get new messages, until you click on the tab?
  107. True if yes, false if no.
  108. ]]
  109. demonnic.chat.config.blink = true
  110.  
  111. --How long (in seconds) between blinks? For example, 1 would mean a 1 second pause in between blinks.
  112. demonnic.chat.config.blinkTime = 3
  113.  
  114. --Blink if the bucket tab ("All" by default, but configured above) is in focus?
  115. demonnic.chat.config.blinkFromAll = true
  116.  
  117.  
  118.  
  119.  
  120. --Font size for the chat messages
  121.  
  122. demonnic.chat.config.fontSize = 11
  123.  
  124. --[[
  125. Should we preserve the formatting of the text.
  126. Or should we set the background of it to match the window color?
  127. Set this to false if you want the background for all chat to match the background of the window.
  128. Useful if you change the background from black, and don't like the way the pasted chat makes blocks in it
  129. ]]
  130.  
  131. demonnic.chat.config.preserveBackground = false
  132.  
  133. --[[
  134. Gag the chat lines in the main window?
  135. defaults to false, set to true if you want to gag.
  136. ]]
  137.  
  138. demonnic.chat.config.gag = true
  139.  
  140. --[[
  141. Number of lines of chat visible at once.
  142. Will determine how tall the window for the chats is.
  143. ]]
  144.  
  145. demonnic.chat.config.lines = 90
  146.  
  147. --[[
  148. Number of characters to wrap the chatlines at.
  149. This will also determine how wide the chat windows are.
  150. ]]
  151.  
  152. demonnic.chat.config.width = 80
  153.  
  154. --[[
  155. Set the color for the active tab. R,G,B format.
  156. The default here is a brightish green
  157. ]]
  158.  
  159. demonnic.chat.config.activeColors = {
  160. r = 0,
  161. g = 180,
  162. b = 0,
  163. }
  164.  
  165. --[[
  166. Set the color for the inactive tab. R,G,B format.
  167. The default here is a drab grey
  168. ]]
  169.  
  170. demonnic.chat.config.inactiveColors = {
  171. r = 60,
  172. g = 60,
  173. b = 60,
  174. }
  175.  
  176. --[[
  177. Set the color for the chat window itself. R,G,B format.
  178. Defaulted to the black of my twisted hardened soul. Or something.
  179. ]]
  180.  
  181. demonnic.chat.config.windowColors = {
  182. r = 0,
  183. g = 0,
  184. b = 0,
  185. }
  186.  
  187. --[[
  188. Set the color for the text on the active tab. Uses color names.
  189. Set the default to purple. So the tab you're looking at, by default will be purple on bright green.
  190. Did I mention I'm a bit colorblind?
  191. ]]
  192.  
  193. demonnic.chat.config.activeTabText = "purple"
  194.  
  195. --[[
  196. Set the color for the text on the inactive tabs. Uses color names.
  197. Defaulted this to white. So the tabs you're not looking at will be white text on boring grey background.
  198. ]]
  199.  
  200. demonnic.chat.config.inactiveTabText = "white"
  201.  
  202. --[[
  203. have to make sure a currentTab is set...
  204. so we'll use the one for the bucket, or the first one in the channels table
  205. Or, you know... what it's currently set to, if it's already set.
  206. ]]
  207. demonnic.chat.currentTab = demonnic.chat.currentTab or demonnic.chat.config.Alltab or demonnic.chat.config.channels[1]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement