|
|
@ -31,8 +31,9 @@ function log.createinfobox( logdata, parent ) |
|
|
|
header.w, header.h = header:GetSize() |
|
|
|
header.w, header.h = header:GetSize() |
|
|
|
header:SetPos( box.x, ( box.y - header.h ) - padding/2 ) |
|
|
|
header:SetPos( box.x, ( box.y - header.h ) - padding/2 ) |
|
|
|
header.Think = function( self ) |
|
|
|
header.Think = function( self ) |
|
|
|
if( logdata[Quantum.Client.Cam.Temp.scene_index] ~= nil ) then |
|
|
|
if( Quantum.Client.Cam.Temp != nil ) then |
|
|
|
if( logdata[Quantum.Client.Cam.Temp.scene_index].title ~= nil ) then |
|
|
|
if( logdata[Quantum.Client.Cam.Temp.scene_index] != nil ) then |
|
|
|
|
|
|
|
if( logdata[Quantum.Client.Cam.Temp.scene_index].title != nil ) then |
|
|
|
self:SetVisible( true ) |
|
|
|
self:SetVisible( true ) |
|
|
|
self:SetText( logdata[Quantum.Client.Cam.Temp.scene_index].title ) |
|
|
|
self:SetText( logdata[Quantum.Client.Cam.Temp.scene_index].title ) |
|
|
|
surface.SetFont( self:GetFont() ) |
|
|
|
surface.SetFont( self:GetFont() ) |
|
|
@ -41,6 +42,7 @@ function log.createinfobox( logdata, parent ) |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
end |
|
|
|
header.Paint = function( self ) |
|
|
|
header.Paint = function( self ) |
|
|
|
theme.sharpblurpanel( self ) |
|
|
|
theme.sharpblurpanel( self ) |
|
|
|
end |
|
|
|
end |
|
|
@ -70,10 +72,12 @@ function log.createinfobox( logdata, parent ) |
|
|
|
text:SetPos( scroll.w/2 - text.w/2, 0 ) |
|
|
|
text:SetPos( scroll.w/2 - text.w/2, 0 ) |
|
|
|
|
|
|
|
|
|
|
|
text.Think = function( self ) |
|
|
|
text.Think = function( self ) |
|
|
|
if( logdata[Quantum.Client.Cam.Temp.scene_index] ~= nil ) then |
|
|
|
if( Quantum.Client.Cam.Temp != nil ) then |
|
|
|
|
|
|
|
if( logdata[Quantum.Client.Cam.Temp.scene_index] != nil ) then |
|
|
|
self:SetText( logdata[Quantum.Client.Cam.Temp.scene_index].text ) |
|
|
|
self:SetText( logdata[Quantum.Client.Cam.Temp.scene_index].text ) |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
return box |
|
|
|
return box |
|
|
|
end |
|
|
|
end |
|
|
|