Beispiel #1
0
        public string GetLocalString(bool verbose)
        {
            string result = Name.ToLocal();

            if (!Released)
            {
                result = "*" + result;
            }
            if (verbose && Comment != "")
            {
                result += "  #";
                result += Comment;
            }

            return(result);
        }
 public virtual string GetColoredName()
 {
     return(String.Format("[color=#00FF00]{0}[color]", Name.ToLocal()));
 }
        public QuicksaveMenu()
        {
            List <RecordHeaderData> records = DataManager.Instance.GetRecordHeaders(PathMod.NoMod(DataManager.ROGUE_PATH), DataManager.QUICKSAVE_EXTENSION);

            List <MenuChoice> flatChoices = new List <MenuChoice>();

            foreach (RecordHeaderData record in records)
            {
                string fileName = Path.GetFileNameWithoutExtension(record.Path);
                if (record.Name != "")
                {
                    LocalText zoneName  = DataManager.Instance.DataIndices[DataManager.DataType.Zone].Entries[record.Zone].Name;
                    string    rogueSign = "";
                    if (record.IsRogue)
                    {
                        if (record.IsSeeded)
                        {
                            rogueSign = "\uE10D";
                        }
                        else
                        {
                            rogueSign = "\uE10C";
                        }
                    }
                    //also include an indicator of the floors traversed, if possible
                    flatChoices.Add(new MenuTextChoice(rogueSign + record.Name + ": " + zoneName.ToLocal(), () => { choose(record.Path); }));
                }
                else
                {
                    flatChoices.Add(new MenuTextChoice(fileName, () => { choose(record.Path); }));
                }
            }
            List <MenuChoice[]> choices = SortIntoPages(flatChoices, SLOTS_PER_PAGE);


            Initialize(new Loc(0, 0), 240, Text.FormatKey("MENU_SAVE_TITLE"), choices.ToArray(), 0, 0, SLOTS_PER_PAGE);
        }
Beispiel #4
0
 public string GetSingleLineName()
 {
     return(Name.ToLocal().Replace('\n', ' '));
 }
Beispiel #5
0
 public string GetColoredName()
 {
     return(String.Format("[color=#FFC663]{0}[color]", Name.ToLocal().Replace('\n', ' ')));
 }
Beispiel #6
0
 public string GetDisplayName()
 {
     return(String.Format("[color=#FFC663]{0}[color]", Name.ToLocal()));
 }