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


C# SuperGumpLayout.Add方法代码示例

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


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

示例1: CompileLayout

        protected override void CompileLayout(SuperGumpLayout layout)
        {
            layout.Add(
                "background",
                () =>
                {
                    AddImageTiled(40, 80, 44, 458, 202);
                    AddImage(40, 39, 206);
                    AddImageTiled(80, 38, 422, 45, 201);
                    AddImage(40, 538, 204);
                    AddImageTiled(495, 71, 44, 469, 203);
                    AddImage(496, 39, 207);
                    AddImageTiled(84, 539, 417, 43, 233);
                    AddImageTiled(75, 82, 446, 459, 200);
                    AddImage(171, 16, 1419);
                    AddImage(248, -1, 1417);
                    AddImage(257, 8, 5545);
                    AddImage(496, 538, 205);
                });
            layout.Add("Help",
                () =>
                {
                    AddImageTiled(81, 92, 420, 12, 50);
                    AddHtml(126, 74, 325, 17,
                        String.Format("<BIG>{0}</BIG>", "Ultima Online: Forever Information System")
                            .WrapUOHtmlColor(KnownColor.GhostWhite), false, false);

                    AddImageTiled(81, 104, 404, 413, 2624);
                    AddHtml(86, 103, 414, 413, HTML, false, true);

                    AddImageTiled(81, 518, 420, 12, 50);
                });
        }
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:33,代码来源:CentralGumpInformationUI.cs

示例2: CompileLayout

		protected override void CompileLayout(SuperGumpLayout layout)
		{
            layout.Add("body", () =>
            {
                AddBackground(0, 0, 275, 263, 5170);
                AddImage(24, 29, 23001);
                AddLabel(89, 43, 1271, "UO Forever Skill Scroll");
                AddLabel(24, 88, 0, "This scroll entitles the bearer or one");
                AddLabel(24, 108, 0, "of their pets to:");

                AddImageTiled(74, 151, 120, 2, 2620);
                AddLabel(75, 134, 1258, _SkillScroll.SkillName + ": +" + _SkillScroll.SkillBonus);
                AddItem(37, 134, _SkillScroll.ItemID, _SkillScroll.Hue);

                AddLabel(35, 164, 0, "Who do you wish to use this on?");

                AddLabel(47, 189, 1258, "Yourself?");
                AddButton(58, 211, 4023, 4025, b =>
                {
                    _SkillScroll.ApplySkilltoPlayer(User);
                });

                AddLabel(184, 189, 1258, "A pet?");
                AddButton(188, 211, 4023, 4025, b =>
                {
                    User.Target = new MobileSelectTarget<Mobile>((m, t) => _SkillScroll.GetPet(m, t), m => { });
                });
            });

		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:30,代码来源:SkillScrollUI.cs

示例3: CompileLayout

 protected override void CompileLayout(SuperGumpLayout layout)
 {
     layout.Add(
         "background/main/",
         () =>
         {
             AddBackground(0, 0, 384, 443, 9200);
             AddItem(296, 22, 18491);
             AddItem(296, 65, 18494);
             AddItem(296, 108, 18497);
             AddItem(296, 151, 18515);
             AddLabel(145, 231, 1258, @"The Soulforge");
             AddHtml(5, 251, 372, 190, @"With your skilled eyes, you quickly recognize the runes on the base of the ancient hammer as relating to legends about the Soulforge.  On your journey to hone your crafting skills, you have encountered various books dedicated to discussing this legend.  While most think it a fairy tale, this anicent smithing hammer tells you there may be some credince to the legend after all.  You decide that it may be best to seek out one familiar with the legend of the Soulforge for further guidance.  A good place to start would be the Britain Library.  Perhaps Llewellyn, the Royal Archivist, could be of some assistance.".WrapUOHtmlTag("BIG"), true, true);
             AddItem(296, 194, 18518);
             AddItem(118, 64, 17003);
             AddItem(186, 20, 16996);
             AddItem(140, 20, 16999);
             AddItem(211, 64, 16997);
             AddItem(163, 8, 16995);
             AddItem(164, 32, 17000);
             AddItem(187, 74, 17001);
             AddItem(96, 65, 17007);
             AddItem(141, 74, 17004);
             AddItem(233, 65, 16998);
             AddItem(164, 97, 17005);
             AddItem(210, 72, 17002);
             AddItem(187, 115, 17006);
             AddItem(118, 72, 17008);
             AddItem(141, 116, 17009);
             AddItem(164, 121, 17010);
             AddButton(353, 8, 4017, 4020, OnCancel);
         });
 }
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:33,代码来源:InitialHammer120Skill.cs

示例4: CompileLayout

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

			layout.Add(
				"textentry/body/question",
				() => AddLabelCropped(25, Height - 45, Width - 80, 20, HighlightHue, "Accept or Decline?"));
		}
