tag_NoParsing = true;
return true;
case 1913798: //
case 1286342: //
int actionID = m_xmlAttribute[0].valueHashCode;
if (m_isParsingText)
{
m_actionStack.Add(actionID);
Debug.Log("Action ID: [" + actionID + "] First character index: " + m_characterCount);
}
//if (m_isParsingText)
//{
// TMP_Action action = TMP_Action.GetAction(m_xmlAttribute[0].valueHashCode);
//}
return true;
case 7443301: //
case 6815845: //
if (m_isParsingText)
{
Debug.Log("Action ID: [" + m_actionStack.CurrentItem() + "] Last character index: " + (m_characterCount - 1));
}
m_actionStack.Remove();
return true;
case 315682: //
case 226050: //
value = ConvertToFloat(m_htmlTag, m_xmlAttribute[0].valueStartIndex, m_xmlAttribute[0].valueLength);
if (value == -9999) return false;
m_FXMatrix = Matrix4x4.TRS(Vector3.zero, Quaternion.identity, new Vector3(value, 1, 1));
m_isFXMatrixSet = true;
return true;
case 1105611: //
case 1015979: //
m_isFXMatrixSet = false;
return true;
case 2227963: //
case 1600507: //
// TODO: Add ability to use Random Rotation
value = ConvertToFloat(m_htmlTag, m_xmlAttribute[0].valueStartIndex, m_xmlAttribute[0].valueLength);
if (value == -9999) return false;
m_FXMatrix = Matrix4x4.TRS(Vector3.zero, Quaternion.Euler(0, 0, value), Vector3.one);
m_isFXMatrixSet = true;
return true;
case 7757466: //
case 7130010: //
m_isFXMatrixSet = false;
return true;
case 317446: //
case 227814: //
switch (m_xmlAttribute[1].nameHashCode)
{
case 327550: // width
float tableWidth = ConvertToFloat(m_htmlTag, m_xmlAttribute[1].valueStartIndex, m_xmlAttribute[1].valueLength);
switch (tagUnits)
{
case TagUnits.Pixels:
Debug.Log("Table width = " + tableWidth + "px.");
break;
case TagUnits.FontUnits:
Debug.Log("Table width = " + tableWidth + "em.");
break;
case TagUnits.Percentage:
Debug.Log("Table width = " + tableWidth + "%.");
break;
}
break;
}
return true;
case 1107375: //
case 1017743: //
return true;
case 926: //
case 670: //
return true;
case 3229: //
case 2973: //
return true;
case 916: //
case 660: // |
// Set style to bold and center alignment
return true;
case 3219: // |
case 2963: //
return true;
case 912: //
case 656: // |
// Style options
for (int i = 1; i < m_xmlAttribute.Length && m_xmlAttribute[i].nameHashCode != 0; i++)
{
switch (m_xmlAttribute[i].nameHashCode)
{
case 327550: // width
float tableWidth = ConvertToFloat(m_htmlTag, m_xmlAttribute[i].valueStartIndex, m_xmlAttribute[i].valueLength);
switch (tagUnits)
{
case TagUnits.Pixels:
Debug.Log("Table width = " + tableWidth + "px.");
break;
case TagUnits.FontUnits:
Debug.Log("Table width = " + tableWidth + "em.");
break;
case TagUnits.Percentage:
Debug.Log("Table width = " + tableWidth + "%.");
break;
}
break;
case 275917: // align
switch (m_xmlAttribute[i].valueHashCode)
{
case 3774683: // left
Debug.Log("TD align=\"left\".");
break;
case 136703040: // right
Debug.Log("TD align=\"right\".");
break;
case -458210101: // center
Debug.Log("TD align=\"center\".");
break;
case -523808257: // justified
Debug.Log("TD align=\"justified\".");
break;
}
break;
}
}
return true;
case 3215: // |
case 2959: //
return true;
}
}
return false;
}
}
}