Exemple #1
0
 /// <summary>
 /// Called by framework. Do not call directly.
 /// </summary>
 public override void OnAwake()
 {
     base.OnAwake();
     Background.Color        = Color.Black.WithAlpha(0.75f);
     RectTransform.Size      = new Point(0, 17);
     RectTransform.Alignment = Alignment.Top;
     RectTransform.Spacing   = new Rect(0, 0, 1, 1);
     Text        = AddComponent <Text>();
     Text.Height = 15;
     Text.Offset = new Point(2, 1);
     Ctrl        = AddComponent <PasswordCtrl>();
 }
 private void Window_OnLoaded(object sender, RoutedEventArgs e)
 {
     PasswordCtrl.Focus();
 }