开发者ID:greeduomacro,项目名称:RuneUO,代码行数:8,代码来源:Invite.cs

示例5: CompileLayout

        protected override void CompileLayout(SuperGumpLayout layout)
        {
            layout.Add(
                "background/main/",
                () =>
                {
                    AddBackground(0, 0, 374, 256, 9380);
                });
            layout.Add(
                "HTML/main/",
                () =>
                {
                    AddHtml(30, 43, 319, 250, String.Format(_Html)
						  .WrapUOHtmlTag("BIG")
						  .WrapUOHtmlColor(Color.DarkRed, false), false, false);
                });
        }
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:17,代码来源:SFScrollUI.cs

示例6: CompileLayout

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

			layout.Add("background/body/input", () => AddBackground(20, Height - 50, Width - 120, 30, 9350));

			layout.Add(
				"textentry/body/input",
				() =>
				{
					if (Limited)
					{
						AddTextEntryLimited(25, Height - 45, Width - 130, 20, TextHue, InputText, Limit, ParseInput);
					}
					else
					{
						AddTextEntry(25, Height - 45, Width - 130, 20, TextHue, InputText, ParseInput);
					}
				});
		}
开发者ID:Ravenwolfe,项目名称:Core,代码行数:20,代码来源:Input.cs

示例7: CompileLayout

        protected override void CompileLayout(SuperGumpLayout layout)
        {
            layout.Add(
                "Main",
                () =>
                {
                    AddBackground(0, 0, 418, 56, 5120);
                    AddBackground(37, 28, 350, 22, 9350);

                    AddHtml(9, 6, 408, 22, string.Format("<BIG><CENTER>{0}</CENTER></BIG>", "View This Hand on Ultima Online: Forever Legends").WrapUOHtmlColor(Color.Gold), false, false);
                    AddHtml(44, 29, 336, 22, string.Format("<CENTER><BIG><A HREF=\"{0}{1}\">{0}{1}</A></BIG></CENTER>", "legends.uoforever.com/pokerhands/".WrapUOHtmlColor(Color.Gold), HandId), false, false);
                });
        }
开发者ID:AdamUOF,项目名称:UOFTexasHoldem,代码行数:13,代码来源:PokerWebsiteGump.cs

示例8: CompileLayout

 protected override void CompileLayout(SuperGumpLayout layout)
 {
     layout.Add(
         "background/main/",
         () =>
         {
             AddBackground(5, 2, 203, 70, 9200);
             AddItem(9, 23, 18491);
             AddItem(41, 25, 18494);
             AddItem(81, 28, 18497);
             AddItem(118, 31, 18515);
             AddItem(155, 28, 18518);
         });
 }
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:14,代码来源:InitialHammerLessThan120Skill.cs

