コード例 #1
0
 public HouseRecipeGump(HouseRecipe recipe, Mobile from)
     : base(30, 30)
 {
     m_Recipe = recipe;
     AddBackground(30, 30, 600, 400, 9390);
     AddLabel(240, 60, 777, recipe.Name);
     AddLabel(90, 100, 0, "Resources");
     AddLabel(310, 100, 0, "Required");
     AddLabel(400, 100, 0, "Fulfilled");
     AddLabel(490, 100, 0, "Needed");
     for (int y = 140; y <= 360; y = y + 20)
     {
         AddLabel(90, y, 0, recipe.Resources[(y / 20) - 7].Name);
         AddLabel(240, y, 0, "................");
         AddLabel(310, y, 0, recipe.Quantities[(y / 20) - 7].ToString());
         AddLabel(400, y, 0, recipe.Provided[(y / 20) - 7].ToString());
         AddLabel(490, y, 0, (recipe.Quantities[(y / 20) - 7] - recipe.Provided[(y / 20) - 7]).ToString());
         if (recipe.Provided[(y / 20) - 7] >= recipe.Quantities[(y / 20) - 7])
         {
             AddImage(57, y - 2, 1154);
         }
     }
     AddLabel(60, 405, 0, "Add Resource");
     AddButton(155, 405, 5541, 5542, 1, GumpButtonType.Reply, 0);
     AddLabel(230, 405, 0, "Show Recipe to Foreman");
     AddButton(390, 405, 5541, 5542, 2, GumpButtonType.Reply, 0);
     if (from.AccessLevel >= AccessLevel.GameMaster)
     {
         AddLabel(460, 405, 777, "Fill Recipe");
         AddButton(530, 405, 5541, 5542, 4, GumpButtonType.Reply, 0);
     }
 }
コード例 #2
0
 public AddResource(HouseRecipe recipe)
     : base(3, false, TargetFlags.None)
 {
     hr = recipe;
 }
コード例 #3
0
 public SelectResource(HouseRecipe recipe, Foreman foreman)
     : base(3, false, TargetFlags.None)
 {
     hr = recipe;
     fm = foreman;
 }
コード例 #4
0
 public SelectForeman(HouseRecipe recipe)
     : base(3, false, TargetFlags.None)
 {
     hr = recipe;
 }