コード例 #1
0
ファイル: Spell.cs プロジェクト: TrutzX/9Nations
        public override void ShowLexicon(PanelBuilder panel)
        {
            base.ShowLexicon(panel);
            panel.AddImageLabel(S.T("spellCost", cost), "ap");
            req.BuildPanel(panel);
            reqTarget.BuildPanel(panel);

            var ah = new ActionDisplaySettings(panel, null);

            action.BuildPanelT(ah, "spellPerformSuccess");
            actionFail.BuildPanelT(ah, "spellPerformFail");
        }
コード例 #2
0
        public override void ShowLexicon(PanelBuilder panel)
        {
            base.ShowLexicon(panel);
            L.b.res[C.BuildRes].AddSubLabel(panel, buildTime, "round");
            L.b.modifiers[C.ViewModi].AddSubLabel(panel, visibilityRange, "field");
            ShowWorker(panel);
            panel.AddResT("constructionCost", cost);
            req.BuildPanel(panel, S.T("constructionReq"));
            panel.AddModi(modi);

            ActionDisplaySettings sett = new ActionDisplaySettings(panel, null);

            sett.compact = true;
            action.BuildPanelT(sett);
        }
コード例 #3
0
        public void ShowInfo(PanelBuilder panel, Player player = null)
        {
            AddImageLabel(panel);
            panel.RichText(desc);
            panel.AddSubLabel("Status", (IsFinish() ? "Finish":"In Progress"), IsFinish() ?"yes":"round");

            reqs.BuildPanel(panel, player);
            actions.BuildPanelT(new ActionDisplaySettings(panel, null));
        }
コード例 #4
0
 public override void ShowLexicon(PanelBuilder panel)
 {
     base.ShowLexicon(panel);
     req.BuildPanel(panel);
     action.BuildPanelT(new ActionDisplaySettings(panel, null));
 }