12-01-2010, 08:35 PM
|
The Undying
|
|
Join Date: Nov 2010
Posts: 30
|
|
Tried reviewing this file more than a few hours and even rebuilt it several time just in case.
FrameworkReportWindow.lua
Quote:
import "Turbine";
import "Turbine.UI";
import "Turbine.UI.Extensions";
import "Turbine.UI.Lotro";
FrameworkReportWindow = class( Turbine.UI.Extensions.SimpleWindow );
function FrameworkReportWindow:Constructor()
Turbine.UI.Extensions.Window.Constructor( self );
local edgePadding = 25;
self:SetSize( 400, 400 );
self:SetPosition( Turbine.UI.Display.GetWidth() - self:GetWidth() - edgePadding, Turbine.UI.Display.GetHeight() - self:GetHeight() - edgePadding * 1.5 );
self:SetBackColor( Turbine.UI.Color( .5, 0.0, 0.0, 1.0) );
self:SetText( "Framework Report Window" );
self:SetOpacity( 1.0 );
self:SetFadeSpeed( 1.0 );
self:MouseEnter = function( sender, args )
sender:SetOpacity( 1.0 );
end
self:MouseLeave = function( sender, args )
sender:SetOpacity( 0.0 );
end
self.listNamespace = Turbine.UI.ListBox();
self.listNamespace:SetParent( self );
self.listNamespace:SetPosition( 25, 5 );
self.listNamespace:SetSize( 100, 15 );
self.listNamespace:SetVisible( true );
self.listClass = Turbine.UI.ListBox();
self.listClass:SetParent( self );
self.listClass:SetPosition( 150, 5 );
self.listClass:SetSize( 100, 15 );
self.listClass:SetVisible( true );
self.scrollBar = Turbine.UI.Lotro.ScrollBar();
self.scrollBar:SetParent( self );
self.scrollBar:SetOrientation( Turbine.UI.Orientation.Vertical );
self.scrollBar:SetPosition( 375, 0 );
self.scrollBar:SetSize( 25, 400 );
self.scrollBar:SetVisible( true );
self.textBox = Turbine.UI.Lotro.TextBox();
self.textBox:SetParent( self );
self.textBox:SetMultiline( true );
self.textBox:SetReadOnly( true );
self.textBox:SetPosition( 25, 30 );
self.textBox:SetWidth( 350 );
self.textBox:SetVerticalScrollBar( self.scrollBar )
self.textBox:SetVisible( true );
self:Refresh();
end
function FrameworkReportWindow:Refresh()
self:PerformLayout();
end
function FrameworkReportWindow:PerformLayout()
self:Layout( { } );
end
function FrameworkReportWindow:Layout( args )
local width, height = self:GetSize();
end
|
Last edited by goldbishop : 12-01-2010 at 08:55 PM.
Reason: Left the Window section of the filename off.
|