Inheritance: ICellAppearance
Beispiel #1
0
 public GameObject()
 {
     Settings = new List<Setting>();
     Character = new CellAppearance();
     Character.CharacterIndex = 1;
     Name = "New";
 }
Beispiel #2
0
 /// <summary>
 /// Creates a new instance of the ColoredString class with the specified string value, foreground and background colors, and a cell effect.
 /// </summary>
 /// <param name="value">The backing string.</param>
 /// <param name="appearance">The appearance to use for each character.</param>
 public ColoredString(string value, CellAppearance appearance) : this(value, appearance.Foreground, appearance.Background, appearance.SpriteEffect)
 {
 }
Beispiel #3
0
        public void RefreshTool()
        {
            lineStyle = new CellAppearance(CharacterPickPanel.SharedInstance.SettingForeground,
                                              CharacterPickPanel.SharedInstance.SettingBackground,
                                              CharacterPickPanel.SharedInstance.SettingCharacter,
                                              CharacterPickPanel.SharedInstance.SettingMirrorEffect);

            lineStyle.CopyAppearanceTo(lineCell);
        }
Beispiel #4
0
 public void RefreshTool()
 {
     borderAppearance = new CellAppearance(CharacterPickPanel.SharedInstance.SettingForeground,
                            CharacterPickPanel.SharedInstance.SettingBackground,
                            CharacterPickPanel.SharedInstance.SettingCharacter,
                            CharacterPickPanel.SharedInstance.SettingMirrorEffect);
 }
Beispiel #5
0
 /// <summary>
 /// Creates a new instance of the ColoredString class with the specified string value, foreground and background colors, and a cell effect.
 /// </summary>
 /// <param name="value">The backing string.</param>
 /// <param name="appearance">The appearance to use for each character.</param>
 public ColoredString(string value, CellAppearance appearance) : this(value, appearance.Foreground, appearance.Background, null)
 {
 }