Example #1
0
 /// <summary>
 ///   Constructor setting the icon display type, icon size, cell count per axis and the
 ///   width of the pointer.
 /// </summary>
 /// <param name="iconsize">
 ///   The size of each icon.
 /// </param>
 /// <param name="cells">
 ///   The amount of cells displayed per axis.
 /// </param>
 public Settings(IconDisplayType display, uint iconsize = 128, Vector2u?cells = null)
 {
     DisplayType       = display;
     IconSize          = iconsize;
     GridCells         = cells ?? new Vector2u(3, 3);
     ShowFileExtention = true;
     ScrollSpeed       = iconsize * 2;
 }
Example #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (Tooltip.Length != 0)
            {
                hash ^= Tooltip.GetHashCode();
            }
            if (Percentage != false)
            {
                hash ^= Percentage.GetHashCode();
            }
            if (ShowUi != false)
            {
                hash ^= ShowUi.GetHashCode();
            }
            if (StatName.Length != 0)
            {
                hash ^= StatName.GetHashCode();
            }
            if (DisplayThreshold != 0)
            {
                hash ^= DisplayThreshold.GetHashCode();
            }
            if (IconDisplayType.Length != 0)
            {
                hash ^= IconDisplayType.GetHashCode();
            }
            if (InfoDesc.Length != 0)
            {
                hash ^= InfoDesc.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }