コード例 #1
0
        private Grid GeneratePlayerMedicalBlock(Player p)
        {
            Grid g;

            g = GenerateBlankBlockGrid(4, "Medical", 1);

            UiUtils.AddGridData_DoubleSize(g, 0, 1, LangResources.CurLang.Health, Convert.ToInt32(p.Health).ToString() + "%");
            UiUtils.AddGridData_DoubleSize(g, 0, 2, "Injury", "None");
            UiUtils.AddGridData_DoubleSize(g, 0, 3, "Est. Availability", "n/a");
            return(g);
        }
コード例 #2
0
        private Grid GeneratePlayerContractBlock(Player p)
        {
            Grid g;

            g = GenerateBlankBlockGrid(4, "Contract", 1);

            UiUtils.AddGridData_DoubleSize(g, 0, 1, "Date Ending", "--/--/----");
            UiUtils.AddGridData_DoubleSize(g, 0, 2, "Value", "£" + p.Value.ToString("N0"));
            UiUtils.AddGridData_DoubleSize(g, 0, 3, "Wages (per week)", "£" + p.Wages.ToString("N0"));
            return(g);
        }