Esempio n. 1
0
void EditMatrixControl::TextFieldShouldReturn(UITextField * textField)
{
    if (textFieldBackground->GetParent())
    {
        String value = WStringToString(textField->GetText());
        if ((editI != -1) && (editJ != -1))
        {
            matrix._data[editI][editJ] = (float32)atof(value.c_str());
            editI = editJ = -1;
        }
        
        RemoveControl(textFieldBackground);
        RemoveControl(textField);
        
        OnMatrixChanged(this, 0);
        
        SetMatrix(matrix);
    }
}
Esempio n. 2
0
		void CObject::SetLocalRotationZ(const float& rot)
		{
			this->m_cMatLocal.SetRotationZ(rot);
			OnMatrixChanged();
		}
Esempio n. 3
0
		void CObject::SetLocalScale(const float& x, const float& y)
		{
			this->m_cMatLocal.SetScale(x, y);
			OnMatrixChanged();
		}
Esempio n. 4
0
		void CObject::SetLocalPosXY(const float& x, const float& y)
		{
			this->m_cMatLocal.SetPosition(x, y);
			OnMatrixChanged();
		}
Esempio n. 5
0
		void CObject::SetLocalPosX(const float& x)
		{
			this->m_cMatLocal.SetPositionX(x);
			OnMatrixChanged();
		}
Esempio n. 6
0
		void CObject::SetLocalMatrix(const Math::CMatrix2D& mat)
		{
			m_cMatLocal = mat;
			OnMatrixChanged();
		}