View Single Post
  #7  
Unread 12-01-2010, 09:41 PM
goldbishop goldbishop is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Nov 2010
Posts: 30
Quote:
Originally Posted by Digital_Utopia
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
Think of those as stationary templates....till i get to the point of actually implementation.
Reply With Quote