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
 

Re: data

Previous Thread :: Next Thread 
dragonkeeper467 is not online. dragonkeeper467
Joined: 24 Jan 2011
Total Posts: 472
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
dragonkeeper467 is not online. dragonkeeper467
Joined: 24 Jan 2011
Total Posts: 472
08 Aug 2014 04:55 PM
bump
Report Abuse
dragonkeeper467 is not online. dragonkeeper467
Joined: 24 Jan 2011
Total Posts: 472
08 Aug 2014 04:59 PM
b2
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
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