• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# SuperGumpLayout类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

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


示例2: CompileLayout

 protected override void CompileLayout(SuperGumpLayout layout)
 {
     AddBackground(685, 527, 122, 53, 9200);
     AddAlphaRegion(690, 534, 111, 39);
     AddLabel(695, 533, 137, @"Champion Score:");
     AddLabel(695, 552, 1258, _Score.ToString());
 }
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:7,代码来源:ScoreGump.cs


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


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


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


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


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

		protected virtual void CompileNumericEntries(
			SuperGumpLayout layout,
			int width,
			int height,
			int lineHeight,
			int lineWidth,
			int halfHeight,
			int halfWidth,
			int eachWidth)
		{
			for (int idx = 0; idx < Numerics.Length; idx++)
			{
				CompileNumericEntry(
					layout, lineHeight, lineWidth, halfHeight, halfWidth, idx, Numerics[idx], 10 + (eachWidth * idx), 10);
			}
		}
开发者ID:greeduomacro,项目名称:RuneUO,代码行数:16,代码来源:DigitalNumericDisplayGump.cs


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


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


示例16: CompileLayout

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

			if(Minimized)
			{
				return;
			}

			layout.AddReplace(
				"background/body/base",
				() =>
				{
					AddBackground(0, 55, 420, 210, 9270);
					AddImageTiled(10, 65, 400, 190, 2624);
				});
		}
开发者ID:greeduomacro,项目名称:UO-Forever,代码行数:17,代码来源:TemplateSkillsGump.cs


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


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


示例19: CompileLayout

		protected override void CompileLayout(SuperGumpLayout layout)
		{
			if (!m_displayErrorMessage)
			{
				AddBackground(10, 11, 264, 99, 9300); //Background
			}
			else
			{
				AddBackground(10, 11, 264, 121, 9300); //Background
				this.AddHtmlLabel(28, 103, FontHandling.FontSize.Medium, false, false, false, "#FF0000", "Invalid Name!");
			}

			AddImageTiled(27, 45, 230, 1, 2621); //Top Line
			AddImageTiled(24, 74, 230, 1, 2621); //Bottom Line
			AddLabel(116, 18, 47, @"Save As..."); //Save as heading Label
			AddImage(186, 80, 2463, 2171); //Save Button Background
			AddImage(113, 80, 2463, 2171); //Cancel Button Background
			AddBackground(26, 50, 229, 20, 9350); //Background 1

			AddTextEntry(30, 50, 224, 20, 0, m_state.RendererToEdit.Name, onGumpNameEntryUpdate);
			this.AddHyperlink(
				new WebColoredHyperLink(
					new Point2D(188, 78),
					Compendium.YELLOW_TEXT_WEB_COLOR,
					false,
					false,
					false,
					onSaveButtonClick,
					0,
					@" Save")); //Save Hyperlink
			this.AddHyperlink(
				new WebColoredHyperLink(
					new Point2D(115, 78),
					Compendium.YELLOW_TEXT_WEB_COLOR,
					false,
					false,
					false,
					onCancelButtonClick,
					0,
					@" Cancel")); //Save Hyperlink
		}
开发者ID:rokann,项目名称:JustUO,代码行数:41,代码来源:SaveAs.cs


