Ejemplo n.º 1
0
        protected virtual void CompileOptionLayout(
            SuperGumpLayout layout,
            int index,
            int x,
            int y,
            int w,
            int h,
            NotifyGumpOption option)
        {
            layout.Add(
                "opts/" + index,
                () =>
            {
                AddHtmlButton(
                    x,
                    y,
                    w,
                    h,
                    b =>
                {
                    if (option.Callback != null)
                    {
                        option.Callback(b);
                    }

                    Refresh();
                },
                    option.Label.GetString(User),
                    option.LabelColor,
                    option.FillColor,
                    option.BorderColor,
                    1);
            });
        }
Ejemplo n.º 2
0
		protected virtual void CompileOptionLayout(
			SuperGumpLayout layout,
			int index,
			int x,
			int y,
			int w,
			int h,
			NotifyGumpOption option)
		{
			layout.Add(
				"opts/" + index,
				() =>
				{
					AddHtmlButton(
						x,
						y,
						w,
						h,
						b =>
						{
							if (option.Callback != null)
							{
								option.Callback(b);
							}

							Refresh();
						},
						option.Label.GetString(User),
						option.LabelColor,
						option.FillColor,
						option.BorderColor,
						1);
				});
		}