G2A Many GEOs
SHARE
TWEET

Mudlet Dynamic Layout Script

Syndran May 23rd, 2020 1,555 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE MudletPackage>
  3. <MudletPackage version="1.001">
  4.     <ScriptPackage>
  5.         <Script isActive="yes" isFolder="no">
  6.             <name>Avatar Layout</name>
  7.             <packageName></packageName>
  8.             <script>-------------------------------------------------
  9. -- Lua Script for Avatar Compatable layout.    --
  10. --                                             --
  11. -- Note that you will need to change any alias --
  12. --       used for runstats and reset           --
  13. -------------------------------------------------
  14.  
  15. --setup. Lets get the screen space we have available and chop it up
  16. mainWidth, mainHeight = getMainWindowSize()
  17.  
  18. -- left side panel should be what % of available space
  19. LeftPanelPercent = 20
  20. LeftPanelWidth = tonumber(mainWidth)*(LeftPanelPercent/100)
  21.  
  22. -- right panel should be 25% of the available space
  23. RightPanelPercent = 25
  24. RightPanelWidth = tonumber(mainWidth)*(RightPanelPercent/100)
  25.  
  26. -- the middle area left after we have 2 side panels
  27. CentrePanelWidth = mainWidth - (RightPanelWidth + LeftPanelWidth)
  28.  
  29. --break the space in middle up into 20 spaces for loading stuff in
  30. CentrePanelSize = CentrePanelWidth/20
  31.  
  32.  
  33. -- left hand panel - full height
  34.  
  35. setBorderLeft(LeftPanelWidth)
  36.  
  37. left_container = Geyser.Container:new({
  38.   name = "left_container",
  39.   x="0", y=0,                    -- makes the container start 20% of the screen away from the right side
  40.   width = LeftPanelWidth, height="100%",      -- filling it up until the end
  41. })
  42.  
  43.  
  44. --top of left panel, 75% of height for group stats
  45. GroupContainer = Geyser.Container:new({
  46.   name = "GroupContainer",
  47.   x=0, y=0,                
  48.   width = "100%", height="75%",
  49. }, left_container)
  50.  
  51. --header for the group panel
  52. leftPanelHeader = Geyser.Label:new({
  53.  name = "leftPanelHeader",
  54.   x = "1%", y = "0",
  55.   width = "95%", height = "20",
  56.  
  57.   fgColor = "orange",
  58.   message = [[&lt;center&gt;&lt;b&gt;Group&lt;/b&gt;&lt;/center&gt;]]
  59. }, GroupContainer)
  60. leftPanelHeader:setStyleSheet([[
  61.   border-width: 1px;
  62.   border-style: solid;
  63.   border-color: yellow;
  64.   background-color: black;
  65.   border-radius: 3px;
  66.  
  67. ]])
  68. -- border-image: url(E:/dump/granite.jpg)
  69. --populate an autolayout box inside inside the group panel to fill with containers
  70. GroupContainerInner = Geyser.VBox:new({
  71.   name = "GroupContainerInner",
  72.   x="2%", y="25",                    
  73.   width = "96%", height="99%",
  74. }, GroupContainer)            
  75.  
  76. --experimental code to populate a bunch of containers inside the groupy panel and add names and guages
  77. GroupContainer_background = Geyser.Label:new({
  78.  name = "GroupContainer_background",
  79.   x = "1%", y = "0",
  80.   width = "95%", height = "100%",
  81.   fgColor = "black",
  82.   }, GroupContainer)
  83. lowerWindow("GroupContainer_background")
  84. GroupContainer_background:setStyleSheet([[
  85.   border-width: 1px;
  86.   border-style: solid;
  87.   border-color: yellow;
  88.   background-color: black;
  89.   border-radius: 3px;
  90.  
  91. ]])
  92.  
  93. GroupieTable = {}
  94. --group is set to max 32 currently. pending better way to handle this
  95. for i=1,32 do
  96.  
  97. GroupieTable[i] = Geyser.Container:new({name="groupy"..tostring(i),height="10",width="90%"},GroupContainerInner)
  98.  
  99. end
  100.  
  101. --bottom container on left for spell effects
  102. left_container_bottom = Geyser.Container:new({
  103.   name = "left_container_bottom",
  104.   x=0, y="75%",                
  105.   width = "100%", height="25%",
  106. }, left_container)
  107.  
  108. --background for this.
  109. left_container_background = Geyser.Label:new({
  110.  name = "left_container_background",
  111.   x = "1%", y = "0",
  112.   width = "95%%", height = "100%",
  113.   fgColor = "black",
  114.   }, left_container_bottom)
  115. lowerWindow("left_container_background")
  116. left_container_background:setStyleSheet([[
  117.   border-width: 1px;
  118.   border-style: solid;
  119.   border-color: yellow;
  120.   background-color: black;
  121.   border-radius: 3px;
  122.  
  123. ]])
  124.  
  125. --label for header of affect container
  126. leftlowerPanelHeader = Geyser.Label:new({
  127.  name = "leftlowerPanelHeader",
  128.   x = "1%", y = "0",
  129.   width = "95%", height = "20",
  130.   fgColor = "orange",
  131.   message = [[&lt;center&gt;&lt;b&gt;Affects&lt;/b&gt;&lt;/center&gt;]]
  132. }, left_container_bottom)
  133. leftlowerPanelHeader:setStyleSheet([[
  134.   border-width: 1px;
  135.   border-style: solid;
  136.   border-color: yellow;
  137.   background-color: black;
  138.   border-radius: 3px;
  139.  
  140. ]])
  141. -- border-image: url(E:/dump/granite.jpg)
  142. MoveHiddenLabel = Geyser.Label:new({
  143.  name = "MoveHiddenLabel",
  144.   x = "5%", y = "26",
  145.   width = "40%", height = "18",
  146.   fgColor = "white",
  147.   message = [[&lt;left&gt;Move Hidden&lt;/left&gt;]]
  148. }, left_container_bottom)
  149. MoveHiddenLabel:setColor(0,255,0,150)
  150.  
  151. SneakLabel = Geyser.Label:new({
  152.  name = "SneakLabel",
  153.   x = "50%", y = "26",
  154.   width = "40%", height = "18",
  155.   fgColor = "white",
  156.   message = [[&lt;left&gt;Sneak&lt;/left&gt;]]
  157. }, left_container_bottom)
  158. SneakLabel:setColor(0,255,0,150)
  159.  
  160. InvisLabel = Geyser.Label:new({
  161.  name = "InvisLabel",
  162.   x = "5%", y = "48",
  163.   width = "40%", height = "18",
  164.   fgColor = "white",
  165.   message = [[&lt;left&gt;Invis&lt;/left&gt;]]
  166. }, left_container_bottom)
  167. InvisLabel:setColor(0,255,0,150)
  168.  
  169. SancLabel = Geyser.Label:new({
  170.  name = "SancLabel",
  171.   x = "50%", y = "48",
  172.   width = "40%", height = "18",
  173.   fgColor = "white",
  174.   message = [[&lt;left&gt;Sanctuary&lt;/left&gt;]]
  175. }, left_container_bottom)
  176. SancLabel:setColor(0,255,0,150)
  177.  
  178. FrenzyLabel = Geyser.Label:new({
  179.  name = "FrenzyLabel",
  180.   x = "5%", y = "70",
  181.   width = "40%", height = "18",
  182.   fgColor = "white",
  183.   message = [[&lt;left&gt;Frenzy&lt;/left&gt;]]
  184. }, left_container_bottom)
  185. FrenzyLabel:setColor(0,255,0,150)
  186.  
  187. WaterLabel = Geyser.Label:new({
  188.  name = "WaterLabel",
  189.   x = "50%", y = "70",
  190.   width = "40%", height = "18",
  191.   fgColor = "white",
  192.   message = [[&lt;left&gt;WaterBreath&lt;/left&gt;]]
  193. }, left_container_bottom)
  194. WaterLabel:setColor(0,255,0,150)
  195.  
  196. FortLabel = Geyser.Label:new({
  197.  name = "FortLabel",
  198.   x = "5%", y = "92",
  199.   width = "40%", height = "18",
  200.   fgColor = "white",
  201.   message = [[&lt;left&gt;Fortitudes&lt;/left&gt;]]
  202. }, left_container_bottom)
  203. FortLabel:setColor(0,255,0,150)
  204.  
  205. FociLabel = Geyser.Label:new({
  206.  name = "FociLabel",
  207.   x = "50%", y = "92",
  208.   width = "40%", height = "18",
  209.   fgColor = "white",
  210.   message = [[&lt;left&gt;Foci&lt;/left&gt;]]
  211. }, left_container_bottom)
  212. FociLabel:setColor(0,255,0,150)
  213.  
  214. AwenLabel = Geyser.Label:new({
  215.  name = "AwenLabel",
  216.   x = "5%", y = "114",
  217.   width = "40%", height = "18",
  218.   fgColor = "white",
  219.   message = [[&lt;left&gt;Awen&lt;/left&gt;]]
  220. }, left_container_bottom)
  221. AwenLabel:setColor(0,255,0,150)
  222.  
  223. InvincLabel = Geyser.Label:new({
  224.  name = "InvincLabel",
  225.   x = "50%", y = "114",
  226.   width = "40%", height = "18",
  227.   fgColor = "white",
  228.   message = [[&lt;left&gt;Invinc&lt;/left&gt;]]
  229. }, left_container_bottom)
  230. InvincLabel:setColor(0,255,0,150)
  231.  
  232. BarkLabel = Geyser.Label:new({
  233.  name = "BarkLabel",
  234.   x = "5%", y = "136",
  235.   width = "40%", height = "18",
  236.   fgColor = "white",
  237.   message = [[&lt;left&gt;Barkskin&lt;/left&gt;]]
  238. }, left_container_bottom)
  239. BarkLabel:setColor(0,255,0,150)
  240.  
  241. SteelLabel = Geyser.Label:new({
  242.  name = "SteelLabel",
  243.   x = "50%", y = "136",
  244.   width = "40%", height = "18",
  245.   fgColor = "white",
  246.   message = [[&lt;left&gt;Steel Skel&lt;/left&gt;]]
  247. }, left_container_bottom)
  248. SteelLabel:setColor(0,255,0,150)
  249.  
  250. IronLabel = Geyser.Label:new({
  251.  name = "IronLabel",
  252.   x = "5%", y = "158",
  253.   width = "40%", height = "18",
  254.   fgColor = "white",
  255.   message = [[&lt;left&gt;Iron Skin&lt;/left&gt;]]
  256. }, left_container_bottom)
  257. IronLabel:setColor(0,255,0,150)
  258.  
  259. ConcentrateLabel = Geyser.Label:new({
  260.  name = "ConcentrateLabel",
  261.   x = "50%", y = "158",
  262.   width = "40%", height = "18",
  263.   fgColor = "white",
  264.   message = [[&lt;left&gt;Concentrate&lt;/left&gt;]]
  265. }, left_container_bottom)
  266. ConcentrateLabel:setColor(0,255,0,150)
  267. ConcentrateLabel:setClickCallback("c_conc")
  268.  
  269. function c_conc()
  270.   send("c concent")
  271. end
  272.  
  273. Skill1Label = Geyser.Label:new({
  274.  name = "Skill1Label",
  275.   x = "5%", y = "180",
  276.   width = "40%", height = "18",
  277.   fgColor = "white",
  278.   message = [[&lt;left&gt;Concentrate&lt;/left&gt;]]
  279. }, left_container_bottom)
  280. Skill1Label:setColor(0,255,0,150)
  281. Skill1Label:hide()
  282. Skill2Label = Geyser.Label:new({
  283.  name = "Skill2Label",
  284.   x = "50%", y = "180",
  285.   width = "40%", height = "18",
  286.   fgColor = "white",
  287.   message = [[&lt;left&gt;Concentrate&lt;/left&gt;]]
  288. }, left_container_bottom)
  289. Skill2Label:setColor(0,255,0,150)
  290. Skill2Label:hide()
  291. Skill3Label = Geyser.Label:new({
  292.  name = "Skill3Label",
  293.   x = "5%", y = "202",
  294.   width = "40%", height = "18",
  295.   fgColor = "white",
  296.   message = [[&lt;left&gt;Concentrate&lt;/left&gt;]]
  297. }, left_container_bottom)
  298. Skill3Label:setColor(0,255,0,150)
  299. Skill3Label:hide()
  300. Skill4Label = Geyser.Label:new({
  301.  name = "Skill4Label",
  302.   x = "50%", y = "202",
  303.   width = "40%", height = "18",
  304.   fgColor = "white",
  305.   message = [[&lt;left&gt;Concentrate&lt;/left&gt;]]
  306. }, left_container_bottom)
  307. Skill4Label:setColor(0,255,0,150)
  308. Skill4Label:hide()
  309.  
  310.  
  311. -- right hand panel
  312. setBorderRight(RightPanelWidth)
  313. -- top border
  314. right_container = Geyser.Container:new({
  315.   name = "right_container",
  316.   x = mainWidth - RightPanelWidth, y=0,
  317.   width = RightPanelWidth, height="100%",      -- filling it up until the end
  318. })
  319.  
  320. RightOutline = Geyser.Label:new({
  321.   name = "LeftBorder",
  322.   x = "0", y = "0",
  323.   width = "100%", height = "100%",
  324.   fgColor = "black",
  325.   message = [[&lt;center&gt;&lt;/center&gt;]]
  326. }, right_container) -- this is where we tell it what container to go into
  327. lowerWindow("RightOutline")
  328. RightOutline:setStyleSheet([[
  329.   border-width: 1px;
  330.   border-style: solid;
  331.   border-color: yellow;
  332.   background-color: black;
  333.   border-radius: 3px;
  334. ]])
  335.  
  336. ChannelLabel = Geyser.Label:new({
  337.   name = "ChannelLabel",
  338.   x = "0", y = "0",
  339.   width = "100%", height = "2%",
  340.   fgColor = "orange",
  341.   message = [[&lt;center&gt;&lt;b&gt;Public Channels&lt;/b&gt;&lt;/center&gt;]]
  342. }, right_container) -- this is where we tell it what container to go into
  343. ChannelLabel:setStyleSheet([[
  344.   border-width: 1px;
  345.   border-style: solid;
  346.   border-color: yellow;
  347.   background-color: black;
  348.   border-radius: 3px;
  349. ]])
  350.  
  351. PublicChannels = Geyser.MiniConsole:new({
  352.   name="Channels",
  353.   x="1%", y="2%",
  354.   autoWrap = true,
  355.   color = "black",
  356.   scrollBar = true,
  357.   fontSize = 8,
  358.   width="99%", height="32%",
  359. }, right_container)
  360.  
  361. GroupLabel = Geyser.Label:new({
  362.   name = "GroupLabel",
  363.   x = "0", y = "34%",
  364.   width = "100%", height = "2%",
  365.   fgColor = "orange",
  366.   message = [[&lt;center&gt;&lt;b&gt;Group Chat&lt;/b&gt;&lt;/center&gt;]]
  367. }, right_container) -- this is where we tell it what container to go into
  368. GroupLabel:setStyleSheet([[
  369.   border-width: 1px;
  370.   border-style: solid;
  371.   border-color: yellow;
  372.   background-color: black;
  373.   border-radius: 3px;
  374. ]])
  375.  
  376. GroupChat = Geyser.MiniConsole:new({
  377.   name="GroupChat",
  378.   x="1%", y="36%",
  379.   autoWrap = true,
  380.   color = "black",
  381.   scrollBar = true,
  382.   fontSize = 8,
  383.   width="99%", height="32%",
  384. }, right_container)
  385.  
  386. BuddyLabel = Geyser.Label:new({
  387.   name = "BuddyLabel",
  388.   x = "0", y = "68%",
  389.   width = "100%", height = "2%",
  390.   fgColor = "orange",
  391.   message = [[&lt;center&gt;&lt;b&gt;Buddy Chat&lt;/b&gt;&lt;/center&gt;]]
  392. }, right_container) -- this is where we tell it what container to go into
  393. BuddyLabel:setStyleSheet([[
  394.   border-width: 1px;
  395.   border-style: solid;
  396.   border-color: yellow;
  397.   background-color: black;
  398.   border-radius: 3px;
  399. ]])
  400.  
  401. BuddyChat = Geyser.MiniConsole:new({
  402.   name="BuddyChat",
  403.   x="1%", y="70%",
  404.   autoWrap = true,
  405.   color = "black",
  406.   scrollBar = true,
  407.   fontSize = 8,
  408.   width="99%", height="30%",
  409. }, right_container)
  410.  
  411.  
  412. --BOTTOM STAT PANEL
  413. setBorderBottom(110)
  414.  
  415. Bottom_container = Geyser.Container:new({
  416.   name = "Bottom_container",
  417.   x = LeftPanelWidth -10, y= mainHeight-105,                    -- makes the container start where left panel ends
  418.   width = CentrePanelWidth, 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 = CentrePanelSize*3, 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(16)
  477.  
  478. CharInfoLabel = Geyser.Label:new({
  479.   name = "CharInfoLabel",
  480.   x = CentrePanelSize*3, y = "0",
  481.   width = CentrePanelSize*3, 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 = CentrePanelSize*3, y = "25",
  498.   width = CentrePanelSize*3, 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 = CentrePanelSize*6, y = "0",
  515.   width = CentrePanelSize*3, 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 = CentrePanelSize*6, y = "25",
  532.   width = CentrePanelSize*3, 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 = CentrePanelSize*9, y = "0",
  549.   width = CentrePanelSize*2, 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 = CentrePanelSize*9, y = "25",
  566.   width = CentrePanelSize*2, 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 = CentrePanelSize*11, y = "0",
  583.   width = CentrePanelSize*2, 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 = CentrePanelSize*11, y = "25",
  600.   width = CentrePanelSize*2, 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 = CentrePanelSize*13, y = "0",
  617.   width = CentrePanelSize*1, 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 = CentrePanelSize*14, y = "0",
  639.   width = CentrePanelSize*1, 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 = CentrePanelSize*15, y = "0",
  662.   width = CentrePanelSize*2, height = "25",
  663.   fgColor = "black",
  664.   message = [[&lt;center&gt;AutoKill off&lt;/center&gt;]]
  665. }, CharPanel)
  666. AutoKillLabel:setStyleSheet([[
  667.   border-width: 1px;
  668.   border-style: solid;
  669.   border-color: yellow;
  670.   background-color: green;
  671.   border-radius: 3px;
  672. ]])
  673. AutoKillLabel:setFontSize(10)
  674. AutoKillLabel:setClickCallback("ToggleKill")
  675.  
  676.  
  677. function ToggleKill()
  678.  AutoKill = not AutoKill
  679.  if AutoKill then
  680.  AutoKillLabel:setStyleSheet([[
  681.   border-width: 1px;
  682.   border-style: solid;
  683.   border-color: yellow;
  684.   background-color: rgba(255, 0, 0, 0.5);
  685.   border-radius: 3px;
  686. ]])
  687. AutoKillLabel:echo("&lt;center&gt;KILLING!!&lt;/center&gt;")
  688. else
  689. AutoKillLabel:setStyleSheet([[
  690.   border-width: 1px;
  691.   border-style: solid;
  692.   border-color: yellow;
  693.   background-color: green;
  694.   border-radius: 3px;
  695. ]])
  696. AutoKillLabel:echo("&lt;center&gt;Autokill off&lt;/center&gt;")
  697. end
  698. end
  699.  
  700. AutoBash = false
  701. AutoBashLabel = Geyser.Label:new({
  702.   name = "AutoBashLabel",
  703.   x = CentrePanelSize*15, y = "25",
  704.   width = CentrePanelSize*2, height = "25",
  705.   fgColor = "black",
  706.   message = [[&lt;center&gt;Auto Bash off&lt;/center&gt;]]
  707. }, CharPanel)
  708. AutoBashLabel:setStyleSheet([[
  709.   border-width: 1px;
  710.   border-style: solid;
  711.   border-color: yellow;
  712.   background-color: green;
  713.   border-radius: 3px;
  714. ]])
  715. AutoBashLabel:setFontSize(10)
  716. AutoBashLabel:setClickCallback("ToggleBash")
  717.  
  718. function ToggleBash()
  719.  AutoBash = not AutoBash
  720.  if AutoBash then
  721.  AutoBashLabel:setStyleSheet([[
  722.   border-width: 1px;
  723.   border-style: solid;
  724.   border-color: yellow;
  725.   background-color: rgba(255, 0, 0, 0.5);
  726.   border-radius: 3px;
  727. ]])
  728. AutoBashLabel:echo("&lt;center&gt;BASHING!!&lt;/center&gt;")
  729. else
  730. AutoBashLabel:setStyleSheet([[
  731.   border-width: 1px;
  732.   border-style: solid;
  733.   border-color: yellow;
  734.   background-color: green;
  735.   border-radius: 3px;
  736. ]])
  737. AutoBashLabel:echo("&lt;center&gt;Auto Bash off&lt;/center&gt;")
  738. end
  739. end
  740.  
  741. KillStyle = "kill"
  742. KillstyleLabel = Geyser.Label:new({
  743.   name = "KillstyleLabel",
  744.   x = CentrePanelSize*17, y = "0",
  745.   width = CentrePanelSize*1, height = "25",
  746.   fgColor = "black",
  747.   message = [[&lt;center&gt;Killing&lt;/center&gt;]]
  748. }, CharPanel)
  749. KillstyleLabel:setStyleSheet([[
  750.   border-width: 1px;
  751.   border-style: solid;
  752.   border-color: yellow;
  753.   background-color: rgba(255, 0, 0, 0.5);
  754.   border-radius: 3px;
  755. ]])
  756. KillstyleLabel:setFontSize(10)
  757. KillstyleLabel:setClickCallback("ToggleStyle")
  758.  
  759. function ToggleStyle()
  760.  
  761. if (KillStyle == "kill") then
  762. KillStyle = "surp"
  763. KillstyleLabel:echo("&lt;center&gt;Surp&lt;/center&gt;")
  764. else
  765. KillStyle = "kill"
  766. KillstyleLabel:echo("&lt;center&gt;Killing&lt;/center&gt;")
  767. end
  768. end
  769.  
  770. --bars
  771.  
  772. LagLabel = Geyser.Label:new({
  773.   name = "LagLabel",
  774.   x = "10", y = "55",
  775.   width = CentrePanelSize*1.5, height = "20",
  776.   fgColor = "white",
  777.   message = [[&lt;center&gt;Comm Lag&lt;/center&gt;]]
  778. }, Bottom_container)
  779. LagLabel:setStyleSheet([[
  780.   border-width: 1px;
  781.   border-style: solid;
  782.   border-color: yellow;
  783.   background-color: rgba(255, 0, 0, 0.5);
  784.   border-radius: 3px;
  785. ]])
  786. LagLabel:setFontSize(10)
  787.  
  788. QiLabel = Geyser.Label:new({
  789.   name = "QiLabel",
  790.   x = "10", y = "80",
  791.   width = CentrePanelSize*1.5, height = "20",
  792.   fgColor = "white",
  793.   message = [[&lt;center&gt;Qi&lt;/center&gt;]]
  794. }, Bottom_container)
  795. QiLabel:setStyleSheet([[
  796.   border-width: 1px;
  797.   border-style: solid;
  798.   border-color: yellow;
  799.   background-color: rgba(255, 0, 0, 0.5);
  800.   border-radius: 3px;
  801. ]])
  802. QiLabel:setFontSize(10)
  803.  
  804.  
  805. MainHPBar = Geyser.Gauge:new({
  806.   name="MainHPBar",
  807.   x= CentrePanelSize*2, y="55",
  808.   width=CentrePanelSize*5.5, height="20",
  809. },Bottom_container)
  810.  
  811. 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);
  812.     border-top: 1px black solid;
  813.     border-left: 1px black solid;
  814.     border-bottom: 1px black solid;
  815.     border-radius: 7;
  816.     padding: 3px;]])
  817. 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);
  818.     border-width: 1px;
  819.     border-color: black;
  820.     border-style: solid;
  821.     border-radius: 7;
  822.     padding: 3px;]])
  823.  
  824. MainMPBar = Geyser.Gauge:new({
  825.   name="MainMPBar",
  826.   x=CentrePanelSize*2, y="80",
  827.   width=CentrePanelSize*5.5, height="20",
  828. },Bottom_container)
  829.  
  830. 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);
  831.     border-top: 1px black solid;
  832.     border-left: 1px black solid;
  833.     border-bottom: 1px black solid;
  834.     border-radius: 7;
  835.     padding: 3px;]])
  836. MainMPBar.back:setStyleSheet([[background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #0099cc, stop: 1 #0099ff);
  837.     border-width: 1px;
  838.     border-color: black;
  839.     border-style: solid;
  840.     border-radius: 7;
  841.     padding: 3px;]])
  842.  
  843. movebar = Geyser.Gauge:new({
  844.   name="movebar",
  845.   x=CentrePanelSize*8, y="55",
  846.   width=CentrePanelSize*5, height="20",
  847. },Bottom_container)
  848.  
  849. 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);
  850.     border-top: 1px black solid;
  851.     border-left: 1px black solid;
  852.     border-bottom: 1px black solid;
  853.     border-radius: 7;
  854.     padding: 3px;
  855. ]])
  856. 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);
  857.     border-width: 1px;
  858.     border-color: black;
  859.     border-style: solid;
  860.     border-radius: 7;
  861.     padding: 3px;
  862. ]])
  863.  
  864. tnlbar = Geyser.Gauge:new({
  865.   name="tnlbar",
  866.   x=CentrePanelSize*8, y="80",
  867.   width=CentrePanelSize*5, height="20",
  868. },Bottom_container)
  869.  
  870. tnlbar.front:setStyleSheet([[background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffff66, stop: 0.3 #ffff00, stop: 1 #ff9900);
  871.     border-top: 1px black solid;
  872.     border-left: 1px black solid;
  873.     border-bottom: 1px black solid;
  874.     border-radius: 7;
  875.     padding: 3px;
  876. ]])
  877. tnlbar.back:setStyleSheet([[background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ff9900, stop: 1 #990000);
  878.     border-width: 1px;
  879.     border-color: black;
  880.     border-style: solid;
  881.     border-radius: 7;
  882.     padding: 3px;
  883. ]])
  884.  
  885. monitorbar = Geyser.Gauge:new({
  886.   name="monitorbar",
  887.   x=CentrePanelSize*14, y="55",
  888.   width=CentrePanelSize*5, height="20",
  889. },Bottom_container)
  890.  
  891. monitorbar.front:setStyleSheet([[background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ff00ff, stop: 0.3 #ff33cc, stop: 1 #cc0066);
  892.     border-top: 1px black solid;
  893.     border-left: 1px black solid;
  894.     border-bottom: 1px black solid;
  895.     border-radius: 7;
  896.     padding: 3px;
  897. ]])
  898. monitorbar.back:setStyleSheet([[background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffffff, stop: 1 #ffccff);
  899.     border-width: 1px;
  900.     border-color: black;
  901.     border-style: solid;
  902.     border-radius: 7;
  903.     padding: 3px;
  904. ]])
  905.  
  906. Enemybar = Geyser.Gauge:new({
  907.   name="Enemybar",
  908.   x=CentrePanelSize*14, y="80",
  909.   width=CentrePanelSize*5, height="20",
  910. },Bottom_container)
  911.  
  912. 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);
  913.     border-top: 1px black solid;
  914.     border-left: 1px black solid;
  915.     border-bottom: 1px black solid;
  916.     border-radius: 7;
  917.     padding: 3px;]])
  918. 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);
  919.     border-width: 1px;
  920.     border-color: black;
  921.     border-style: solid;
  922.     border-radius: 7;
  923.     padding: 3px;]])
  924.  
  925.  
  926.  
  927.  
  928. </script>
  929.             <eventHandlerList />
  930.         </Script>
  931.     </ScriptPackage>
  932. </MudletPackage>
RAW Paste Data
Ledger Nano X - The secure hardware wallet
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