Esempio n. 1
0
    private string GetSkillTexture(DialogSkill skill)
    {
        switch (skill)
        {
        case DialogSkill.Bluff:
            return("art/interface/DIALOG/Icon-Bluff.tga");

        case DialogSkill.Diplomacy:
            return("art/interface/DIALOG/Icon-Diplomacy.tga");

        case DialogSkill.Intimidate:
            return("art/interface/DIALOG/Icon-Intimidate.tga");

        case DialogSkill.SenseMotive:
            return("art/interface/DIALOG/Icon-Sense Motive.tga");

        case DialogSkill.GatherInformation:
            return("art/interface/DIALOG/Icon-Gather Info.tga");

        default:
            throw new ArgumentOutOfRangeException(nameof(skill), skill, null);
        }
    }
Esempio n. 2
0
    public DialogResponseButton(Rectangle rect, string numberText, string text, DialogSkill skillUsed) : base(rect)
    {
        AddStyle("dialog-ui-text");

        _skillUsed = skillUsed;

        _label            = new WidgetText(text, NormalStyle);
        _label.X          = 36;
        _label.FixedWidth = 559;
        AddContent(_label);

        _numberLabel   = new WidgetText(numberText, NormalStyle);
        _numberLabel.X = 17;
        AddContent(_numberLabel);

        if (skillUsed != DialogSkill.None)
        {
            var icon = new WidgetImage(GetSkillTexture(skillUsed));
            icon.FixedSize = new Size(15, 15);
            icon.X         = 2;
            icon.Y         = 1;
            AddContent(icon);
        }
    }
Esempio n. 3
0
 public ResponseLine(string text, DialogSkill skillUsed)
 {
     Text      = text;
     SkillUsed = skillUsed;
 }