示例9: CompileLayout

		public override void CompileLayout(UOFCentralGump g, SuperGumpLayout layout)
		{
			base.CompileLayout(g, layout);

			if (g == null || layout == null)
			{
				return;
			}

			if (g.Edit)
			{
				layout.Add(
					"page/text",
					() =>
					{
						g.AddImageTiled(120, 160, 410, 200, 2624);
						g.AddButton(
							120,
							160,
							2640,
							2641,
							b =>
							{
								Text = String.Empty;
								g.Refresh(true);
							});
						g.AddTooltip(ButtonIconInfo.GetTooltip(ButtonIcon.Clear));
						g.AddImageTiled(150, 153, 385, 2, 30072);

						if (Background)
						{
							g.AddBackground(150, 160, 380, 200, 9350);
						}

						g.AddTextEntry(155, 165, 370, 190, g.TextHue, Text, (e, t) => Text = t);
					});
			}
			else
			{
				layout.Add(
					"page/text",
					() =>
					{
						string text = Text.ParseBBCode(TextColor.ToColor()).WrapUOHtmlColor(TextColor, false);

						g.AddImageTiled(120, 160, 410, 200, 2624);
						g.AddHtml(125, 165, 400, 190, text, Background, Scrollbar);
					});
			}
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:50,代码来源:TextPage.cs

示例10: CompileLayout

        protected override void CompileLayout(SuperGumpLayout layout)
        {
            layout.Add(
                "background/main/",
                () =>
                {
                    AddImageTiled(50, 20, 400, 400, 2624);
                    AddAlphaRegion(50, 20, 400, 400);

                    AddImage(90, 33, 9005);
                    AddHtml(130, 45, 270, 20, Title.WrapUOHtmlColor(Color.White).WrapUOHtmlTag("BIG"), false, false);
                        // Quest Offer
                    AddImageTiled(130, 65, 175, 1, 9101);

                    AddImage(140, 110, 1209);
                    AddHtml(160, 108, 250, 20, Title.WrapUOHtmlColor(Color.Orange).WrapUOHtmlTag("BIG"),
                        false, false);

                    AddHtml(98, 140, 312, 200, HTML.WrapUOHtmlTag("BIG"), false, true);

                    AddButton(85, 355, 247, 248, OnAccept);
                    AddHtml(157, 356, 280, 20, "I accept!".WrapUOHtmlColor(Color.White), false, false); // I accept!

                    AddButton(85, 385, 241, 243, OnCancel);
                    AddHtml(157, 387, 280, 20, "No thanks, I decline.".WrapUOHtmlColor(Color.White), false, false);
                        // No thanks, I decline.

                    AddImageTiled(50, 29, 30, 390, 10460);
                    AddImageTiled(34, 140, 17, 279, 9263);

                    AddImage(48, 135, 10411);
                    AddImage(-16, 285, 10402);
                    AddImage(0, 10, 10421);
                    AddImage(25, 0, 10420);

                    AddImageTiled(83, 15, 350, 15, 10250);

                    AddImage(34, 419, 10306);
                    AddImage(442, 419, 10304);
                    AddImageTiled(51, 419, 392, 17, 10101);

                    AddImageTiled(415, 29, 44, 390, 2605);
                    AddImageTiled(415, 29, 30, 390, 10460);
                    AddImage(425, 0, 10441);

                    AddImage(370, 50, 1417);
                    AddImage(379, 60, 0x15B5);
                });
        }
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:49,代码来源:NewbieQuestGiverUI.cs

示例11: CompileLayout

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

			layout.Add(
				"everything",
				() =>
				{
					AddImage(628, 14, 10410);
					AddBackground(27, 83, 633, 129, 9200);
					AddAlphaRegion(50, 89, 584, 118);
					AddImageTiled(27, 85, 21, 126, 10464);
					AddImageTiled(636, 85, 21, 126, 10464);
					AddImage(313, 44, 9000);
					AddLabel(60, 92, 1258, @"Ultima Online Forever Action Camera");

					AddLabel(409, 92, 2049, "Current Location:");

					AddLabelCropped(526, 92, 110, 16, 1258, String.IsNullOrWhiteSpace(User.Region.Name) ? "Unknown" : User.Region.Name);

					AddLabel(230, 149, 2049, @"TOTAL KILLS: ");
					AddLabel(335, 149, 137, ActionCams.CurrentDeathCount.ToString("#,0"));

					AddImageTiled(58, 111, 225, 1, 5410);

					AddLabel(62, 165, 2049, @"Total Player Murders: ");
					AddLabel(212, 165, 137, ActionCams.CurrentPlayerMurders.ToString("#,0"));

					AddLabel(62, 188, 2049, @"Top Murderer: ");

					if (ActionCams.TopPlayerMurderer != null)
					{
						AddLabel(155, 188, 137, ActionCams.TopPlayerMurderer.RawName);
					}

					AddLabel(409, 165, 2049, @"Total Monster Murders: ");
					AddLabel(573, 165, 137, ActionCams.CurrentMonsterMurders.ToString("#,0"));

					AddLabel(411, 188, 2049, @"Most Lethal Monster: ");

					if (ActionCams.TopMonsterMurderer != null)
					{
						AddLabelCropped(547, 188, 90, 16, 137, ActionCams.TopMonsterMurderer.RawName);
					}

					AddImage(627, 154, 10412);
				});
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:48,代码来源:ActionCamUI.cs

示例12: CompileLayout

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

			int lineHeight = (NumericHeight / 16),
				lineWidth = (NumericWidth / 9),
				halfHeight = (NumericHeight / 2),
				halfWidth = (NumericWidth / 2),
				eachWidth = (NumericWidth + halfWidth),
				width = 20 + (eachWidth * Numerics.Length),
				height = 20 + NumericHeight;

			layout.Add("background/body/base", () => AddBackground(0, 0, width, height, 9270));

			CompileNumericEntries(layout, width, height, lineHeight, lineWidth, halfHeight, halfWidth, eachWidth);
		}
