Пример #1
0
 void UpdateText()
 {
     if (textMesh != null)
     {
         textMesh.SetText(Text);
         textMesh.SetColor(IsEditing ? ActiveTextColor : TextColor);
     }
 }
Пример #2
0
 void UpdateText()
 {
     if (textMesh != null)
     {
         textMesh.SetText(Text);
         textMesh.SetColor(TextColor);
     }
 }
Пример #3
0
 void UpdateText()
 {
     if (bgMesh != null)
     {
         bgMesh.SetColor(BackgroundColor);
     }
     if (textMesh != null)
     {
         textMesh.SetColor((Enabled) ? TextColor : DisabledTextColor);
         textMesh.SetText(Text);
     }
 }
Пример #4
0
 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);
     }
 }
Пример #5
0
        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);
            }
        }