Ejemplo n.º 1
0
        private void RenderNotes()
        {
            var offset = UiLayout.GetPoint("noteLabel");

            TCODConsole.root.print(offset.X, offset.Y, "Press [Escape] to go back.");
            TCODConsole.root.print(offset.X, offset.Y + 1, "Press [Enter] to improve a skill.");
        }
Ejemplo n.º 2
0
        private void RenderSkillDescription()
        {
            var tabPosition         = UiLayout.GetPoint("skillsTab");
            var descriptionPosition = UiLayout.GetPoint("description");

            TCODConsole.root.print(tabPosition.X, tabPosition.Y, "Skills +/-");
            TCODConsole.root.print(descriptionPosition.X, descriptionPosition.Y,
                                   "Skill Descriptions Not Yet Implemented - Coming Soon(TM)");
        }
Ejemplo n.º 3
0
        private void RenderCharacterExp()
        {
            var labelPosition  = UiLayout.GetPoint("experienceLabel");
            var numberPosition = UiLayout.GetPoint("experienceValue");
            var expString      = CharacterList.Selected.ExperiencePoints.ToString("D4");

            TCODConsole.root.print(labelPosition.X, labelPosition.Y, "Exp.");
            TCODConsole.root.print(numberPosition.X, numberPosition.Y, expString);
        }
Ejemplo n.º 4
0
        private void RenderBioticImplantDescription()
        {
            var tabPosition         = UiLayout.GetPoint("bioticsTab");
            var descriptionPosition = UiLayout.GetPoint("description");

            TCODConsole.root.print(tabPosition.X, tabPosition.Y, "Biotics +/-");
            TCODConsole.root.print(descriptionPosition.X, descriptionPosition.Y,
                                   "Biotic Implants Not Yet Implemented - Coming Soon(TM)");
        }
Ejemplo n.º 5
0
        private void RenderCharacterName()
        {
            var position      = UiLayout.GetPoint("characterName");
            var characterName = CharacterList.Selected.Name.ToString("{F} {N}{?}{L}");

            TCODConsole.root.setForegroundColor(TCODColor.white);
            TCODConsole.root.printEx(position.X, position.Y,
                                     TCODBackgroundFlag.Set, TCODAlignment.CenterAlignment, characterName);
            TCODConsole.root.hline(position.X - (characterName.Length / 2), position.Y + 1, characterName.Length);
        }
Ejemplo n.º 6
0
        private void RenderCharacterList()
        {
            var offset = UiLayout.GetPoint("characterList");

            CharacterList.Render(offset);

            offset = UiLayout.GetPoint("scrollBarTop");
            CharacterList.RenderScrollBar(offset, 21);

            offset = UiLayout.GetPoint("personnelTab");
            TCODConsole.root.setForegroundColor(TCODColor.white);
            TCODConsole.root.print(offset.X, offset.Y,
                                   $"Personnel {(char)TCODSpecialCharacter.ArrowSouth}/{(char)TCODSpecialCharacter.ArrowNorth}");
        }
Ejemplo n.º 7
0
        private void RenderPager()
        {
            var tabPosition = UiLayout.GetPoint("pagesLabel");

            TCODConsole.root.print(tabPosition.X, tabPosition.Y, "Pages [Tab]");
            var skillsPageLabel = UiLayout.GetPoint("skillPageLabel");

            TCODConsole.root.print(skillsPageLabel.X, skillsPageLabel.Y, "Skills");
            var woundsPageLabel = UiLayout.GetPoint("woundsPageLabel");

            TCODConsole.root.print(woundsPageLabel.X, woundsPageLabel.Y, "Wounds");
            var bioticsPageLabel = UiLayout.GetPoint("bioticsPageLabel");

            TCODConsole.root.print(bioticsPageLabel.X, bioticsPageLabel.Y, "Biotics");
        }
Ejemplo n.º 8
0
        private void RenderCharacterMentalSkills()
        {
            var character = CharacterList.Selected;

            var labelPosition = UiLayout.GetPoint("mentalAcuityLabel");
            var valuePosition = UiLayout.GetPoint("mentalAcuityValue");

            TCODConsole.root.print(labelPosition.X, labelPosition.Y, "Mental Acuity");
            TCODConsole.root.print(valuePosition.X, valuePosition.Y, character.MentalAcuity.ToString());

            labelPosition = UiLayout.GetPoint("willLabel");
            valuePosition = UiLayout.GetPoint("willValue");
            RenderAttribute(Attribute.Will, labelPosition, valuePosition);
            labelPosition = new Point(labelPosition.X + 1, labelPosition.Y + 1);
            valuePosition = new Point(valuePosition.X, valuePosition.Y + 1);
            RenderSkill(Skill.BioticsAffinity, labelPosition, valuePosition);
            labelPosition.Y += 1; valuePosition.Y += 1;
            RenderSkill(Skill.UnarmedCombat, labelPosition, valuePosition);
            labelPosition.Y += 1; valuePosition.Y += 1;
            RenderSkill(Skill.Focus, labelPosition, valuePosition);

            labelPosition = UiLayout.GetPoint("reasonLabel");
            valuePosition = UiLayout.GetPoint("reasonValue");
            RenderAttribute(Attribute.Reason, labelPosition, valuePosition);
            labelPosition = new Point(labelPosition.X + 1, labelPosition.Y + 1);
            valuePosition = new Point(valuePosition.X, valuePosition.Y + 1);
            RenderSkill(Skill.Engineering, labelPosition, valuePosition);
            labelPosition.Y += 1; valuePosition.Y += 1;
            RenderSkill(Skill.Repairing, labelPosition, valuePosition);
            labelPosition.Y += 1; valuePosition.Y += 1;
            RenderSkill(Skill.Healing, labelPosition, valuePosition);

            labelPosition = UiLayout.GetPoint("intuitionLabel");
            valuePosition = UiLayout.GetPoint("intuitionValue");
            RenderAttribute(Attribute.Intuition, labelPosition, valuePosition);
            labelPosition = new Point(labelPosition.X + 1, labelPosition.Y + 1);
            valuePosition = new Point(valuePosition.X, valuePosition.Y + 1);
            RenderSkill(Skill.Dodge, labelPosition, valuePosition);
            labelPosition.Y += 1; valuePosition.Y += 1;
            RenderSkill(Skill.Awareness, labelPosition, valuePosition);
            labelPosition.Y += 1; valuePosition.Y += 1;
            RenderSkill(Skill.SenseMotive, labelPosition, valuePosition);
        }
