Advertisement
Syndran

Mudlet Layout Script for Avatar

Apr 28th, 2020
780
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 24.34 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE MudletPackage>
  3. <MudletPackage version="1.001">
  4.     <ScriptPackage>
  5.         <ScriptGroup isActive="yes" isFolder="yes">
  6.             <name>Layout</name>
  7.             <packageName></packageName>
  8.             <script>-------------------------------------------------
  9. --          Folder for layout scripts          --
  10. --                                             --
  11. -- Note that you can also use external scripts --
  12. -------------------------------------------------
  13. </script>
  14.             <eventHandlerList />
  15.             <Script isActive="yes" isFolder="no">
  16.                 <name>Avatar Layout</name>
  17.                 <packageName></packageName>
  18.                 <script>-------------------------------------------------
  19. -- Lua Script for Avatar Compatable layout.    --
  20. --                                             --
  21. -- Note that you will need to change any alias --
  22. --       used for runstats and reset           --
  23. -------------------------------------------------
  24.  
  25. -- left hand panel - full height
  26.  
  27. setBorderLeft(380)
  28. left_container = Geyser.Container:new({
  29.   name = "left_container",
  30.   x="0", y=0,                    -- makes the container start 20% of the screen away from the right side
  31.   width = "380", height="100%",      -- filling it up until the end
  32. })
  33.  
  34. --top of left panel, 75% of height for group stats
  35. GroupContainer = Geyser.Container:new({
  36.   name = "GroupContainer",
  37.   x=0, y=0,                
  38.   width = "100%", height="75%",
  39. }, left_container)
  40.  
  41. --header for the group panel
  42. leftPanelHeader = Geyser.Label:new({
  43.  name = "leftPanelHeader",
  44.   x = "1%", y = "0",
  45.   width = "95%", height = "20",
  46.   fgColor = "orange",
  47.   message = [[&lt;center&gt;&lt;b&gt;Group&lt;/b&gt;&lt;/center&gt;]]
  48. }, GroupContainer)
  49. leftPanelHeader:setStyleSheet([[
  50.   border-width: 1px;
  51.   border-style: solid;
  52.   border-color: yellow;
  53.   background-color: black;
  54.   border-radius: 3px;
  55. ]])
  56.  
  57. --populate an autolayout box inside inside the group panel to fill with containers
  58. GroupContainerInner = Geyser.VBox:new({
  59.   name = "GroupContainerInner",
  60.   x="2%", y="25",                    
  61.   width = "96%", height="99%",
  62. }, GroupContainer)            
  63.  
  64. --experimental code to populate a bunch of containers inside the groupy panel and add names and guages
  65. GroupContainer_background = Geyser.Label:new({
  66.  name = "GroupContainer_background",
  67.   x = "1%", y = "0",
  68.   width = "95%%", height = "100%",
  69.   fgColor = "black",
  70.   }, GroupContainer)
  71. lowerWindow("GroupContainer_background")
  72. GroupContainer_background:setStyleSheet([[
  73.   border-width: 1px;
  74.   border-style: solid;
  75.   border-color: yellow;
  76.   background-color: black;
  77.   border-radius: 3px;
  78. ]])
  79.  
  80. GroupieTable = {}
  81. --group is set to max 32 currently. pending better way to handle this
  82. for i=1,32 do
  83.  
  84. GroupieTable[i] = Geyser.Container:new({name="groupy"..tostring(i),height="10",width="90%"},GroupContainerInner)
  85.  
  86. end
  87.  
  88. --bottom container on left for spell effects
  89. left_container_bottom = Geyser.Container:new({
  90.   name = "left_container_bottom",
  91.   x=0, y="75%",                
  92.   width = "100%", height="25%",
  93. }, left_container)
  94.  
  95. --background for this.
  96. left_container_background = Geyser.Label:new({
  97.  name = "left_container_background",
  98.   x = "1%", y = "0",
  99.   width = "95%%", height = "100%",
  100.   fgColor = "black",
  101.   }, left_container_bottom)
  102. lowerWindow("left_container_background")
  103. left_container_background:setStyleSheet([[
  104.   border-width: 1px;
  105.   border-style: solid;
  106.   border-color: yellow;
  107.   background-color: black;
  108.   border-radius: 3px;
  109. ]])
  110.  
  111. --label for header of con
  112. leftlowerPanelHeader = Geyser.Label:new({
  113.  name = "leftlowerPanelHeader",
  114.   x = "1%", y = "0",
  115.   width = "95%", height = "20",
  116.   fgColor = "orange",
  117.   message = [[&lt;center&gt;&lt;b&gt;Affects&lt;/b&gt;&lt;/center&gt;]]
  118. }, left_container_bottom)
  119. leftlowerPanelHeader:setStyleSheet([[
  120.   border-width: 1px;
  121.   border-style: solid;
  122.   border-color: yellow;
  123.   background-color: black;
  124.   border-radius: 3px;
  125. ]])
  126.  
  127. MoveHiddenLabel = Geyser.Label:new({
  128.  name = "MoveHiddenLabel",
  129.   x = "5%", y = "26",
  130.   width = "40%", height = "18",
  131.   fgColor = "white",
  132.   message = [[&lt;left&gt;Move Hidden&lt;/left&gt;]]
  133. }, left_container_bottom)
  134. MoveHiddenLabel:setColor(0,255,0,150)
  135.  
  136. SneakLabel = Geyser.Label:new({
  137.  name = "SneakLabel",
  138.   x = "50%", y = "26",
  139.   width = "40%", height = "18",
  140.   fgColor = "white",
  141.   message = [[&lt;left&gt;Sneak&lt;/left&gt;]]
  142. }, left_container_bottom)
  143. SneakLabel:setColor(0,255,0,150)
  144.  
  145. InvisLabel = Geyser.Label:new({
  146.  name = "InvisLabel",
  147.   x = "5%", y = "48",
  148.   width = "40%", height = "18",
  149.   fgColor = "white",
  150.   message = [[&lt;left&gt;Invis&lt;/left&gt;]]
  151. }, left_container_bottom)
  152. InvisLabel:setColor(0,255,0,150)
  153.  
  154. SancLabel = Geyser.Label:new({
  155.  name = "SancLabel",
  156.   x = "50%", y = "48",
  157.   width = "40%", height = "18",
  158.   fgColor = "white",
  159.   message = [[&lt;left&gt;Sanctuary&lt;/left&gt;]]
  160. }, left_container_bottom)
  161. SancLabel:setColor(0,255,0,150)
  162.  
  163. FrenzyLabel = Geyser.Label:new({
  164.  name = "FrenzyLabel",
  165.   x = "5%", y = "70",
  166.   width = "40%", height = "18",
  167.   fgColor = "white",
  168.   message = [[&lt;left&gt;Frenzy&lt;/left&gt;]]
  169. }, left_container_bottom)
  170. FrenzyLabel:setColor(0,255,0,150)
  171.  
  172. WaterLabel = Geyser.Label:new({
  173.  name = "WaterLabel",
  174.   x = "50%", y = "70",
  175.   width = "40%", height = "18",
  176.   fgColor = "white",
  177.   message = [[&lt;left&gt;WaterBreath&lt;/left&gt;]]
  178. }, left_container_bottom)
  179. WaterLabel:setColor(0,255,0,150)
  180.  
  181. FortLabel = Geyser.Label:new({
  182.  name = "FortLabel",
  183.   x = "5%", y = "92",
  184.   width = "40%", height = "18",
  185.   fgColor = "white",
  186.   message = [[&lt;left&gt;Fortitudes&lt;/left&gt;]]
  187. }, left_container_bottom)
  188. FortLabel:setColor(0,255,0,150)
  189.  
  190. FociLabel = Geyser.Label:new({
  191.  name = "FociLabel",
  192.   x = "50%", y = "92",
  193.   width = "40%", height = "18",
  194.   fgColor = "white",
  195.   message = [[&lt;left&gt;Foci&lt;/left&gt;]]
  196. }, left_container_bottom)
  197. FociLabel:setColor(0,255,0,150)
  198.  
  199. AwenLabel = Geyser.Label:new({
  200.  name = "AwenLabel",
  201.   x = "5%", y = "114",
  202.   width = "40%", height = "18",
  203.   fgColor = "white",
  204.   message = [[&lt;left&gt;Awen&lt;/left&gt;]]
  205. }, left_container_bottom)
  206. AwenLabel:setColor(0,255,0,150)
  207.  
  208. InvincLabel = Geyser.Label:new({
  209.  name = "InvincLabel",
  210.   x = "50%", y = "114",
  211.   width = "40%", height = "18",
  212.   fgColor = "white",
  213.   message = [[&lt;left&gt;Invinc&lt;/left&gt;]]
  214. }, left_container_bottom)
  215. InvincLabel:setColor(0,255,0,150)
  216.  
  217. BarkLabel = Geyser.Label:new({
  218.  name = "BarkLabel",
  219.   x = "5%", y = "136",
  220.   width = "40%", height = "18",
  221.   fgColor = "white",
  222.   message = [[&lt;left&gt;Barkskin&lt;/left&gt;]]
  223. }, left_container_bottom)
  224. BarkLabel:setColor(0,255,0,150)
  225.  
  226. SteelLabel = Geyser.Label:new({
  227.  name = "SteelLabel",
  228.   x = "50%", y = "136",
  229.   width = "40%", height = "18",
  230.   fgColor = "white",
  231.   message = [[&lt;left&gt;Steel Skel&lt;/left&gt;]]
  232. }, left_container_bottom)
  233. SteelLabel:setColor(0,255,0,150)
  234.  
  235. IronLabel = Geyser.Label:new({
  236.  name = "IronLabel",
  237.   x = "5%", y = "158",
  238.   width = "40%", height = "18",
  239.   fgColor = "white",
  240.   message = [[&lt;left&gt;Iron Skin&lt;/left&gt;]]
  241. }, left_container_bottom)
  242. IronLabel:setColor(0,255,0,150)
  243.  
  244. ConcentrateLabel = Geyser.Label:new({
  245.  name = "ConcentrateLabel",
  246.   x = "50%", y = "158",
  247.   width = "40%", height = "18",
  248.   fgColor = "white",
  249.   message = [[&lt;left&gt;Concentrate&lt;/left&gt;]]
  250. }, left_container_bottom)
  251. ConcentrateLabel:setColor(0,255,0,150)
  252. ConcentrateLabel:setClickCallback("c_conc")
  253.  
  254. function c_conc()
  255.   send("c concent")
  256. end
  257.  
  258. Skill1Label = Geyser.Label:new({
  259.  name = "Skill1Label",
  260.   x = "5%", y = "180",
  261.   width = "40%", height = "18",
  262.   fgColor = "white",
  263.   message = [[&lt;left&gt;Concentrate&lt;/left&gt;]]
  264. }, left_container_bottom)
  265. Skill1Label:setColor(0,255,0,150)
  266. Skill1Label:hide()
  267. Skill2Label = Geyser.Label:new({
  268.  name = "Skill2Label",
  269.   x = "50%", y = "180",
  270.   width = "40%", height = "18",
  271.   fgColor = "white",
  272.   message = [[&lt;left&gt;Concentrate&lt;/left&gt;]]
  273. }, left_container_bottom)
  274. Skill2Label:setColor(0,255,0,150)
  275. Skill2Label:hide()
  276. Skill3Label = Geyser.Label:new({
  277.  name = "Skill3Label",
  278.   x = "5%", y = "202",
  279.   width = "40%", height = "18",
  280.   fgColor = "white",
  281.   message = [[&lt;left&gt;Concentrate&lt;/left&gt;]]
  282. }, left_container_bottom)
  283. Skill3Label:setColor(0,255,0,150)
  284. Skill3Label:hide()
  285. Skill4Label = Geyser.Label:new({
  286.  name = "Skill4Label",
  287.   x = "50%", y = "202",
  288.   width = "40%", height = "18",
  289.   fgColor = "white",
  290.   message = [[&lt;left&gt;Concentrate&lt;/left&gt;]]
  291. }, left_container_bottom)
  292. Skill4Label:setColor(0,255,0,150)
  293. Skill4Label:hide()
  294.  
  295.  
  296. --floating mapper
  297. Map_container = Geyser.Container:new({
  298.   name = "Map_container",
  299.   x="-48%", y=0,                    -- makes the container start 520% of the screen away from the right side
  300.   width = "20%", height="25%",      -- filling it up until the end
  301. })
  302. --fill mapper with lbel
  303. myMap = Geyser.Mapper:new({
  304.   name = "myMap",
  305.   x = 0, y = 0,
  306.   width = "100%",
  307.   height = "100%",
  308. },Map_container)
  309.  
  310.  
  311.  
  312. -- right hand panel
  313. setBorderRight(500)
  314. -- top border
  315. right_container = Geyser.Container:new({
  316.   name = "right_container",
  317.   x="-26%", y=0,                    -- makes the container start 20% of the screen away from the right side
  318.   width = "26%", height="100%",      -- filling it up until the end
  319. })
  320.  
  321. RightOutline = Geyser.Label:new({
  322.   name = "LeftBorder",
  323.   x = "0", y = "0",
  324.   width = "100%", height = "100%",
  325.   fgColor = "black",
  326.   message = [[&lt;center&gt;&lt;/center&gt;]]
  327. }, right_container) -- this is where we tell it what container to go into
  328. lowerWindow("RightOutline")
  329. RightOutline:setStyleSheet([[
  330.   border-width: 1px;
  331.   border-style: solid;
  332.   border-color: yellow;
  333.   background-color: black;
  334.   border-radius: 3px;
  335. ]])
  336.  
  337. ChannelLabel = Geyser.Label:new({
  338.   name = "ChannelLabel",
  339.   x = "0", y = "0",
  340.   width = "100%", height = "2%",
  341.   fgColor = "orange",
  342.   message = [[&lt;center&gt;&lt;b&gt;Public Channels&lt;/b&gt;&lt;/center&gt;]]
  343. }, right_container) -- this is where we tell it what container to go into
  344. ChannelLabel:setStyleSheet([[
  345.   border-width: 1px;
  346.   border-style: solid;
  347.   border-color: yellow;
  348.   background-color: black;
  349.   border-radius: 3px;
  350. ]])
  351.  
  352. PublicChannels = Geyser.MiniConsole:new({
  353.   name="Channels",
  354.   x="1%", y="2%",
  355.   autoWrap = true,
  356.   color = "black",
  357.   scrollBar = true,
  358.   fontSize = 8,
  359.   width="98%", height="32%",
  360. }, right_container)
  361.  
  362. GroupLabel = Geyser.Label:new({
  363.   name = "GroupLabel",
  364.   x = "0", y = "34%",
  365.   width = "100%", height = "2%",
  366.   fgColor = "orange",
  367.   message = [[&lt;center&gt;&lt;b&gt;Group Chat&lt;/b&gt;&lt;/center&gt;]]
  368. }, right_container) -- this is where we tell it what container to go into
  369. GroupLabel:setStyleSheet([[
  370.   border-width: 1px;
  371.   border-style: solid;
  372.   border-color: yellow;
  373.   background-color: black;
  374.   border-radius: 3px;
  375. ]])
  376.  
  377. GroupChat = Geyser.MiniConsole:new({
  378.   name="GroupChat",
  379.   x="1%", y="36%",
  380.   autoWrap = true,
  381.   color = "black",
  382.   scrollBar = true,
  383.   fontSize = 8,
  384.   width="98%", height="32%",
  385. }, right_container)
  386.  
  387. BuddyLabel = Geyser.Label:new({
  388.   name = "BuddyLabel",
  389.   x = "0", y = "68%",
  390.   width = "100%", height = "2%",
  391.   fgColor = "orange",
  392.   message = [[&lt;center&gt;&lt;b&gt;Buddy Chat&lt;/b&gt;&lt;/center&gt;]]
  393. }, right_container) -- this is where we tell it what container to go into
  394. BuddyLabel:setStyleSheet([[
  395.   border-width: 1px;
  396.   border-style: solid;
  397.   border-color: yellow;
  398.   background-color: black;
  399.   border-radius: 3px;
  400. ]])
  401.  
  402. BuddyChat = Geyser.MiniConsole:new({
  403.   name="BuddyChat",
  404.   x="1%", y="70%",
  405.   autoWrap = true,
  406.   color = "black",
  407.   scrollBar = true,
  408.   fontSize = 8,
  409.   width="98%", height="30%",
  410. }, right_container)
  411.  
  412. --BOTTOM STAT PANEL
  413. setBorderBottom(140)
  414.  
  415. Bottom_container = Geyser.Container:new({
  416.   name = "Bottom_container",
  417.   x="365" , y="850",                    -- makes the container start where left panel ends
  418.   width = "57.5%", height="110",      -- filling it up until the end
  419. })
  420.  
  421. FillLabel = Geyser.Label:new({
  422.   name = "FillLabel",
  423.   x = "0", y = "0",
  424.   width = "100%", height = "95%",
  425.   fgColor = "black",
  426.   message = [[&lt;center&gt;&lt;/center&gt;]]
  427. }, Bottom_container) -- this is where we tell it what container to go into
  428. FillLabel:setStyleSheet([[
  429.   border-width: 1px;
  430.   border-style: solid;
  431.   border-color: yellow;
  432.   background-color: black;
  433.   border-radius: 3px;
  434. ]])
  435.  
  436.  
  437.  
  438.  
  439. CharPanel = Geyser.Container:new({
  440.   name="CharPanel",
  441.   x="0", y="0",
  442.   width="100%", height="50",
  443. }, Bottom_container)
  444.  
  445. CharBackGround = Geyser.Label:new({
  446.   name = "CharBackGround",
  447.   x = "0", y = "0",
  448.   width = "100%", height = "100%",
  449.   fgColor = "black",
  450.   message = [[&lt;center&gt;&lt;/center&gt;]]
  451. }, CharPanel) -- this is where we tell it what container to go into
  452. lowerWindow("CharBackGround")
  453. lowerWindow("FillLabel")
  454. CharBackGround:setStyleSheet([[
  455.   border-width: 1px;
  456.   border-style: solid;
  457.   border-color: yellow;
  458.   background-color: black;
  459.   border-radius: 3px;
  460. ]])
  461. CharNameLabel = Geyser.Label:new({
  462.   name = "CharNameLabel",
  463.   x = "0", y = "0",
  464.   width = "200", height = "50",
  465.   fgColor = "black",
  466.   message = [[&lt;center&gt;char name&lt;/center&gt;]]
  467. }, CharPanel)
  468. CharNameLabel:setStyleSheet([[
  469.   border-width: 1px;
  470.   border-style: solid;
  471.   border-color: yellow;
  472.   background-color: DarkGoldenrod;
  473.   border-radius: 3px;
  474. ]])
  475.  
  476. CharNameLabel:setFontSize(18)
  477.  
  478. CharInfoLabel = Geyser.Label:new({
  479.   name = "CharInfoLabel",
  480.   x = "200", y = "0",
  481.   width = "150", height = "25",
  482.   fgColor = "black",
  483.   message = [[&lt;center&gt;Char info&lt;/center&gt;]]
  484. }, CharPanel)
  485.  
  486. CharInfoLabel:setStyleSheet([[
  487.   border-width: 1px;
  488.   border-style: solid;
  489.   border-color: yellow;
  490.   background-color: DarkGoldenrod;
  491.   border-radius: 3px;
  492. ]])
  493. CharInfoLabel:setFontSize(10)
  494.  
  495. CharLevelLabel = Geyser.Label:new({
  496.   name = "CharLevelLabel",
  497.   x = "200", y = "25",
  498.   width = "150", height = "25",
  499.   fgColor = "black",
  500.   message = [[&lt;center&gt;Char levels&lt;/center&gt;]]
  501. }, CharPanel)
  502.  
  503. CharLevelLabel:setStyleSheet([[
  504.   border-width: 1px;
  505.   border-style: solid;
  506.   border-color: yellow;
  507.   background-color: DarkGoldenrod;
  508.   border-radius: 3px;
  509. ]])
  510. CharLevelLabel:setFontSize(10)
  511.  
  512. CharHitDamLabel = Geyser.Label:new({
  513.   name = "CharHitDamLabel",
  514.   x = "350", y = "0",
  515.   width = "170", height = "25",
  516.   fgColor = "black",
  517.   message = [[&lt;center&gt;Hit/Dam&lt;/center&gt;]]
  518. }, CharPanel)
  519.  
  520. CharHitDamLabel:setStyleSheet([[
  521.   border-width: 1px;
  522.   border-style: solid;
  523.   border-color: yellow;
  524.   background-color: DarkGoldenrod;
  525.   border-radius: 3px;
  526. ]])
  527. CharHitDamLabel:setFontSize(11)
  528.  
  529. CharACLabel = Geyser.Label:new({
  530.   name = "CharACLabel",
  531.   x = "350", y = "25",
  532.   width = "170", height = "25",
  533.   fgColor = "black",
  534.   message = [[&lt;center&gt;Armor Class&lt;/center&gt;]]
  535. }, CharPanel)
  536.  
  537. CharACLabel:setStyleSheet([[
  538.   border-width: 1px;
  539.   border-style: solid;
  540.   border-color: yellow;
  541.   background-color: DarkGoldenrod;
  542.   border-radius: 3px;
  543. ]])
  544. CharACLabel:setFontSize(11)
  545.  
  546. RunXPLabel = Geyser.Label:new({
  547.   name = "RunXPLabel",
  548.   x = "520", y = "0",
  549.   width = "100", height = "25",
  550.   fgColor = "white",
  551.   message = [[&lt;center&gt;Run XP&lt;/center&gt;]]
  552. }, CharPanel)
  553. RunXPLabel:setStyleSheet([[
  554.   border-width: 1px;
  555.   border-style: solid;
  556.   border-color: yellow;
  557.   background-color: MidnightBlue;
  558.   border-radius: 3px;
  559. ]])
  560. RunXPLabel:setFontSize(10)
  561.  
  562.  
  563. RunKillsLabel = Geyser.Label:new({
  564.   name = "RunKillsLabel",
  565.   x = "520", y = "25",
  566.   width = "100", height = "25",
  567.   fgColor = "white",
  568.   message = [[&lt;center&gt;Run Kills&lt;/center&gt;]]
  569. }, CharPanel)
  570.  
  571. RunKillsLabel:setStyleSheet([[
  572.   border-width: 1px;
  573.   border-style: solid;
  574.   border-color: yellow;
  575.   background-color: MidnightBlue;
  576.   border-radius: 3px;
  577. ]])
  578. RunKillsLabel:setFontSize(10)
  579.  
  580. RunLevelsLabel = Geyser.Label:new({
  581.   name = "RunLevelsLabel",
  582.   x = "620", y = "0",
  583.   width = "140", height = "25",
  584.   fgColor = "white",
  585.   message = [[&lt;center&gt;Run levels&lt;/center&gt;]]
  586. }, CharPanel)
  587.  
  588. RunLevelsLabel:setStyleSheet([[
  589.   border-width: 1px;
  590.   border-style: solid;
  591.   border-color: yellow;
  592.   background-color: MidnightBlue;
  593.   border-radius: 3px;
  594. ]])
  595. RunLevelsLabel:setFontSize(10)
  596.  
  597. RunStatsLabel = Geyser.Label:new({
  598.   name = "RunStatsLabel",
  599.   x = "620", y = "25",
  600.   width = "140", height = "25",
  601.   fgColor = "white",
  602.   message = [[&lt;center&gt;Run Stat&lt;/center&gt;]]
  603. }, CharPanel)
  604.  
  605. RunStatsLabel:setStyleSheet([[
  606.   border-width: 1px;
  607.   border-style: solid;
  608.   border-color: yellow;
  609.   background-color: MidnightBlue;
  610.   border-radius: 3px;
  611. ]])
  612. RunStatsLabel:setFontSize(10)
  613.  
  614. RunReportLabel = Geyser.Label:new({  
  615. name = "RunReportLabel",
  616.   x = "760", y = "0",
  617.   width = "50", height = "50",
  618.   fgColor = "white",
  619.   message = [[&lt;center&gt;Report&lt;/center&gt;]]
  620. }, CharPanel)
  621.  
  622. RunReportLabel:setStyleSheet([[
  623.   border-width: 1px;
  624.   border-style: solid;
  625.   border-color: yellow;
  626.   background-color: MidnightBlue;
  627.   border-radius: 3px;
  628.   text-orientation: upright;
  629. ]])
  630. RunReportLabel:setClickCallback("ReportRun")
  631.  
  632. function ReportRun()
  633. expandAlias("runrep")
  634. end
  635.  
  636. RunResetLabel = Geyser.Label:new({  
  637. name = "RunResetLabel",
  638.   x = "810", y = "0",
  639.   width = "50", height = "50",
  640.   fgColor = "white",
  641.   message = [[&lt;center&gt;Reset&lt;/center&gt;]]
  642. }, CharPanel)
  643.  
  644. RunResetLabel:setStyleSheet([[
  645.   border-width: 1px;
  646.   border-style: solid;
  647.   border-color: yellow;
  648.   background-color: MidnightBlue;
  649.   border-radius: 3px;
  650.   text-orientation: upright;
  651. ]])
  652. RunResetLabel:setClickCallback("ResetRun")
  653.  
  654. function ResetRun()
  655. expandAlias("runreset")
  656. end
  657.  
  658. AutoKill = false
  659. AutoKillLabel = Geyser.Label:new({
  660.   name = "AutoKillLabel",
  661.   x = "860", y = "0",
  662.   width = "100", height = "25",
  663.   fgColor = "black",
  664.   message = [[&lt;center&gt;AutoKill&lt;/center&gt;]]
  665. }, CharPanel)
  666. AutoKillLabel:setColor(255,255,0,150)
  667. AutoKillLabel:setFontSize(10)
  668. AutoKillLabel:setClickCallback("ToggleKill")
  669.  
  670.  
  671. function ToggleKill()
  672.  AutoKill = not AutoKill
  673.  if AutoKill then
  674.  AutoKillLabel:setStyleSheet([[
  675.   border-width: 1px;
  676.   border-style: solid;
  677.   border-color: yellow;
  678.   background-color: rgba(255, 0, 0, 0.5);
  679.   border-radius: 3px;
  680. ]])
  681. AutoKillLabel:echo("&lt;center&gt;KILLING!!&lt;/center&gt;")
  682. else
  683. AutoKillLabel:setStyleSheet([[
  684.   border-width: 1px;
  685.   border-style: solid;
  686.   border-color: green;
  687.   background-color: green;
  688.   border-radius: 3px;
  689. ]])
  690. AutoKillLabel:echo("&lt;center&gt;Autokill&lt;/center&gt;")
  691. end
  692. end
  693.  
  694. AutoBash = false
  695. AutoBashLabel = Geyser.Label:new({
  696.   name = "AutoBashLabel",
  697.   x = "860", y = "25",
  698.   width = "100", height = "25",
  699.   fgColor = "black",
  700.   message = [[&lt;center&gt;Auto Bash&lt;/center&gt;]]
  701. }, CharPanel)
  702. AutoBashLabel:setColor(255,255,0,150)
  703. AutoBashLabel:setFontSize(10)
  704. AutoBashLabel:setClickCallback("ToggleBash")
  705.  
  706. function ToggleBash()
  707.  AutoBash = not AutoBash
  708.  if AutoBash then
  709.  AutoBashLabel:setStyleSheet([[
  710.   border-width: 1px;
  711.   border-style: solid;
  712.   border-color: yellow;
  713.   background-color: rgba(255, 0, 0, 0.5);
  714.   border-radius: 3px;
  715. ]])
  716. AutoBashLabel:echo("&lt;center&gt;BASHING!!&lt;/center&gt;")
  717. else
  718. AutoBashLabel:setStyleSheet([[
  719.   border-width: 1px;
  720.   border-style: solid;
  721.   border-color: green;
  722.   background-color: green;
  723.   border-radius: 3px;
  724. ]])
  725. AutoBashLabel:echo("&lt;center&gt;Auto Bash&lt;/center&gt;")
  726. end
  727. end
  728.  
  729. KillStyle = "kill"
  730. KillstyleLabel = Geyser.Label:new({
  731.   name = "KillstyleLabel",
  732.   x = "960", y = "0",
  733.   width = "95", height = "25",
  734.   fgColor = "black",
  735.   message = [[&lt;center&gt;Killing&lt;/center&gt;]]
  736. }, CharPanel)
  737. KillstyleLabel:setStyleSheet([[
  738.   border-width: 1px;
  739.   border-style: solid;
  740.   border-color: yellow;
  741.   background-color: rgba(255, 0, 0, 0.5);
  742.   border-radius: 3px;
  743. ]])
  744. KillstyleLabel:setFontSize(10)
  745. KillstyleLabel:setClickCallback("ToggleStyle")
  746.  
  747. function ToggleStyle()
  748.  
  749. if (KillStyle == "kill") then
  750. KillStyle = "surp"
  751. KillstyleLabel:echo("&lt;center&gt;Surp&lt;/center&gt;")
  752. else
  753. KillStyle = "kill"
  754. KillstyleLabel:echo("&lt;center&gt;Killing&lt;/center&gt;")
  755. end
  756. end
  757. --bars
  758. MainHPBar = Geyser.Gauge:new({
  759.   name="MainHPBar",
  760.   x="20", y="55",
  761.   width="300", height="20",
  762. },Bottom_container)
  763.  
  764. MainHPBar.front:setStyleSheet([[background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #f04141, stop: 0.1 #ef2929, stop: 0.49 #cc0000, stop: 0.5 #a40000, stop: 1 #cc0000);
  765.     border-top: 1px black solid;
  766.     border-left: 1px black solid;
  767.     border-bottom: 1px black solid;
  768.     border-radius: 7;
  769.     padding: 3px;]])
  770. MainHPBar.back:setStyleSheet([[background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #bd3333, stop: 0.1 #bd2020, stop: 0.49 #990000, stop: 0.5 #700000, stop: 1 #990000);
  771.     border-width: 1px;
  772.     border-color: black;
  773.     border-style: solid;
  774.     border-radius: 7;
  775.     padding: 3px;]])
  776.  
  777. MainMPBar = Geyser.Gauge:new({
  778.   name="MainMPBar",
  779.   x="20", y="80",
  780.   width="300", height="20",
  781. },Bottom_container)
  782.  
  783. MainMPBar.front:setStyleSheet([[background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #000099, stop: 0.1 #000099, stop: 0.49 #3399ff, stop: 0.5 #0000ff, stop: 1 #0033cc);
  784.     border-top: 1px black solid;
  785.     border-left: 1px black solid;
  786.     border-bottom: 1px black solid;
  787.     border-radius: 7;
  788.     padding: 3px;]])
  789. MainMPBar.back:setStyleSheet([[background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #0099cc, stop: 1 #0099ff);
  790.     border-width: 1px;
  791.     border-color: black;
  792.     border-style: solid;
  793.     border-radius: 7;
  794.     padding: 3px;]])
  795.  
  796. movebar = Geyser.Gauge:new({
  797.   name="movebar",
  798.   x="340", y="55",
  799.   width="300", height="20",
  800. },Bottom_container)
  801.  
  802. movebar.front:setStyleSheet([[background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #98f041, stop: 0.1 #8cf029, stop: 0.49 #66cc00, stop: 0.5 #52a300, stop: 1 #66cc00);
  803.     border-top: 1px black solid;
  804.     border-left: 1px black solid;
  805.     border-bottom: 1px black solid;
  806.     border-radius: 7;
  807.     padding: 3px;
  808. ]])
  809. movebar.back:setStyleSheet([[background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #78bd33, stop: 0.1 #6ebd20, stop: 0.49 #4c9900, stop: 0.5 #387000, stop: 1 #4c9900);
  810.     border-width: 1px;
  811.     border-color: black;
  812.     border-style: solid;
  813.     border-radius: 7;
  814.     padding: 3px;
  815. ]])
  816.  
  817. tnlbar = Geyser.Gauge:new({
  818.   name="tnlbar",
  819.   x="340", y="80",
  820.   width="300", height="20",
  821. },Bottom_container)
  822.  
  823. tnlbar.front:setStyleSheet([[background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffff66, stop: 0.3 #ffff00, stop: 1 #ff9900);
  824.     border-top: 1px black solid;
  825.     border-left: 1px black solid;
  826.     border-bottom: 1px black solid;
  827.     border-radius: 7;
  828.     padding: 3px;
  829. ]])
  830. tnlbar.back:setStyleSheet([[background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ff9900, stop: 1 #990000);
  831.     border-width: 1px;
  832.     border-color: black;
  833.     border-style: solid;
  834.     border-radius: 7;
  835.     padding: 3px;
  836. ]])
  837.  
  838. monitorbar = Geyser.Gauge:new({
  839.   name="monitorbar",
  840.   x="660", y="55",
  841.   width="300", height="20",
  842. },Bottom_container)
  843.  
  844. monitorbar.front:setStyleSheet([[background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ff00ff, stop: 0.3 #ff33cc, stop: 1 #cc0066);
  845.     border-top: 1px black solid;
  846.     border-left: 1px black solid;
  847.     border-bottom: 1px black solid;
  848.     border-radius: 7;
  849.     padding: 3px;
  850. ]])
  851. monitorbar.back:setStyleSheet([[background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffffff, stop: 1 #ffccff);
  852.     border-width: 1px;
  853.     border-color: black;
  854.     border-style: solid;
  855.     border-radius: 7;
  856.     padding: 3px;
  857. ]])
  858.  
  859. Enemybar = Geyser.Gauge:new({
  860.   name="Enemybar",
  861.   x="660", y="80",
  862.   width="300", height="20",
  863. },Bottom_container)
  864.  
  865. Enemybar.front:setStyleSheet([[background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #f04141, stop: 0.1 #ef2929, stop: 0.49 #cc0000, stop: 0.5 #a40000, stop: 1 #cc0000);
  866.     border-top: 1px black solid;
  867.     border-left: 1px black solid;
  868.     border-bottom: 1px black solid;
  869.     border-radius: 7;
  870.     padding: 3px;]])
  871. Enemybar.back:setStyleSheet([[background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #bd3333, stop: 0.1 #bd2020, stop: 0.49 #990000, stop: 0.5 #700000, stop: 1 #990000);
  872.     border-width: 1px;
  873.     border-color: black;
  874.     border-style: solid;
  875.     border-radius: 7;
  876.     padding: 3px;]])
  877.  
  878.  
  879.  
  880.  
  881. </script>
  882.                 <eventHandlerList />
  883.             </Script>
  884.         </ScriptGroup>
  885.     </ScriptPackage>
  886. </MudletPackage>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement