Ejemplo n.º 1
0
        public WindowPlayerState(int x, int y, int w, int h, string title, EBorderStyle borderStyle, Entity player, HUD parent)
            : base(x, y, w, h, title, borderStyle, player, parent)
        {
            skillInfoWindow = new WindowSkillInfo(0, 0, 30, 12, "[skill]", EBorderStyle.ALL, player, parent);
            parent.windows.Add(skillInfoWindow);

            playerSkills       = player.Get <SkillUserComponent>();
            playerPhysicsState = player.Get <PhysicsComponent>();
            playerAttributes   = player.Get <AttributesComponent>();
        }
Ejemplo n.º 2
0
        public WindowCharacterCreateMenu(int x, int y, int w, int h, string title, EBorderStyle borderStyle, Entity player, HUD parent)
            : base(x, y, w, h, title, borderStyle, player, parent)
        {
            borderStyle     = EBorderStyle.NONE;
            availablePoints = NUMBER_OF_POINTS;

            dragdrop = new HUD.DragDrop();

            characterNameField = new TextField(3, 5, MAX_NAME_LENGTH, 1, elementDarker, elementDark, foregroundColor, CharacterNameCompleted);

            // sub windows for inspecitng the starrting skills and starting items
            skillInspector = new WindowSkillInfo(0, 0, 30, 12, "[skill]", EBorderStyle.ALL, null, null);
            itemInspector  = new WindowItemInfo(0, 0, 30, 12, "[item]", EBorderStyle.ALL, null, null);
        }