本文整理汇总了C#中Server.Gumps.Gump.AddPage方法的典型用法代码示例。如果您正苦于以下问题:C# Gump.AddPage方法的具体用法?C# Gump.AddPage怎么用?C# Gump.AddPage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Server.Gumps.Gump
的用法示例。
在下文中一共展示了Gump.AddPage方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: BaseSkinByType
internal void BaseSkinByType(Gump g)
{
if (relplug == null)
{ SkillSettings.DoTell("Base Type is invalid. Cannot skin."); }
g.AddPage(0);
string switchby = relplug.getGumpType();
if (switchby == "Control")
{
//this.X = sk.GetCoord("Control", "X", sk ); this.Y = sk.SelectionY;
g.X = 0; g.Y = 0;
if (!Skin.WindowInfo.ContainsKey("Control"))
{ SkillSettings.DoTell("No key for Control gump skin."); return; }
WindowInfo inf = Skin.WindowInfo["Control"];
g.X = inf.X; g.Y = inf.Y;
//this.AddBackground(sk.GetCoord("Control", "X", sk ), sk.SelectionY, sk.GetCoord("Control", "W", sk ), sk.GetCoord("Control", "H", sk ), sk.SelectBGID);
g.AddBackground(0, 0, inf.W, inf.H, inf.bgID);
g.AddImageTiled(Skin.BarSHX, Skin.BarSHY, Skin.BarSHW, Skin.BarSHH, Skin.SelectLineH);
g.AddHtml(Skin.TMSSX, Skin.TMSSY, 140, 20, "<basefont size=5 face=1 color=#CC0000><Center>TMSS - //4// -</center></basefont>", false, false);
//<basefont size=5 face=1 color=#CC0000><Center>TM Skill & Stat System v3.0</center></basefont>
}
else if (switchby == "Master")
{
g.X = 0; g.Y = 0;
if (!Skin.WindowInfo.ContainsKey("Master"))
{ SkillSettings.DoTell("No key for Master gump skin."); return; }
WindowInfo inf = Skin.WindowInfo["Master"];
//this.AddBackground(sk.MasterX, sk.MasterY, sk.MasterW, sk.MasterH, sk.MasterBGID);
g.X = inf.X; g.Y = inf.Y;
g.AddBackground(0, 0, inf.W, inf.H, inf.bgID);
g.AddImageTiled(Skin.BarMHX, Skin.BarMHY, Skin.BarMHW, Skin.BarMHH, Skin.MasterLineH);
g.AddImageTiled(Skin.BarMVX, Skin.BarMVY, Skin.BarMVW, Skin.BarMVH, Skin.MasterLineV);
g.AddItem(Skin.IconMX, Skin.IconMY, Skin.IconMID, Skin.IconMColor);
}
else if (switchby == "Underbar")
{
g.X = 0; g.Y = 0;
if (!Skin.WindowInfo.ContainsKey("Underbar"))
{ SkillSettings.DoTell("No key for Underbar gump skin."); return; }
WindowInfo inf = Skin.WindowInfo["Underbar"];
g.X = inf.X; g.Y = inf.Y;
g.AddBackground(0, 0, inf.W, inf.H, inf.bgID);
//this.AddBackground(sk.sk.GetCoord("Underbar", "X", );, sk.sk.GetCoord("Underbar", "Y", );, sk.HelpW, sk.HelpH, sk.HelpBGID);
}
else SkillSettings.DoTell("Unknown Gump Type. Cannot apply base skin.");
}