lotrointerface.com
Search Downloads

LoTROInterface SVN InstantCosby

[/] [trunk/] [InstantCosby/] [Main.lua] - Rev 9

Compare with Previous | Blame | View Log

import "Turbine.UI"
import "Turbine.UI.Lotro"
import "InstantCosby.InstantCosbyButton"

--[[
        create a small window with a button in the corner
                set it to be mostly clear unless moused over
                set it to accept a button click
end constructor

show cosby function
        create a huge window with a picture of cosby
        play a cosby sound if possible
]]--

buttonWindow = Turbine.UI.Lotro.Window();
buttonWindow:SetPosition( 10, 10 );
buttonWindow:SetSize( 100, 100 );
--buttonWindow:SetText( "Instant Cosby" );

theButton = InstantCosbyButton();
theButton:SetParent ( buttonWindow );

local windowWidth, windowHeight = buttonWindow:GetSize();
local buttonWidth, buttonHeight = theButton:GetSize();

theButton:SetPosition( ( windowWidth - buttonWidth ) / 2 , ( windowHeight - buttonHeight ) /2 );
buttonWindow:SetVisible( true );

Compare with Previous | Blame


All times are GMT -5. The time now is 01:37 PM.


Our Network
EQInterface | EQ2Interface | Minion | WoWInterface | ESOUI | LoTROInterface | MMOUI | Swtorui