示例20: CompileLayout

        protected override void CompileLayout(SuperGumpLayout layout)
        {
            AddImage(1, 0, 2623, 1880); //Content Left Border 1
            AddImage(1, 165, 2623, 1880); //Content Left Border 2
            AddImage(2, 321, 2623, 1880); //Content Left Border 2
            AddImage(261, 0, 2625, 1880); //Content Right Border 1
            AddImage(261, 320, 2625, 1880); //Content Right Border 2
            AddImage(261, 165, 2625, 1880); //Content Right Border 2
            AddImage(6, 480, 2521, 2171); //Below Content Background 3
            AddImage(6, 512, 2627, 1880); //Bottom Border 3
            AddImage(106, 480, 2521, 2171); //Below Content Background 3
            AddImage(7, 0, 2621, 1880); //Content Top Border 3
            AddBackground(10, 11, 264, 474, 9300); //Background
            AddImageTiled(27, 45, 230, 1, 2621); //Top Line
            AddImageTiled(24, 456, 230, 1, 2621); //Bottom Line

            var elements = m_editorState.RendererToEdit.Elements.OrderBy(element => element.Z);

            int startingIdx = NUMBER_OF_ELEMENTS_PER_PAGE * m_editorState.ElementListGumpCurrentPageNumber;
            if (startingIdx > elements.Count() - 1)
            {
                startingIdx = 0;
                m_editorState.ElementListGumpCurrentPageNumber = 0;
            }

            int buttonLabelYCoord = 47;
            for (int i = startingIdx; i < startingIdx + NUMBER_OF_ELEMENTS_PER_PAGE && i < elements.Count(); ++i)
            {
                try
                {
                    this.AddHyperlink(new WebColoredHyperLink(new Point2D(28, buttonLabelYCoord),
                        elements.ElementAt(i) == m_editorState.SelectedElement ? "#FF0000" : Compendium.CONTENT_TEXT_WEB_COLOR,
                        false,
                        false,
                        elements.ElementAt(i) == m_editorState.SelectedElement ? true : false,
                        onSelectElementButtonClick, i, elements.ElementAt(i).Name));

                    //clone button(s)
                    AddButton(214, buttonLabelYCoord, 5411, 5411, GumpButtonType.Reply, onCloneButtonClick, i);
                    AddButton(208, buttonLabelYCoord + 3, 5411, 5411, GumpButtonType.Reply, onCloneButtonClick, i);
                    
                    if (elements.Count() > 1)
                    {
                        if (i != 0)
                        {
                            AddButton(238, buttonLabelYCoord + 5, 2435, 2436, GumpButtonType.Reply, onElementZOrderChangeUpButtonClick, i); //Z Order Up Button
                        }

                        if (i != m_editorState.RendererToEdit.Elements.Count - 1)
                        {
                            AddButton(248, buttonLabelYCoord + 5, 2437, 2438, GumpButtonType.Reply, onElementZOrderChangeDownButtonClick, i); //Z Order Down Button
                        }
                    }
                }
                catch (Exception e)
                {
                    Console.WriteLine(e);
                }
                buttonLabelYCoord += 20;
            }


            #region Top, Delete, and Bottom Buttons
            int selectedElementIdx = LinqHelper.FindIndex(elements, element => element == m_editorState.SelectedElement);
            if (m_editorState.SelectedElement != null && selectedElementIdx < elements.Count() - 1)
            {
                AddImage(186, 461, 2463, 2171);
                this.AddHyperlink(new WebColoredHyperLink(new Point2D(186, 460), Compendium.YELLOW_TEXT_WEB_COLOR, false, false, false,
                    onBottomButtonClick, selectedElementIdx, " Bottom"));
            }

            if (m_editorState.SelectedElement != null && selectedElementIdx > 0)
            {
                AddImage(24, 461, 2463, 2171);
                this.AddHyperlink(new WebColoredHyperLink(new Point2D(24, 460), Compendium.YELLOW_TEXT_WEB_COLOR, false, false, false,
                    onTopButtonClick, selectedElementIdx, "   Top"));
            }

            if (m_editorState.SelectedElement != null)
            {
                AddImage(105, 461, 2463, 2171);
                this.AddHyperlink(new WebColoredHyperLink(new Point2D(105, 460), Compendium.YELLOW_TEXT_WEB_COLOR, false, false, false,
                    onDeleteButtonClick, selectedElementIdx, "  Delete  "));
            }
            #endregion


            #region Page Navigator

            if (m_editorState.ElementListGumpCurrentPageNumber > 0)
            {
                AddButton(12, 495, 5603, 5607, GumpButtonType.Reply, onPrevPageButtonClick, 0); //Next page Button
                AddLabel(34, 492, 47, @"Previous"); //Previous Page Label
            }
            else
            {
                AddImage(12, 495, 5603, 901); //Previous Page Button
                AddLabel(34, 492, 901, @"Previous"); //Previous Page Label
            }

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



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Supplier类代码示例发布时间:2022-05-24
下一篇:
C# Suite类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap