public ScriptEntityComboBoxItem(ScriptEntityComboBox parent, IScriptEntity entity) : base(entity.Name, parent.Font, parent.ForeColor, GodLesZ.Library.Controls.EImageComboBoxTextAlign.Right) { if (entity.Type == EScriptEnityType.ScriptNpc) { ImageIndex = 2; } else if (entity.Type == EScriptEnityType.Monster || entity.Type == EScriptEnityType.BossMonster) { ImageIndex = 3; } else if (entity.Type == EScriptEnityType.ScriptFunctionAbstract) { ImageIndex = 1; } else if (entity.Type == EScriptEnityType.ScriptFunctionInline) { ImageIndex = 0; } }