generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

_G.gloo.ScrollBar?

Previous Thread :: Next Thread 
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
21 Jul 2013 08:05 PM
I think you will need to experiment...
Report Abuse
Java3D is not online. Java3D
Joined: 29 Jul 2012
Total Posts: 1229
21 Jul 2013 08:06 PM
I've been experimenting for 2 hours .-.
Report Abuse
Notunknown99 is not online. Notunknown99
Joined: 05 Sep 2008
Total Posts: 25360
21 Jul 2013 08:09 PM
Oh... Well, IDK and I can't test anything for you...
Report Abuse
Java3D is not online. Java3D
Joined: 29 Jul 2012
Total Posts: 1229
21 Jul 2013 08:09 PM
Wasn't asking you to, we need someone that's used it here though.. like Merely.. or Anaminus s:
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
21 Jul 2013 08:10 PM
Why don't you just use RbxGui?

Instead if this Gloo library that is in my plugins folder.................
Report Abuse
Java3D is not online. Java3D
Joined: 29 Jul 2012
Total Posts: 1229
21 Jul 2013 08:11 PM
I'll take a look at RbxGui I guess o:
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
21 Jul 2013 08:15 PM
http://wiki.roblox.com/index.php/CreateScrollingFrame_(Function)
Report Abuse
blocco is not online. blocco
Joined: 14 Aug 2008
Total Posts: 29474
21 Jul 2013 08:21 PM
What... _G.gloo isn't in my Roblox
Report Abuse
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
21 Jul 2013 08:22 PM
I'm special. :)
Report Abuse
Java3D is not online. Java3D
Joined: 29 Jul 2012
Total Posts: 1229
21 Jul 2013 08:22 PM
I know, I'm a complete moron.. but could I get an example? ._.
I saw there was the code for the backpack on the page, but I ran that with an edit, and it didn't work .-.
Report Abuse
Java3D is not online. Java3D
Joined: 29 Jul 2012
Total Posts: 1229
21 Jul 2013 08:25 PM
Wait, I got it.
I don't like it, but I guess it will have to do. ._.
Would still LOVE to know how to use the gloo ScrollBar though.
Report Abuse
darthpyro is not online. darthpyro
Joined: 18 Aug 2009
Total Posts: 3569
21 Jul 2013 08:49 PM
I've been messing around with gloo scrollbar. Can't figure it out. Anaminus needs to explain things better. D:
Report Abuse
Java3D is not online. Java3D
Joined: 29 Jul 2012
Total Posts: 1229
21 Jul 2013 08:54 PM
Uhg >_<
I just made my own.. the RBXGui one is too glitchy, and gloo is unexplained.
Sure, mine only works with Scale, but that's all I was using it for anyway so...


function Check2(parent,name,class,prop)
local o = parent:FindFirstChild(name) or Instance.new(class,parent)
o.Name = name
for nu,pr in pairs(prop or {})do
o[nu] = pr
end
return o end

function Scroller(frame,s)s=(tonumber(s) or .8)
local par = frame.Parent frame.Parent=nil
local scroller = Check2(par,frame.Name,"Frame",{Size=frame.Size,Position=frame.Position,BackgroundTransparency=frame.BackgroundTransparency,ClipsDescendants=true})
frame.ClipsDescendants,frame.Parent,frame.BackgroundTransparency,frame.Size,frame.Position,frame.Name = false,scroller,1,GUDIM(s,0,1),GUDIM(),"Frame"
local buttons = Check2(scroller,"Buttons","Frame",{Size=GUDIM(1-s,0,1),Position=GUDIM(s)})
local downs = {up=false,down=false}
local up = Check2(buttons,"Up","TextButton",{Text="UP",Size=GUDIM(1,0,.5)})
up.MouseButton1Down:connect(function()downs.up=true
while(downs.up and wait())do
frame.Position = GUDIM(0,0,math.min(0,frame.Position.Y.Scale+.01))
end
end)up.MouseButton1Up:connect(function()downs.up=false end)
up.MouseButton2Click:connect(function()frame.Position=GUDIM()end)
local down = Check2(buttons,"Down","TextButton",{Text="DOWN",Size=GUDIM(1,0,.5),Position=GUDIM(0,0,.5)})
down.MouseButton1Down:connect(function()downs.down=true
while(downs.down and wait())do
local mi = 0
for n,o in pairs(frame:GetChildren())do if(o:IsA("GuiObject"))then mi = math.max(mi,o.Position.Y.Scale+o.Size.Y.Scale)end end
frame.Position = GUDIM(0,0,math.max(frame.Size.Y.Scale-mi,frame.Position.Y.Scale-.01))
end
end)down.MouseButton1Up:connect(function()downs.down=false end)
down.MouseButton2Click:connect(function()frame.Position=GUDIM()end)
local function cr()buttons.Visible=#frame:GetChildren()>0 end
frame.ChildRemoved:connect(cr)frame.ChildAdded:connect(cr)cr()
return frame end
Report Abuse
Java3D is not online. Java3D
Joined: 29 Jul 2012
Total Posts: 1229
21 Jul 2013 08:55 PM
Oh yeah, and GUDIM,

function toNumber(n)return tonumber(n) or 0 end
function GUDIM(xs,xo,ys,yo)return UDim2.new(toNumber(xs),toNumber(xo),toNumber(ys),toNumber(yo))end
Report Abuse
Java3D is not online. Java3D
Joined: 29 Jul 2012
Total Posts: 1229
21 Jul 2013 08:57 PM
Lol.. and of course use,

local scrollFrame = Scroller(FrameThing)
-- Fill scrollFrame with the items you want to scroll ex:
for n=1,5 do
local t = Check2(scrollFrame,"fill"..n,"TextLabel",{Size=GUDIM(1,0,.25),Position=GUDIM(0,0,.25*(n-1))})
end
Report Abuse
darthpyro is not online. darthpyro
Joined: 18 Aug 2009
Total Posts: 3569
21 Jul 2013 08:59 PM
I might have to make my own, aswell. I'll check yours out to see how you did it - should probably learn, I'll need it again one day.
Report Abuse
Previous Thread :: Next Thread 
Page 2 of 2Go to page: 1, [2] Prev
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image