Mister_Stefan

WeebWare Lua V5(Aimware)

Oct 15th, 2020
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.41 KB | None | 0 0
  1. --Settings - 0 to turn the option off and 1 to turn it on
  2. --randomize background--
  3. local bgrandom = 0;
  4. --randomize on menu--
  5. local omrandom = 0;
  6.  
  7. --changing stuff after this line might break stuff--
  8. --on menu--
  9. --Asuka--
  10. local ompngData1 = http.Get("https://i.ibb.co/VM0Gj36/IMGBIN-asuka-langley-soryu-kaworu-nagisa-evangelion-chronicle-rebuild-of-evangelion-png-v-BD0m-Bb5.png");
  11. local omimgRGBA1, omimgWidth1, omimgHeight1 = common.DecodePNG(ompngData1);
  12. local omtexture1 = draw.CreateTexture(omimgRGBA1, omimgWidth1, omimgHeight1);
  13.  
  14. --girl1--
  15. local ompngData2 = http.Get("https://i.ibb.co/Q8Nk4xm/5e81cd15b4c94.png");
  16. local omimgRGBA2, omimgWidth2, omimgHeight2 = common.DecodePNG(ompngData2);
  17. local omtexture2 = draw.CreateTexture(omimgRGBA2, omimgWidth2, omimgHeight2);
  18.  
  19. --background--
  20. --catgirl1--
  21. local bgpngData1 = http.Get("https://i.ibb.co/K6nyrp8/pngguru-com-1.png");
  22. local bgimgRGBA1, bgimgWidth1, bgimgHeight1 = common.DecodePNG(bgpngData1);
  23. local bgtexture1 = draw.CreateTexture(bgimgRGBA1, bgimgWidth1, bgimgHeight1);
  24. --catgirl2--
  25. local bgpngData2 = http.Get("https://i.ibb.co/wWXDk0d/pngguru-com-2.png");
  26. local bgimgRGBA2, bgimgWidth2, bgimgHeight2 = common.DecodePNG(bgpngData2);
  27. local bgtexture2 = draw.CreateTexture(bgimgRGBA2, bgimgWidth2, bgimgHeight2);
  28. --Asuka&Rei--
  29. local bgpngData3 = http.Get("https://i.ibb.co/CvYZZkF/evaimg1.png");
  30. local bgimgRGBA3, bgimgWidth3, bgimgHeight3 = common.DecodePNG(bgpngData3);
  31. local bgtexture3 = draw.CreateTexture(bgimgRGBA3, bgimgWidth3, bgimgHeight3);
  32. --Utako Kasumi--
  33. local bgpngData4 = http.Get("https://i.ibb.co/W5FPqqM/hiclipart-com-1.png");
  34. local bgimgRGBA4, bgimgWidth4, bgimgHeight4 = common.DecodePNG(bgpngData4);
  35. local bgtexture4 = draw.CreateTexture(bgimgRGBA4, bgimgWidth4, bgimgHeight4);
  36. --Mirai Kuriyama--
  37. local bgpngData5 = http.Get("https://i.ibb.co/HgY2mw0/Mirai-Kuriyama.png");
  38. local bgimgRGBA5, bgimgWidth5, bgimgHeight5 = common.DecodePNG(bgpngData5);
  39. local bgtexture5 = draw.CreateTexture(bgimgRGBA5, bgimgWidth5, bgimgHeight5);
  40. --Gun Girl--
  41. local bgpngData6 = http.Get("https://i.ibb.co/zG1sFk9/5e81c653042d7.png");
  42. local bgimgRGBA6, bgimgWidth6, bgimgHeight6 = common.DecodePNG(bgpngData6);
  43. local bgtexture6 = draw.CreateTexture(bgimgRGBA6, bgimgWidth6, bgimgHeight6);
  44. --Asuna--
  45. local bgpngData7 = http.Get("https://i.ibb.co/1TX80n0/5e81d78ee27f4.png");
  46. local bgimgRGBA7, bgimgWidth7, bgimgHeight7 = common.DecodePNG(bgpngData7);
  47. local bgtexture7 = draw.CreateTexture(bgimgRGBA7, bgimgWidth7, bgimgHeight7);
  48. --Nami--
  49. local bgpngData8 = http.Get("https://i.ibb.co/KrSg1Yq/5e8389815d2b9.png");
  50. local bgimgRGBA8, bgimgWidth8, bgimgHeight8 = common.DecodePNG(bgpngData8);
  51. local bgtexture8 = draw.CreateTexture(bgimgRGBA8, bgimgWidth8, bgimgHeight8);
  52. --Rias--
  53. local bgpngData9 = http.Get("https://i.ibb.co/bggnMQG/5e8391005246e.png");
  54. local bgimgRGBA9, bgimgWidth9, bgimgHeight9 = common.DecodePNG(bgpngData9);
  55. local bgtexture9 = draw.CreateTexture(bgimgRGBA9, bgimgWidth9, bgimgHeight9);
  56. --Koneko--
  57. local bgpngData10 = http.Get("https://i.ibb.co/2cVr8wB/5e8391dddd943.png");
  58. local bgimgRGBA10, bgimgWidth10, bgimgHeight10 = common.DecodePNG(bgpngData10);
  59. local bgtexture10 = draw.CreateTexture(bgimgRGBA10, bgimgWidth10, bgimgHeight10);
  60.  
  61. local w, h = draw.GetScreenSize()
  62.  
  63. local menuref = gui.Reference("MENU")
  64. local weebmenu = gui.Tab(gui.Reference("Settings"), "WeebWare Settings", "WeebWare Settings")
  65. local menubox = gui.Groupbox(weebmenu, "WeebWare by atk3001", 16, 16, 608, 500)
  66. local OMIMAGE = gui.Combobox(menubox, "OMIMAGE.SET", "Select the on menu image", "OFF", "Asuka", "Rem")
  67. local BGIMAGE = gui.Combobox(menubox, "BGIMAGE.SET", "Select the background image", "OFF", "Neko1", "Neko2", "Asuka&Rei", "Utako Kasumi", "Mirai Kuriyama", "Gun Girl", "Asuna", "Nami", "Rias", "Koneko")
  68. local SLIDERPOS = gui.Slider(menubox, "BGIMAGE.POSITION.SET", "Background image position", w, 0, w + 200 )
  69. local SLIDERSIZE = gui.Slider(menubox, "BGIMAGE.POSITION.SET", "Background image size", 100, 1 , 300)
  70. local BGALWAYSSHOW = gui.Checkbox(menubox,"BGIMAGE.SHOW.ALWAYS", "Always show the background image", false );
  71.  
  72.  
  73. if omrandom == 1 then
  74.     local OMran = math.random(1,2);
  75.     OMIMAGE:SetValue(OMran)
  76. end
  77.  
  78. if bgrandom == 1 then
  79.     local BGran = math.random(1,10);
  80.     BGIMAGE:SetValue(BGran)
  81. end
  82.  
  83. callbacks.Register("Draw", function()
  84.     if menuref:IsActive() or BGALWAYSSHOW:GetValue() then
  85.     menux,menuy = menuref:GetValue()
  86.     sw = SLIDERPOS:GetValue()
  87.     size = SLIDERSIZE:GetValue() / 100
  88.         --background stuff--
  89.         if BGIMAGE:GetValue() == 1 then
  90.             local bgimgWidths1 = bgimgWidth1 / 2 * size
  91.             local bgimgHeights1 = bgimgHeight1 / 2 * size
  92.             local x = sw - bgimgWidths1
  93.             local y = h - bgimgHeights1
  94.            
  95.             draw.Color(255, 255, 255, 255)
  96.             draw.SetTexture(bgtexture1)
  97.             draw.FilledRect(x, y, x+bgimgWidths1, y+bgimgHeights1)
  98.            
  99.         elseif BGIMAGE:GetValue() == 2 then
  100.             local bgimgWidths2 = bgimgWidth2 / 2 * size
  101.             local bgimgHeights2 = bgimgHeight2 / 2 * size
  102.             local x = sw - bgimgWidths2
  103.             local y = h - bgimgHeights2
  104.        
  105.             draw.Color(255, 255, 255, 255)
  106.             draw.SetTexture(bgtexture2)
  107.             draw.FilledRect(x, y, x+bgimgWidths2, y+bgimgHeights2)
  108.            
  109.         elseif BGIMAGE:GetValue() == 3 then
  110.             local bgimgWidths3 = bgimgWidth3 / 1.5 * size
  111.             local bgimgHeights3 = bgimgHeight3 / 1.5 * size
  112.             local x = sw - bgimgWidths3
  113.             local y = h - bgimgHeights3
  114.        
  115.             draw.Color(255, 255, 255, 255)
  116.             draw.SetTexture(bgtexture3)
  117.             draw.FilledRect(x, y, x+bgimgWidths3, y+bgimgHeights3)
  118.         elseif BGIMAGE:GetValue() == 4 then
  119.             local bgimgWidths4 = bgimgWidth4 * size
  120.             local bgimgHeights4 = bgimgHeight4 * size
  121.             local x = sw - bgimgWidths4
  122.             local y = h - bgimgHeights4
  123.        
  124.             draw.Color(255, 255, 255, 255)
  125.             draw.SetTexture(bgtexture4)
  126.             draw.FilledRect(x, y, x+bgimgWidths4, y+bgimgHeights4)
  127.         elseif BGIMAGE:GetValue() == 5 then
  128.             local bgimgWidths5 = bgimgWidth5 * size
  129.             local bgimgHeights5 = bgimgHeight5 * size
  130.             local x = sw - bgimgWidths5
  131.             local y = h - bgimgHeights5
  132.        
  133.             draw.Color(255, 255, 255, 255)
  134.             draw.SetTexture(bgtexture5)
  135.             draw.FilledRect(x, y, x+bgimgWidths5, y+bgimgHeights5)
  136.         elseif BGIMAGE:GetValue() == 6 then
  137.             local bgimgWidths6 = bgimgWidth6 / 2 * size
  138.             local bgimgHeights6 = bgimgHeight6 / 2 * size
  139.             local x = sw - bgimgWidths6
  140.             local y = h - bgimgHeights6
  141.        
  142.             draw.Color(255, 255, 255, 255)
  143.             draw.SetTexture(bgtexture6)
  144.             draw.FilledRect(x, y, x+bgimgWidths6, y+bgimgHeights6)
  145.         elseif BGIMAGE:GetValue() == 7 then
  146.             local bgimgWidths7 = bgimgWidth7 / 2 * size
  147.             local bgimgHeights7 = bgimgHeight7 / 2 * size
  148.             local x = sw - bgimgWidths7
  149.             local y = h - bgimgHeights7
  150.        
  151.             draw.Color(255, 255, 255, 255)
  152.             draw.SetTexture(bgtexture7)
  153.             draw.FilledRect(x, y, x+bgimgWidths7, y+bgimgHeights7)
  154.         elseif BGIMAGE:GetValue() == 8 then
  155.             local bgimgWidths8 = bgimgWidth8 / 1.5 * size
  156.             local bgimgHeights8 = bgimgHeight8 / 1.5 * size
  157.             local x = sw - bgimgWidths8
  158.             local y = h - bgimgHeights8
  159.        
  160.             draw.Color(255, 255, 255, 255)
  161.             draw.SetTexture(bgtexture8)
  162.             draw.FilledRect(x, y, x+bgimgWidths8, y+bgimgHeights8)
  163.         elseif BGIMAGE:GetValue() == 9 then
  164.             local bgimgWidths9 = bgimgWidth9 / 1.3 * size
  165.             local bgimgHeights9 = bgimgHeight9 / 1.3 * size
  166.             local x = sw - bgimgWidths9
  167.             local y = h - bgimgHeights9
  168.        
  169.             draw.Color(255, 255, 255, 255)
  170.             draw.SetTexture(bgtexture9)
  171.             draw.FilledRect(x, y, x+bgimgWidths9, y+bgimgHeights9)
  172.         elseif BGIMAGE:GetValue() == 10 then
  173.             local bgimgWidths10 = bgimgWidth10 / 1.3 * size
  174.             local bgimgHeights10 = bgimgHeight10 / 1.3 * size
  175.             local x = sw - bgimgWidths10
  176.             local y = h - bgimgHeights10
  177.        
  178.             draw.Color(255, 255, 255, 255)
  179.             draw.SetTexture(bgtexture10)
  180.             draw.FilledRect(x, y, x+bgimgWidths10, y+bgimgHeights10)
  181.         end
  182.     end
  183.    
  184.     if menuref:IsActive() then
  185.         --on menu stuff--
  186.         if OMIMAGE:GetValue() == 1 then
  187.             local omimgWidths1 = omimgWidth1 / 2
  188.             local omimgHeights1 = omimgHeight1 / 2
  189.             local x = menux + 718
  190.             local y = menuy - 270
  191.    
  192.             draw.Color(255, 255, 255, 255)
  193.             draw.SetTexture(omtexture1)
  194.             draw.FilledRect(x, y, x+omimgWidths1, y+omimgHeights1)
  195.            
  196.         elseif OMIMAGE:GetValue() == 2 then
  197.             local omimgWidths2 = omimgWidth2 / 2.5
  198.             local omimgHeights2 = omimgHeight2 / 2.5
  199.             local x = menux - omimgWidths2 + 800
  200.             local y = menuy - omimgHeights2
  201.    
  202.             draw.Color(255, 255, 255, 255)
  203.             draw.SetTexture(omtexture2)
  204.             draw.FilledRect(x, y, x+omimgWidths2, y+omimgHeights2)
  205.         end
  206.     end
  207. end)
Add Comment
Please, Sign In to add comment