public ObjectItem(int ax, int ay, string aObjName)
 {
     x       = ax;
     y       = ay;
     ObjName = aObjName;
     ObjText = UI.font20.Text(aObjName);
     ProjectData.Log($"- Object list item created {ObjName} -- Set onto ({x},{y})");
 }
Esempio n. 2
0
 PDM_Item(PDMEN aParent, string Caption, int EventCode, string qkey)
 {
     PDM_Items[aParent].Add(this);
     Parent        = aParent;
     CaptString    = Caption;
     CaptText      = font20.Text(Caption);
     qkeyString    = qkey;
     qkeyText      = font20.Text(qkey);
     MenuEventCode = EventCode;
 }
Esempio n. 3
0
 public static void ComeToMe(int aTex)
 {
     if (me == null)
     {
         me = new SetAllowance();
     }
     Tex = aTex;
     if (Tex == 0)
     {
         return;
     }
     Head = UI.font32.Text($"Please set up the allowance state for {Tex.ToString("X2")}");
     LAL(TexAllow.Allow, "Allow");
     LAL(TexAllow.Deny, "Deny");
     LAL(TexAllow.Annoy, "Annoy");
     LAL(TexAllow.Auto, "Auto");
     ProjectData.Game.SetStage(me);
 }
Esempio n. 4
0
 public PullDownMenus(Heads parent, string Caption, CallBackVoid CB, Keys QuickKey = Keys.None, RequireBool Requirement = null)
 {
     ParentTop = parent;
     Parent    = Top[parent];
     Parent.Kids.Add(this);
     this.Caption  = Caption;
     CaptGraph     = Void.Font.Text(Caption);
     CallBack      = CB;
     this.QuickKey = QuickKey;
     if (Requirement != null)
     {
         Require = Requirement;
     }
     else
     {
         Require = Always;
     }
     Debug.WriteLine($"Created menu item {Caption} in parent {parent}");
 }
Esempio n. 5
0
 public TL_Item(string af, int ay)
 {
     filename = af; y = ay; dt = UI.font20.Text(filename);
 }