Panel:RebuildSpawnIconEx
Description
Re-renders a spawn icon with customized cam data.
PositionSpawnIcon can be used to easily calculate the necessary camera parameters.
This function does not accept the standard Structures/CamData.
Arguments
Example
The RenderIcon
method used by IconEditor. SpawnIcon
is a SpawnIcon and ModelPanel
is a DAdjustableModelPanel.
function PANEL:RenderIcon()
local ent = self.ModelPanel:GetEntity()
local tab = {}
tab.ent = ent
tab.cam_pos = self.ModelPanel:GetCamPos()
tab.cam_ang = self.ModelPanel:GetLookAng()
tab.cam_fov = self.ModelPanel:GetFOV()
self.SpawnIcon:RebuildSpawnIconEx( tab )
end