Beispiel #1
0
 public AppearanceEditorUI(ButtonBar original)
 {
     this.original = original;
     appBar        = (AppearanceBar)original.Appearance.Bar.Clone();
     appItem       = (AppearanceItem)original.Appearance.Item.Clone();
     InitializeComponent();
     pgrdBar.SelectedObject  = original.Appearance.Bar;
     pgrdItem.SelectedObject = original.Appearance.Item;
     lbxTemplate.Items.AddRange(new object[]
     {
         Resources.THEME_VS2005,
         Resources.THEME_CLASSIC,
         Resources.THEME_BLUE,
         Resources.THEME_OLIVE,
         Resources.THEME_ROYAL,
         Resources.THEME_SILVER
     });
     lbxTemplate.SelectedIndex = 0;
     bBar.Appearance.Bar.Assign(appBar);
     bBar.Appearance.Item.Assign(appItem);
     bBar.ThemeProperty.UseTheme = false;
     bBar.SetThemeDefaults();
     bBar.RefreshControl();
     lblCurrentStyle.Text   = Resources.LBL_CURRENT_STYLE;
     lblApply.Text          = Resources.LNK_APPLYTHEME;
     lblAvailableTheme.Text = Resources.LBL_AVAILABLE_THEME;
     lblLoad.Text           = Resources.LNK_LOAD;
     lblPreview.Text        = Resources.LBL_PREVIEW;
     lblReload.Text         = Resources.LNK_RELOAD;
     lblReset.Text          = Resources.LNK_RESET;
     lblSave.Text           = Resources.LNK_SAVETHEME;
     Text = Resources.FORM_TEXT;
 }
Beispiel #2
0
 public CharacterStyle()
 {
     Gender  = 0;
     Parents = new ParentData(0, 0, 1.0f, 1.0f);
     for (int i = 0; i < Features.Length; i++)
     {
         Features[i] = 0f;
     }
     for (int i = 0; i < Appearance.Length; i++)
     {
         Appearance[i] = new AppearanceItem(255, 1.0f);
     }
     Hair = new HairData(0, 0, 0);
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BarItem"/> class with Specified owner of <see cref="BarItem"/>
 /// </summary>
 /// <param name="owner"></param>
 public BarItem(ButtonBar owner)
 {
     this.owner  = owner;
     caption     = GetCaption();
     enabled     = true;
     Height      = 0;
     imageIndex  = -1;
     MouseDown   = false;
     MouseOver   = false;
     selected    = false;
     Top         = 0;
     tag         = null;
     toolTipText = caption;
     appearance  = new AppearanceItem();
     appearance.AppearanceChanged += OnAppearanceChanged;
 }
Beispiel #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BarItem"/> class.
 /// </summary>
 public BarItem()
 {
     caption     = string.Empty;
     enabled     = true;
     Height      = 0;
     imageIndex  = -1;
     MouseDown   = false;
     MouseOver   = false;
     owner       = null;
     selected    = false;
     Top         = 0;
     tag         = null;
     toolTipText = string.Empty;
     appearance  = new AppearanceItem();
     appearance.AppearanceChanged += OnAppearanceChanged;
     showBorder = ShowBorder.Inherit;
 }