|
| 18 Jul 2014 10:21 PM |
I'm trying to print the x/y's of the size and position in the menu button CoreGui.
I'm trying to figure out where the menu button is in CoreGui, so I tried this:
for i,v in pairs(game.CoreGui.RobloxGui:GetChildren()) do print(v.Name) end
And I got all of these;
ControlFrame PlayerName CoreScripts/ToolTip CoreScripts/Settings CoreScripts/MainBotChatScript CoreScripts/DeveloperConsole CoreScripts/NotificationScript CoreScripts/ChatScript CoreScripts/PurchasePromptScript CoreScripts/HealthScript CoreScripts/PlayerListScript Popup PlayerListScreen CurrentLoadout Backpack ChatFrame AreaSoak AreaSoak AreaSoak AreaSoak
Is the menu button in here, or am I totally off? |
|
|
| Report Abuse |
|
|
| |
|
|
| 18 Jul 2014 10:28 PM |
| I want to replicate it, but in a square instead, and use it for a different reason. EG: Spectate, shop. |
|
|
| Report Abuse |
|
|
| |
|
|
| 18 Jul 2014 10:43 PM |
| I don't just want to guess, I want to make it like the menu button. |
|
|
| Report Abuse |
|
|
MHebes
|
  |
| Joined: 04 Jan 2013 |
| Total Posts: 2278 |
|
|
| 18 Jul 2014 10:59 PM |
Well, it's not in RobloxGui. Run this in the command bar and see what I mean:
local function recursive(obj) for _, child in pairs(obj:GetChildren()) do if child:IsA("GuiObject") then local t = Instance.new("TextLabel", game.StarterGui.ScreenGui) t.Name = child.Name t.Text = child.Name t.Size = child.Size t.Position = child.Position t.Transparency = 0.6 t.TextColor3 = Color3.new() end recursive(child) end end recursive(game:GetService("CoreGui").RobloxGui) |
|
|
| Report Abuse |
|
|
|
| 18 Jul 2014 11:17 PM |
| try to take a screen shot and measure the pixels of it |
|
|
| Report Abuse |
|
|
MHebes
|
  |
| Joined: 04 Jan 2013 |
| Total Posts: 2278 |
|
|
| 18 Jul 2014 11:25 PM |
That's a decent idea lol Just did it and the bounds of the image (maybe not the actual button) are 54x46 |
|
|
| Report Abuse |
|
|
| |
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
|
| 18 Jul 2014 11:28 PM |
| You acttually counted it pixel by pixel...? FREAKY! |
|
|
| Report Abuse |
|
|
MHebes
|
  |
| Joined: 04 Jan 2013 |
| Total Posts: 2278 |
|
|
| 18 Jul 2014 11:30 PM |
Uh paint.net did it for me, but I'm pretty sure you could do this with MS paint lol |
|
|
| Report Abuse |
|
|