|
| 08 Aug 2014 04:48 PM |
local Tool = script.Parent
--game:GetService("InsertService"):SetCollectionUrl("http://test.roblox.com/Game/Tools/insertasset.ashx?sid=%d") --game:GetService("InsertService"):SetBaseCategoryUrl("http://test.roblox.com/Game/Tools/insertasset.ashx?nsets=10") --game:GetService("InsertService"):SetAssetUrl("http://test.roblox.com/Asset/?id=%d") enabled = true local origTexture = Tool.TextureId game:GetService("ContentProvider"):Preload("rbxasset://icons/insert_sel.png")
local height = 20 local width = UDim.new(0.25, 0) local height = 20 local buttonTransparency = 0.1 local insertButtonTransparency = 0.25 local transparency = 0.25
local selectedButtonColor = Color3.new(.1255, .4078, .1961) local selectedButtonTextColor = Color3.new(1.0,1.0,1.0)
local buttonColor = Color3.new(0.0898, 0.2148, .2344) local buttonTextColor = Color3.new(1.0,1.0,1.0)
local frameColor = Color3.new(.1255, .4078, .1961) local frameTextColor = Color3.new(1.0,1.0,1.0)
local titleColor = Color3.new(0.6289, 0.8398, 0) local titleTextColor = Color3.new(0.0,0.0,0.0)
local Window local Data local Mouse
local SetCache = {}
local soloGame = game:FindFirstChild("NetworkClient") == nil
--Constants local useAssetVersionId = true local BaseUrl = "http://www.roblox.com/" local ThumbnailUrl; if useAssetVersionId then ThumbnailUrl = BaseUrl .. "Game/Tools/ThumbnailAsset.ashx?fmt=png&wd=110&ht=110&assetversionid=" else ThumbnailUrl = BaseUrl .. "Game/Tools/ThumbnailAsset.ashx?fmt=png&wd=110&ht=110&aid=" end
local InsertRows = 4 local InsertColumns = 8
--Static variables used for creating sizes function getPlayer() local character = script.Parent.Parent return game.Players:GetPlayerFromCharacter(character) end
function minimize() if Window.Stamp.Frame.Visible then cancelAssetPlacement() elseif Window.Main.Frame.Visible then Window.Main.Frame.Visible = false Window.Minimized.Frame.Visible = true end end
function buildImageButton(image) local buttonFrame = Instance.new("Frame") buttonFrame.BackgroundTransparency = 1.0
local button = Instance.new("ImageButton") button.Name = "Button" button.Parent = buttonFrame button.Image = image button.Size = UDim2.new(1.0, 0, 1.0, 0) button.Position = UDim2.new(0.0, 0, 0.0, 0) button.BorderSizePixel = 1 button.Parent = buttonFrame button.BackgroundTransparency = 0 return buttonFrame
end function buildTextButton(text)
local buttonFrame = Instance.new("Frame") buttonFrame.BackgroundTransparency = 1.0 local button = Instance.new("TextButton") button.Name = "Button" button.Parent = buttonFrame button.Text = text button.Size = UDim2.new(1.0, 0, 1.0, 0) button.TextWrap = true button.Position = UDim2.new(0.0, 0, 0.0, 0) button.BorderSizePixel = 1 button.BackgroundTransparency = buttonTransparency button.Parent = buttonFrame return buttonFrame end
function mouseEnterInsertButton(insertFrame) if insertFrame ~= Data.CurrentRolloverInsertButton then
----------------------------------- How can the script do Data.CurrentRolloverInsertButton is the local Data variable is never assigned... is this an automatic thing? I'm trying to make my own insert gui and I'm exploring data and services, any help is greatly appreciated. I'm working with ThePirateLily and slickboy777, you can see our game here
------------------------ game: http://www.roblox.com/ROBLOX-mod-place?id=164986858 ------------------------
Just press the q key when you enter to see the building gui so far |
|
|
| Report Abuse |
|
| |
| |