All pastes #97892 Raw Edit

Tem

public lua v1 · immutable
#97892 ·published 2006-07-24 04:39 UTC
rendered paste body
local AceOO = AceLibrary("AceOO-2.0")local AceGUI = AceLirary("AceGUI-2.0")local AceGUIBase = AceOO.Class()AceGUIBase.virtual = truelocal old_new = AceGUIBase.newAceGUIBase.new = function(self,def,)    local tmp = old_new(self,def)    local o = CreateFrame(self.UIObjectType)    for k,v in pairs(o) do        o[k] = v    end    local index = getmetatable(tmp).__index    local frame_index = __framescript_meta.__index    return setmetatable(o,{__index = function(t,k)        return index(t,k) or frame_index(t,k)    end})end