示例#1
0
		public ProgressBarGump(
			Mobile user,
			Gump parent = null,
			int? x = null,
			int? y = null,
			int? w = null,
			int? h = null,
			string text = null,
			double max = 100,
			double value = 0,
			bool displayPercent = true,
			ProgressBarFlow? flow = null,
			Action<ProgressBarGump, double> valueChanged = null)
			: base(user, parent, x, y)
		{
			Width = w ?? DefaultWidth;
			Height = h ?? DefaultHeight;

			BackgroundID = DefaultBackgroundID;
			ForegroundID = DefaultForegroundID;

			Padding = DefaultPadding;

			TextColor = DefaultHtmlColor;
			Text = text ?? DefaultText;

			DisplayPercent = displayPercent;
			Flow = flow ?? DefaultFlow;
			ValueChanged = valueChanged;

			_MaxValue = max;
			_Value = value;

			ForceRecompile = true;
		}
示例#2
0
		public ProgressBarGump(
			Mobile user,
			string text,
			double max,
			double value = 0,
			bool displayPercent = true,
			ProgressBarFlow? flow = null,
			Action<ProgressBarGump, double> valueChanged = null)
			: this(user, null, null, null, null, null, text, max, value, displayPercent, flow, valueChanged)
		{ }