开发者ID:Ravenwolfe,项目名称:Core,代码行数:16,代码来源:DigitalNumericDisplayGump.cs

示例13: 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

示例14: CompileLayout

        protected override void CompileLayout(SuperGumpLayout layout)
        {
            layout.Add(
                "background/main/",
                () =>
                {
                    AddBackground(0, 0, 384, 492, 9200);
                    AddItem(296, 22, 18491);
                    AddItem(296, 65, 18494);
                    AddItem(296, 108, 18497);
                    AddItem(296, 151, 18515);
                    AddLabel(145, 231, 1258, @"The Soulforge");
                    AddHtml(5, 251, 372, 190,
                        @"With your notepad from Llewellyn in hand, you are able to make out the meaning of the runes at the base of the hammer. The runes state that you are to ground 20 dragonbone shards and mix it into the base materials of the Soulforge.

You are then to take two intact dragon hearts and place them at the center of the forge.

The next step states that you must place both the soul of the Harrower and the soul of the Devourer into the forge.

To complete the arcane construction of the Soulforge, you must throw the heart of Rikktor, the dragon-king, into the forge. But do so at a distance!

If all goes as planned, Rikktor's heart should act as a catalyst and cause the dragon hearts to ignite. The immense heat radiating from the dragon hearts should cause the Harrower's soul to begin slowly emitting some of its dreadful power. The Devourer's soul will soften the raw, untamed power and make it a malleable force to work with when crafting relics in your Soulforge."
                        .WrapUOHtmlTag("BIG"), true, true);
                    AddItem(296, 194, 18518);
                    AddItem(118, 64, 17003);
                    AddItem(186, 20, 16996);
                    AddItem(140, 20, 16999);
                    AddItem(211, 64, 16997);
                    AddItem(163, 8, 16995);
                    AddItem(164, 32, 17000);
                    AddItem(187, 74, 17001);
                    AddItem(96, 65, 17007);
                    AddItem(141, 74, 17004);
                    AddItem(233, 65, 16998);
                    AddItem(164, 97, 17005);
                    AddItem(210, 72, 17002);
                    AddItem(187, 115, 17006);
                    AddItem(118, 72, 17008);
                    AddItem(141, 116, 17009);
                    AddItem(164, 121, 17010);
                    AddLabel(16, 456, 1258, "Craft the Soulforge?");
                    AddButton(235, 455, 247, 248, OnAccept);
                    AddButton(316, 455, 241, 243, OnCancel);
                    AddButton(353, 8, 4017, 4020, OnCancel);
                });
        }
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:46,代码来源:SoulForgeFinished.cs

示例15: 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


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