Пример #1
0
 /*********
 ** Public methods
 *********/
 /// <summary>Construct an instance.</summary>
 /// <param name="label">The field label.</param>
 /// <param name="slotWidth">The field width.</param>
 /// <param name="onToggled">The action to perform when the button is toggled.</param>
 public DailyPlannerInputListener(string label, int slotWidth, Planner planner, PlannerMenu plannermenu)
     : base(label, -1, -1, slotWidth + 1, 11 * Game1.pixelZoom)
 {
     this.SetButtonBounds = new Rectangle(slotWidth - 28 * Game1.pixelZoom, -1 + Game1.pixelZoom * 3, 21 * Game1.pixelZoom, 11 * Game1.pixelZoom);
     this.Planner         = planner;
     this.PlannerMenu     = plannermenu;
 }
Пример #2
0
 public DailyPlannerInputListener(string label, int slotWidth, CheckList checkList, PlannerMenu plannermenu)
     : base(label, -1, -1, slotWidth + 1, 11 * Game1.pixelZoom)
 {
     this.SetButtonBounds   = new Rectangle(slotWidth - 28 * Game1.pixelZoom, -1 + Game1.pixelZoom * 3, 21 * Game1.pixelZoom, 11 * Game1.pixelZoom);
     this.CheckList         = checkList;
     this.PlannerMenu       = plannermenu;
     this.IsCheckListButton = true;
 }
Пример #3
0
 /// <summary>Constructor to create a new planner menu using the variables of an old one.</summary>
 /// <param name="oldMenu"></param>
 public PlannerMenu(PlannerMenu oldMenu) : this(oldMenu.CurrentTab, oldMenu.Config, oldMenu.Planner, oldMenu.TranslationHelper)
 {
     this.CurrentItemIndex = oldMenu.CurrentItemIndex;
     this.SetScrollBarToCurrentIndex();
 }
Пример #4
0
 public PlannerMenu(PlannerMenu oldMenu) : this(oldMenu.CurrentTab, oldMenu.Config, oldMenu.Planner, oldMenu.TranslationHelper)
 {
 }