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