예제 #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));
 }