lotrointerface.com
Search Downloads

LoTROInterface SVN InstantCosby

[/] [trunk/] [InstantCosby/] [Main.lua] - Blame information for rev 9

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 wawco-3730
import "Turbine.UI"
2 wawco-3730
import "Turbine.UI.Lotro"
3 wawco-3730
import "InstantCosby.InstantCosbyButton"
4 wawco-3730
 
5 wawco-3730
--[[
6 wawco-3730
        create a small window with a button in the corner
7 wawco-3730
                set it to be mostly clear unless moused over
8 wawco-3730
                set it to accept a button click
9 wawco-3730
end constructor
10 wawco-3730
 
11 wawco-3730
show cosby function
12 wawco-3730
        create a huge window with a picture of cosby
13 wawco-3730
        play a cosby sound if possible
14 wawco-3730
]]--
15 wawco-3730
 
16 wawco-3730
buttonWindow = Turbine.UI.Lotro.Window();
17 wawco-3730
buttonWindow:SetPosition( 10, 10 );
18 wawco-3730
buttonWindow:SetSize( 100, 100 );
19 4 wawco-3730
--buttonWindow:SetText( "Instant Cosby" );
20 2 wawco-3730
 
21 wawco-3730
theButton = InstantCosbyButton();
22 wawco-3730
theButton:SetParent ( buttonWindow );
23 wawco-3730
 
24 4 wawco-3730
local windowWidth, windowHeight = buttonWindow:GetSize();
25 wawco-3730
local buttonWidth, buttonHeight = theButton:GetSize();
26 wawco-3730
 
27 wawco-3730
theButton:SetPosition( ( windowWidth - buttonWidth ) / 2 , ( windowHeight - buttonHeight ) /2 );
28 2 wawco-3730
buttonWindow:SetVisible( true );
29 wawco-3730
 

All times are GMT -5. The time now is 10:38 PM.


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