View Single Post
  #17  
Unread 06-05-2014, 04:55 AM
Digpoe Digpoe is offline
The Undefeated
Interface Author - Click to view interfaces
 
Join Date: May 2014
Posts: 7
Quote:
Originally Posted by Evendale
What bloat was in CA? I think it was pretty efficient tbh (for the amount of data reported)
Well, it wasn't as much bloated, but more just simply all over the place. I had a hard time finding out how some basic features like the Gui worked.
Right now, the new code is split into four scripts as of right now, most of which is just my way of setting up chat parsing and a custom Gui class for creating the interface.
Here's some snippets of code, the things which you can do with it:

Code:
main = Gui.new("Window")
main.Rect = {X=10, Y=10, Width=100, Height=100}
main.BackgroundTransparency = 0.5 -- sets the background transparency (not opacity, it uses the alpha channel)
main.BackgroundColor = Turbine.UI.Color(1, 0, 1) -- sets the colour. Not sure if it retains transparency though.

local a = Gui.new("Label")
a.Name = "TextLabel"
a.Parent = main

main.TextLabel.Text = "Hello World!"

main.Visible = true
__________________
Some kiddo who knows Lua
Reply With Quote