Exemplo n.º 1
0
 List <FloatMenuOption> IAddonMenu.MenuOptions() => new List <FloatMenuOption>
 {
     new FloatMenuOption("Pawn Queue", delegate()
     {
         PawnAssignmentWindow window = new PawnAssignmentWindow();
         Find.WindowStack.TryRemove(window.GetType());
         Find.WindowStack.Add(window);
     }),
     new FloatMenuOption("Settings", delegate()
     {
         Window_ModSettings window = new Window_ModSettings(LoadedModManager.GetMod <PawnQueue>());
         Find.WindowStack.TryRemove(window.GetType());
         Find.WindowStack.Add(window);
     }),
     new FloatMenuOption("Help", delegate()
     {
         Application.OpenURL("https://github.com/hodldeeznuts/ToolkitPawnQueue/wiki");
     })
 };
        public void DoWindowContents(Rect rect)
        {
            Listing_Standard ls = new Listing_Standard();

            ls.Begin(rect);

            ls.Label("The Pawn Queue allows viewers to use command !joinqueue to enter. In the pawn assignment window, you can assign usernames manually (without the name queue), in order, or randomly from the list of usernames in the Pawn Queue.");

            ls.CheckboxLabeled("Joinable Pawn Queue - !joinqueue", ref joinableQueue, "Let viewers join a pawn queue");

            ls.GapLine();

            if (ls.ButtonTextLabeled("Open/Manage Pawn Queue", "Pawn Queue"))
            {
                PawnAssignmentWindow window = new PawnAssignmentWindow();
                Find.WindowStack.TryRemove(typeof(PawnAssignmentWindow));
                Find.WindowStack.Add(window);
            }

            ls.GapLine();

            ls.CheckboxLabeled("Rename Pawns on Assignment", ref renameAssignedPawns, "Rename pawns that are assigned to have the viewers name");

            ls.GapLine();

            ls.Label("Enable/Disable pawn information commands");

            ls.CheckboxLabeled("My Pawn Skills - !mypawnskills", ref pawnSkillsCommand, "Let viewers get a message containing information about their pawns skills");

            ls.CheckboxLabeled("My Pawn Story - !mypawnstory", ref pawnStoryCommand, "Let Viewers get a message containing information about their pawns traits and backstory");

            ls.CheckboxLabeled("My Pawn Body - !mypawnbody", ref pawnBodyCommand, "Let viewers get a message containing information about their pawns body");

            ls.CheckboxLabeled("My Pawn Gear - !mypawngear", ref pawnGearCommand, "Let viewers get a message containing information about their pawns gear");

            ls.CheckboxLabeled("My Pawn Health - !mypawnhealth", ref pawnHealthCommand, "Let viewers get a message containing information about their pawns health");

            ls.CheckboxLabeled("My Pawn Work - !mypawnwork", ref pawnWorkCommand, "Let viewrs get a message containing information about their pawns work");

            ls.CheckboxLabeled("My Pawn Needs - !mypawnneeds", ref pawnNeedsCommand, "Let viewers get a message containing information about their pawns needs");

            ls.End();
        }