Esempio n. 1
0
        public MovieActionPaint(int startFrame, int endFrame, string button, bool newS, TasMovie movie)
        {
            _newState   = newS ? 1 : 0;
            FirstFrame  = startFrame;
            LastFrame   = endFrame;
            _buttonName = button;
            _oldState   = new List <float>(endFrame - startFrame + 1);

            for (int i = 0; i < endFrame - startFrame + 1; i++)
            {
                _oldState.Add(movie.BoolIsPressed(startFrame + i, button) ? 1 : 0);
            }
        }
        public MovieActionPaint(int startFrame, int endFrame, string button, float newS, TasMovie movie)
        {
            newState   = newS;
            FirstFrame = startFrame;
            LastFrame  = endFrame;
            buttonName = button;
            isFloat    = true;
            oldState   = new List <float>(endFrame - startFrame + 1);

            for (int i = 0; i < endFrame - startFrame + 1; i++)
            {
                oldState.Add(movie.BoolIsPressed(startFrame + i, button) ? 1 : 0);
            }
        }
Esempio n. 3
0
		public MovieActionPaint(int startFrame, int endFrame, string button, float newS, TasMovie movie)
		{
			newState = newS;
			FirstFrame = startFrame;
			LastFrame = endFrame;
			buttonName = button;
			isFloat = true;
			oldState = new List<float>(endFrame - startFrame + 1);

			for (int i = 0; i < endFrame - startFrame + 1; i++)
				oldState.Add(movie.BoolIsPressed(startFrame + i, button) ? 1 : 0);
		}