Ejemplo n.º 9
0
        private void RenderCharacterPhysicalSkills()
        {
            var character = CharacterList.Selected;

            var labelPosition = UiLayout.GetPoint("fitnessLabel");
            var valuePosition = UiLayout.GetPoint("fitnessValue");

            RenderAttributeCategory(AttributeCategory.Physical, labelPosition, valuePosition);

            labelPosition = UiLayout.GetPoint("strengthLabel");
            valuePosition = UiLayout.GetPoint("strengthValue");
            RenderAttribute(Attribute.Strength, labelPosition, valuePosition);
            labelPosition = new Point(labelPosition.X + 1, labelPosition.Y + 1);
            valuePosition = new Point(valuePosition.X, valuePosition.Y + 1);
            RenderSkill(Skill.LargeMeleeWeapons, labelPosition, valuePosition);
            labelPosition.Y += 1; valuePosition.Y += 1;
            RenderSkill(Skill.ThrownWeapons, labelPosition, valuePosition);
            labelPosition.Y += 1; valuePosition.Y += 1;
            RenderSkill(Skill.Bash, labelPosition, valuePosition);

            labelPosition = UiLayout.GetPoint("enduranceLabel");
            valuePosition = UiLayout.GetPoint("enduranceValue");
            RenderAttribute(Attribute.Endurance, labelPosition, valuePosition);
            labelPosition = new Point(labelPosition.X + 1, labelPosition.Y + 1);
            valuePosition = new Point(valuePosition.X, valuePosition.Y + 1);
            RenderSkill(Skill.HeavyFirearms, labelPosition, valuePosition);
            labelPosition.Y += 1; valuePosition.Y += 1;
            RenderSkill(Skill.ArmorUse, labelPosition, valuePosition);
            labelPosition.Y += 1; valuePosition.Y += 1;
            RenderSkill(Skill.Exert, labelPosition, valuePosition);

            labelPosition = UiLayout.GetPoint("agilityLabel");
            valuePosition = UiLayout.GetPoint("agilityValue");
            RenderAttribute(Attribute.Agility, labelPosition, valuePosition);
            labelPosition = new Point(labelPosition.X + 1, labelPosition.Y + 1);
            valuePosition = new Point(valuePosition.X, valuePosition.Y + 1);
            RenderSkill(Skill.SmallMeleeWeapons, labelPosition, valuePosition);
            labelPosition.Y += 1; valuePosition.Y += 1;
            RenderSkill(Skill.LightFirearms, labelPosition, valuePosition);
            labelPosition.Y += 1; valuePosition.Y += 1;
            RenderSkill(Skill.Stealth, labelPosition, valuePosition);
        }
Ejemplo n.º 10
0
        private void RenderRecoveryDetails()
        {
            var labelPosition = UiLayout.GetPoint("recoverDetailsLabel");

            TCODConsole.root.print(labelPosition.X, labelPosition.Y, "Recovery Details");

            labelPosition = UiLayout.GetPoint("severity");
            TCODConsole.root.print(labelPosition.X, labelPosition.Y, "Severity: Coming Soon (TM)");

            labelPosition = UiLayout.GetPoint("status");
            TCODConsole.root.print(labelPosition.X, labelPosition.Y, "Status: Coming Soon (TM)");

            labelPosition = UiLayout.GetPoint("statusDetails");
            TCODConsole.root.print(labelPosition.X, labelPosition.Y, "Status Details...");
            TCODConsole.root.print(labelPosition.X, labelPosition.Y + 1, "Coming Soon (TM)");

            labelPosition = UiLayout.GetPoint("timeToHealLabel");
            TCODConsole.root.print(labelPosition.X, labelPosition.Y, "Time to Heal:");
            labelPosition = UiLayout.GetPoint("timeToHealValue");
            TCODConsole.root.print(labelPosition.X, labelPosition.Y, "NN Days");
        }