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