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); }
public void SetActiveColor(int index) { activeColor = index; ToolInfo.UpdateColorLabel(((ColI)index).ToString()); }