예제 #1
0
		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;
			}
		}
예제 #2
0
 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;
     }
 }