Ejemplo n.º 1
0
    private void UpdateToolInfo(string identifier)
    {
        string mode     = editMode.ToString();
        string category = (editMode == EditMode.Creation) ? creationMode.ToString() : (editMode == EditMode.Selection) ? selectionMode.ToString() : "NULL";
        string color    = ((ColI)activeColor).ToString();
        string material = ((MatI)activeMegaMaterial).ToString();

        if (selectionMode == SelectionMode.Effect)
        {
            material = "NULL";
        }

        if (creationMode == CreationMode.Obstacle || creationMode == CreationMode.Item || creationMode == CreationMode.Entity)
        {
            color    = "NULL";
            material = "NULL";
        }

        ToolInfo.UpdateModeLabel(mode);
        ToolInfo.UpdateCategoryLabel(category);
        ToolInfo.UpdateIdentifierLabel(identifier);
        ToolInfo.UpdateColorLabel(color);
        ToolInfo.UpdateMaterialLabel(material);
    }