CEngineSharp_Editor.NpcEditor.NpcEditor C# (CSharp) Method

NpcEditor() public method

public NpcEditor ( string dataPath ) : System
dataPath string
return System
        public NpcEditor(string dataPath)
        {
            InitializeComponent();
            this.dataPath = dataPath;

            this.npcTextureScrollBar.Minimum = 0;

            this.npcTextureScrollBar.LargeChange = 1;

            this.npcTextureScrollBar.Maximum = (new DirectoryInfo(Constants.FILEPATH_GRAPHICS + "/Characters/")).GetFiles("*.png").Length - 1;

            this.npcSpriteDisplay = new RenderWindow(this.npcSpritePic.Handle);
            this.npcSpriteDisplay.SetActive(false);

            this.LoadNpcs();

            this.exiting = false;

            new Thread(this.NpcAnimationLogic).Start();
        }