Exemple #1
0
        private void showStatus()
        {
            _turnLabel = new StatusLabel();
            _turnLabel.SetPosition(new Vector2F(LabelXIndex, LabelYIndex));
            _turnLabel.SetText("経過ターン:" + GameData.PlayerData.Turn.ToString());
            _turnLabel.SetNode(this);

            StatusLabel agricultureLabel = new StatusLabel();

            agricultureLabel.SetPosition(new Vector2F(LabelXIndex, LabelYIndex + columnInterval));
            agricultureLabel.SetText("農業レベル:" + GameData.PlayerData.AgricultureLevel +
                                     "(" + GameData.PlayerData.AgricultureExperience.ToString() + "/" +
                                     (GameData.PlayerData.AgricultureLevel * 25).ToString() + ")");
            agricultureLabel.SetNode(this);

            StatusLabel dairyLabel = new StatusLabel();

            dairyLabel.SetPosition(new Vector2F(LabelXIndex, LabelYIndex + columnInterval * 2));
            dairyLabel.SetText("酪農レベル:" + GameData.PlayerData.DairyLevel +
                               "(" + GameData.PlayerData.DairyExperience.ToString() + "/" +
                               (GameData.PlayerData.DairyLevel * 25).ToString() + ")");
            dairyLabel.SetNode(this);

            StatusLabel processingLabel = new StatusLabel();

            processingLabel.SetPosition(new Vector2F(LabelXIndex, LabelYIndex + columnInterval * 3));
            processingLabel.SetText("工房レベル:" + GameData.PlayerData.ProcessingLevel +
                                    "(" + GameData.PlayerData.ProcessingExperience.ToString() + "/" +
                                    (GameData.PlayerData.ProcessingLevel * 25).ToString() + ")");
            processingLabel.SetNode(this);

            StatusLabel managementLabel = new StatusLabel();

            managementLabel.SetPosition(new Vector2F(LabelXIndex, LabelYIndex + columnInterval * 4));
            managementLabel.SetText("経営レベル:" + GameData.PlayerData.ManagementLevel +
                                    "(" + GameData.PlayerData.ManagementExperience.ToString() + "/" +
                                    (GameData.PlayerData.ManagementLevel * 25).ToString() + ")");
            managementLabel.SetNode(this);
        }
Exemple #2
0
 public void Update()
 {
     _weatherPanel.UpdateValue();
     _turnLabel.SetText("経過ターン:" + GameData.PlayerData.Turn.ToString());
 }