当前位置: 首页>>代码示例>>C#>>正文


C# SuperGumpLayout.Remove方法代码示例

本文整理汇总了C#中SuperGumpLayout.Remove方法的典型用法代码示例。如果您正苦于以下问题:C# SuperGumpLayout.Remove方法的具体用法?C# SuperGumpLayout.Remove怎么用?C# SuperGumpLayout.Remove使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SuperGumpLayout的用法示例。


在下文中一共展示了SuperGumpLayout.Remove方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: CompileLayout

        protected override void CompileLayout(SuperGumpLayout layout)
        {
            base.CompileLayout(layout);

            layout.Remove("html/body/info");

            layout.Remove("background/body/base");
            layout.Remove("background/header/base");

            layout.Remove("label/header/title");

            layout.Add("background/body/base1", () => AddBackground(28, 0, Width, 150, 9270));

            layout.AddReplace("image/body/icon", () => AddImage(42, 47, Icon));

            layout.Add("image/body/doodad", () => AddImage(0, 6, 1227));

            layout.Add("image/body/waxseal", () => AddImage(57, 123, 9005));

            layout.Add(
                "label/body/content",
                () =>
                {
                    AddLabel(116, 54, 2049, "Would you like to join the queue");
                    AddLabel(116, 75, 2049, "for this battle?");
                });

            layout.Add("background/header/base1", () => AddBackground(28, 0, Width, 40, 9270));

            layout.Add("label/header/title1", () => AddLabel(44, 10, 52, Title));

            layout.AddReplace(
                "button/header/cancel",
                () =>
                {
                    AddButton(295, 6, 2640, 2641, OnCancel);
                    AddTooltip(1006045);
                });

            layout.AddReplace(
                "button/body/cancel",
                () =>
                {
                    AddButton(250, 108, 2119, 2120, OnCancel);
                    AddTooltip(1006045);
                });

            layout.AddReplace(
                "button/body/accept",
                () =>
                {
                    AddButton(176, 108, 2128, 2129, OnAccept);
                    AddTooltip(1006044);
                });
        }
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:55,代码来源:GlobalJoin.cs

