View Single Post
  #5  
Unread 12-01-2010, 09:21 PM
Digital_Utopia's Avatar
Digital_Utopia Digital_Utopia is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Sep 2010
Posts: 207
Quote:
Originally Posted by goldbishop
Tried reviewing this file more than a few hours and even rebuilt it several time just in case.

FrameworkReportWindow.lua
Most of it looks alright, but the following has got me scratching my head (in yellow)

Code:
function FrameworkReportWindow:Refresh()
self:PerformLayout();
end

function FrameworkReportWindow:PerformLayout()
self:Layout( { } );
end

function FrameworkReportWindow:Layout( args )
local width, height = self:GetSize();
end
When you make functions inside a class, they're generally made like so:

Code:
function self:Refresh()
     self:PerformLayout();
end
__________________

Lord of the Rings Online
75 Fourohfour | 75 Artemedis | 60 Whiskeytango Foxtrot | 50 Mistah Boombastic | 56 Appetizer | 25 Aggromi
61 Onepointtwentyone Gigawatts


World of Warcraft
90 Downlo 85 Gravetaxi 85 Ümad 85 Artemedis 85 Guthuros
Reply With Quote