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); } }
public AddResource(HouseRecipe recipe) : base(3, false, TargetFlags.None) { hr = recipe; }
public SelectResource(HouseRecipe recipe, Foreman foreman) : base(3, false, TargetFlags.None) { hr = recipe; fm = foreman; }
public SelectForeman(HouseRecipe recipe) : base(3, false, TargetFlags.None) { hr = recipe; }