void UpdateText() { if (textMesh != null) { textMesh.SetText(Text); textMesh.SetColor(IsEditing ? ActiveTextColor : TextColor); } }
void UpdateText() { if (textMesh != null) { textMesh.SetText(Text); textMesh.SetColor(TextColor); } }
void UpdateText() { if (bgMesh != null) { bgMesh.SetColor(BackgroundColor); } if (textMesh != null) { textMesh.SetColor((Enabled) ? TextColor : DisabledTextColor); textMesh.SetText(Text); } }
void UpdateText() { if (bgMesh != null) { bgMesh.SetColor(BackgroundColor); } if (textMesh != null) { textMesh.SetColor(TextColor); textMesh.SetText(Text); } if (titleTextMesh != null) { titleTextMesh.SetColor(TitleTextColor); titleTextMesh.SetText(TitleText); } }
void UpdateText() { if (button == null) { return; } if (labelMesh == null && text.Length > 0) { labelMesh = GameObjectFactory.CreateTextMeshGO( "label", Text, TextColor, TextHeight, BoxPosition.Center, SceneGraphConfig.TextLabelZOffset); BoxModel.Translate(labelMesh, Vector2f.Zero, this.Bounds2D.Center); AppendNewGO(labelMesh, button, false); } if (labelMesh != null) { labelMesh.SetColor(TextColor); labelMesh.SetText(Text); } }