示例2: CompileLayout

		protected override void CompileLayout(SuperGumpLayout layout)
		{
			base.CompileLayout(layout);

			Width = 275;
			Height = 250;

            //Adds are not displaying properly unless they come before removes
            layout.Add("label/body/title", () => AddLabel(25, 75, 0, Title));

            if (_Value is Title)
            {
                CompileTitleLayout(layout, (Title)_Value);
            }
            else if (_Value is TitleHue)
            {
                CompileHueLayout(layout, (TitleHue)_Value);
            }

			layout.Remove("background/header/base");
			layout.Remove("html/body/info");
			layout.Remove("label/header/title");


			layout.AddReplace("background/body/base", () => AddBackground(0, 50, Width, Height, 5170));

			layout.AddReplace("image/body/icon", () => AddImage(20, 100, Icon));

			layout.AddReplace(
				"button/body/cancel",
				() =>
				{
					AddButton(Width - 90, Height - 10, 4018, 4019, OnCancel);
					AddTooltip(1006045);
				});

			layout.AddReplace(
				"button/body/accept",
				() =>
				{
					AddButton(Width - 50, Height - 10, 4015, 4016, OnAccept);
					AddTooltip(1006044);
				});
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:44,代码来源:ScrollConfirm.cs

示例3: CompileLayout

		protected override void CompileLayout(SuperGumpLayout layout)
		{
			base.CompileLayout(layout);

			layout.Remove("button/body/cancel");
		}
开发者ID:jasegiffin,项目名称:JustUO,代码行数:6,代码来源:ForcePlayerRenameDialog.cs

示例4: CompileLayout

        protected override void CompileLayout(SuperGumpLayout layout)
        {
            base.CompileLayout(layout);

            layout.Remove("html/body/info");

            //Name
            layout.Add(
                "name",
                () =>
                {
                    AddLabel(100, 70, HighlightHue, "Name:");
                    AddBackground(100, 90, 150, 30, 9350);

                    if(LockMode)
                    {
                        AddLabelCropped(102, 100, 150, 20, ErrorHue, TemplateName);
                    }
                    else
                    {
                        AddTextEntryLimited(102, 100, 150, 20, TextHue, TemplateName, 20, (b, t) => TemplateName = t);
                    }
                });

            //Notes
            layout.Add(
                "notes",
                () =>
                {
                    AddLabel(25, 140, HighlightHue, "Notes:");
                    AddBackground(25, 160, 270, 125, 9350);

                    if(LockMode)
                    {
                        AddLabelCropped(27, 165, 265, 125, ErrorHue, TemplateName);
                    }
                    else
                    {
                        AddTextEntryLimited(27, 165, 265, 125, TextHue, TemplateNotes, 1000, (b, t) => TemplateNotes = t);
                    }
                });

            //Str
            layout.Add(
                "stat/str",
                () =>
                {
                    AddLabel(300, 100, HighlightHue, "Str:");
                    AddBackground(328, 100, 40, 20, 9350);

                    if(LockMode)
                    {
                        AddLabelCropped(330, 100, Width - 120, 20, ErrorHue, TemplateName);
                    }
                    else
                    {
                        AddTextEntryLimited(
                            330,
                            100,
                            Width - 120,
                            20,
                            TextHue,
                            TemplateStr.ToString(CultureInfo.InvariantCulture),
                            3,
                            (b, t) =>
                            {
                                int sStr;

                                if(Int32.TryParse(t, out sStr))
                                {
                                    TemplateStr = Math.Max(0, Math.Min(100, sStr));
                                }
                            });
                    }
                });

            //Dex
            layout.Add(
                "stat/dex",
                () =>
                {
                    AddLabel(300, 120, HighlightHue, "Dex:");
                    AddBackground(328, 120, 40, 20, 9350);

                    if(LockMode)
                    {
                        AddLabelCropped(330, 120, Width - 120, 20, ErrorHue, TemplateName);
                    }
                    else
                    {
                        AddTextEntryLimited(
                            330,
                            120,
                            Width - 120,
                            20,
                            TextHue,
                            TemplateDex.ToString(CultureInfo.InvariantCulture),
                            3,
                            (b, t) =>
                            {
//.........这里部分代码省略.........
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:101,代码来源:ManageTemplateGump.cs

示例5: CompileLayout

		protected override void CompileLayout(SuperGumpLayout layout)
		{
			base.CompileLayout(layout);

			layout.Remove("background/body/input");
			layout.Remove("textentry/body/input");

			layout.Add(
				"background/body/input/month",
				() =>
				{
					AddHtml(20, Height - 45, 20, 20, "MM".WrapUOHtmlColor(HtmlColor), false, false);
					AddBackground(50, 250, 40, 30, 9350);
					AddTextEntryLimited(
						55,
						Height - 45,
						30,
						20,
						TextHue,
						0,
						InputDate.HasValue ? InputDate.Value.Month.ToString("D2") : String.Empty,
						2,
						ParseInput);
				});

			layout.Add(
				"background/body/input/day",
				() =>
				{
					AddHtml(100, Height - 45, 20, 20, "DD".WrapUOHtmlColor(HtmlColor), false, false);
					AddBackground(130, 250, 40, 30, 9350);
					AddTextEntryLimited(
						135,
						Height - 45,
						30,
						20,
						TextHue,
						1,
						InputDate.HasValue ? InputDate.Value.Day.ToString("D2") : String.Empty,
						2,
						ParseInput);
				});

			layout.Add(
				"background/body/input/year",
				() =>
				{
					AddHtml(180, Height - 45, 40, 20, "YYYY".WrapUOHtmlColor(HtmlColor), false, false);
					AddBackground(220, 250, 70, 30, 9350);
					AddTextEntryLimited(
						225,
						Height - 45,
						60,
						20,
						TextHue,
						2,
						InputDate.HasValue ? InputDate.Value.Year.ToString("D4") : String.Empty,
						4,
						ParseInput);
				});
		}
开发者ID:Ravenwolfe,项目名称:Core,代码行数:61,代码来源:DateInput.cs

示例6: CompileLayout

		protected override void CompileLayout(SuperGumpLayout layout)
		{
			base.CompileLayout(layout);

			layout.AddReplace(
				"background/header/base",
				() =>
				{
					AddBackground(0, 0, 970, 50, 9270);
					AddImageTiled(10, 10, 950, 30, 2624);
				});

			layout.AddReplace("label/header/close", () => AddLabel(900, 15, 1287, "Close"));

			layout.AddReplace("button/header/minimize", () => AddButton(940, 20, 10740, 10742, Close));

			layout.AddReplace(
				"label/header/winners",
				() => AddLabel(400, 14, HighlightHue, "Winners: " + String.Join(", ", Winners.Select(t => t.Name))));

			if (Minimized)
			{
				return;
			}

			layout.AddReplace("imagetiled/body/spacer", () => AddImageTiled(0, 50, 970, 10, 9274));

			Dictionary<int, KeyValuePair<PlayerMobile, PvPProfileHistoryEntry>> range = GetListRange();

			if (range.Count == 0)
			{
				layout.AddReplace(
					"background/body/base",
					() =>
					{
						AddBackground(0, 55, 960, 820, 9270);
						AddImageTiled(10, 65, 940, 800, 2624);
					});

				layout.Remove("imagetiled/body/vsep/0");
			}
			else
			{
				layout.AddReplace(
					"background/body/base",
					() =>
					{
                        AddBackground(0, 55, 970, 47 + (range.Count * 30), 9270);
						AddImageTiled(10, 65, 950, 25 + (range.Count * 30), 2624);
					});

				layout.Add(
					"sort/header/crystalpoints",
					() => AddButton(
						440,
						70,
						0x7d3,
						0x7d3,
						b =>
						{
							SortType = 6;
							Refresh(true);
						}));

				layout.Add("imagetiled/header/crystalpoints", () => AddImageTiled(440, 70, 130, 24, 2624));

				layout.Add("label/header/crystalpoints", () => AddLabel(440, 70, GetSelectedHue(6), "Crystal Points"));

				layout.Add(
					"sort/header/crystalassaults",
					() => AddButton(
						555,
						70,
						0x7d3,
						0x7d3,
						b =>
						{
							SortType = 7;
							Refresh(true);
						}));

				layout.Add("imagetiled/header/crystalassaults", () => AddImageTiled(555, 70, 130, 24, 2624));

				layout.Add("label/header/crystalassaults", () => AddLabel(555, 70, GetSelectedHue(7), "Crystal Assaults"));

				layout.AddReplace(
					"sort/header/brazierassault",
					() => AddButton(
						680,
						70,
						0x7d3,
						0x7d3,
						b =>
						{
							SortType = 8;
							Refresh(true);
						}));

				layout.AddReplace("imagetiled/header/brazierassault", () => AddImageTiled(680, 70, 130, 24, 2624));

//.........这里部分代码省略.........
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:101,代码来源:BoWBattleOverviewGump.cs


注:本文中的SuperGumpLayout.Remove方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。