Absolutionism

[NEW] Wally GUI Library Example

Apr 16th, 2021 (edited)
665
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.64 KB | None | 0 0
  1. local library = loadstring(game:HttpGet("https://pastebin.com/raw/0QSeubDn", true))()
  2.  
  3.     library.options.underlinecolor = 'rainbow' -- makes the underline of each "window" rainbow
  4.     library.options.toggledisplay = 'Fill' or 'Check' -- Applies to all toggles, [Fill] OFF = RED, ON = GREEN [CHECK] OFF = BLANK,ON = CHECKMARK
  5.  
  6.     local Window = library:CreateWindow('Example-Window') -- 1st Arg = name of window
  7.  
  8.     local Label = Window:Label('TextLabel',(true or false or nil)) -- 1st Arg = Text Displayer, 2nd Arg = want TextColor to be rainbow, TRUE = yes, FALSE or NIL = NO
  9.         -- Returns the label itself to manually mess with
  10.         -- Label.Text, Label.TextColor3, Label.Visible, etc
  11.  
  12.     local Section = Window:Section('Section',(true or false or nil)) -- 1st Arg = Text Displayer, 2nd Arg = want TextColor to be rainbow, TRUE = yes, FALSE or NIL = NO
  13.         -- Returns the section label itself to manually mess with
  14.         -- Section.Text, Section.TextColor3, Section.Visible, etc
  15.  
  16.     local Button = Window:Button('Button',function() -- 1st Arg = Text Displayer, 2nd Arg = callback function when button is clicked
  17.    
  18.     end)
  19.         -- Returns Fire function, to fire function connected to button without clicking
  20.         -- Button.Fire()
  21.  
  22.     local Toggle = Window:Toggle('Toggle',{ -- 1st Arg = Text Display
  23.         ['default'] = (true or false or nil); -- Arg if you want to manually set it to be Active or not when created
  24.         ['flag'] = 'AnyStringName'; -- Name to be called upon when applied to specified table or default table of library
  25.         ['location'] = {}; -- Can be edited for any table or will be placed in Window.flags
  26.     },function() -- callback function when toggle is turned on or off
  27.    
  28.     end)
  29.         -- Returns function to turn toggle on or off through script instead of click
  30.         -- Toggle.Set(true or false)
  31.         -- if Window.flags['AnyStringName'] == true then etc.
  32.  
  33.     local Box = Window:Box('Box',{ -- 1st Arg = Name of Box Displayed
  34.         ['default'] = 'string' or 0; -- Arg to manually set it when created can be string or number
  35.         ['type'] = 'number' or nil; -- If want to Box to only be numbers keep 'number', if want other characters for such as saving names put nil
  36.         ['min'] = 0; -- if type = 'number' this will set how low can the number be set in the box
  37.         ['max'] = math.huge; -- if type = 'number' this will set how high can the number be set in the box
  38.         ['flag'] = 'AnyStringName'; -- Name to be called upon when applied to specified table or default table of library
  39.         ['location'] = {}; -- Can be edited for any table or will be placed in Window.flags
  40.     },function()-- callback function when box context is changed // set
  41.    
  42.     end)
  43.         -- Returns a table of Box and function to manually set the box to something else
  44.         -- Box.Box.Text, Box.Box.TextColor3, Box.Box.Visible, etc
  45.         -- Box.SetNew('string' or 0)
  46.         -- if Window.flags['AnyStringName'] == 1 then -- if number
  47.         -- if Window.flags['AnyStringName'] == 'Absolutionism' then -- if string
  48.  
  49.     local Bind = Window:Bind('Bind',{ -- 1st Arg = Name of Bind Displayed
  50.         ['default'] = Enum.KeyCode.KeypadOne or nil; -- Arg to manually set Bind when created
  51.         ['kbonly'] = (true or false); -- Arg to when changing Bind, if true can only be keyboard bind // keys or if false then mouse click for example
  52.         ['flag'] = 'AnyStringName'; -- Name to be called upon when applied to specified table or default table of library
  53.         ['location'] = {}; -- Can be edited for any table or will be placed in Window.flags
  54.     },function()-- callback function when keybind pressed // not when being changed
  55.    
  56.     end)
  57.    
  58.     local Slider = Window:Slider('Slider',{ -- 1st Arg = Name of Slider Displayed
  59.         ['default'] = 0; -- Arg to manually set Slider location when created, if not set, will set to min
  60.         ['min'] = 0; -- Sets how low the slider can go
  61.         ['max'] = 10; -- sets hoe high the slider can go
  62.         ['precise'] = (true or false); -- when true only does whole numbers (0,1,2), when flase does decimals (0.1,0.2,0.3)
  63.         ['flag'] = 'AnyStringName'; -- Name to be called upon when applied to specified table or default table of library
  64.         ['location'] = {}; -- Can be edited for any table or will be placed in Window.flags
  65.     },function()-- callback function when slider is changed
  66.    
  67.     end)
  68.         -- Returns function to manually set something new
  69.         -- Slider.Set(7)
  70.  
  71.     local SearchBox = Window:SearchBox('SearchBox',{ -- 1st Arg = Name of SearchBox Displayed
  72.         ['list'] = {'A','B','C'}; -- List that can be found when searching; only strings
  73.         ['flag'] = 'AnyStringName'; -- Name to be called upon when applied to specified table or default table of library
  74.         ['location'] = {}; -- Can be edited for any table or will be placed in Window.flags
  75.     },function()-- callback function when User clicks on available selection from List
  76.    
  77.     end)
  78.         -- Returns table of Box and function to change the list
  79.         -- SearchBox.Box.Text, SearchBox.Box.TextColor3, SearchBox.Box.Visible, etc
  80.         -- SearchBox.Reload({'D','E','F'})
  81.  
  82.     local Dropdown = Window:Dropdown('Dropdown',{ -- 1st Arg = Name of Dropdown Displayed
  83.         ['default'] = '' or nil; -- Manually set the current selection to blank, if nil then will choose first selection in list provided
  84.         ['list'] = {'A','B','C'}; -- List that will be shown when dropdown is opened; only strings
  85.         ['colors'] = {['A'] = Color3.fromRGB(255,0,0);['B'] = Color3.fromRGB(0,255,0);['C'] = Color3.fromRGB(0,0,255)}; -- ColorList corresponding with all selection in List to show color when dropped
  86.         ['flag'] = 'AnyStringName'; -- Name to be called upon when applied to specified table or default table of library
  87.         ['location'] = {}; -- Can be edited for any table or will be placed in Window.flags
  88.     },function()-- callback function when User clicks on available selection from List
  89.    
  90.     end)
  91.         -- Returns table of function to change the list and or current selection
  92.         -- Dropdown.Refresh({'C','D','E'},'D' or nil)
  93.  
  94.     -- I Made this one and i can say im kind of happy with it
  95.     local DropSection = Window:DropSection('DropSection') -- 1st Arg = Name of DropSection Displayed
  96.     DropSection:Toggle('Toggle')
  97.     DropSection:Dropdown('Dropdown')
  98.     DropSection:SearchBox('SearchBox')
  99.     --DropSection:Slider('Slider')  -- Errors when sending no arguments
  100.     DropSection:Bind('Bind')
  101.     DropSection:Box('Box')
  102.     DropSection:Button('Button')
  103.     DropSection:Section('Section')
  104.     DropSection:Label('TextLabel')
Add Comment
Please, Sign In to add comment