mirror of
https://github.com/Nioux/AideDeJeu.git
synced 2025-11-02 00:16:07 +00:00
Correction cartes
This commit is contained in:
parent
90105c3d4e
commit
8f9f0fe0c9
2 changed files with 11 additions and 4 deletions
|
|
@ -73,7 +73,7 @@ namespace AideDeJeuLib.Cards
|
||||||
foreach (var content in description.ChildNodes)
|
foreach (var content in description.ChildNodes)
|
||||||
{
|
{
|
||||||
//Debug.WriteLine(content.NodeType + " " + content.Name + " " + content.InnerText);
|
//Debug.WriteLine(content.NodeType + " " + content.Name + " " + content.InnerText);
|
||||||
if (content.NodeType == HtmlNodeType.Element && content.Name == "strong")
|
if ((content.NodeType == HtmlNodeType.Element || content.NodeType == HtmlNodeType.Document) && content.Name == "strong")
|
||||||
{
|
{
|
||||||
if (currentText.Length > 0)
|
if (currentText.Length > 0)
|
||||||
{
|
{
|
||||||
|
|
@ -82,7 +82,7 @@ namespace AideDeJeuLib.Cards
|
||||||
}
|
}
|
||||||
contents.Add(new SectionCardContent(content.InnerText));
|
contents.Add(new SectionCardContent(content.InnerText));
|
||||||
}
|
}
|
||||||
else if (content.NodeType == HtmlNodeType.Element && content.Name == "em")
|
else if ((content.NodeType == HtmlNodeType.Element || content.NodeType == HtmlNodeType.Document) && content.Name == "em")
|
||||||
{
|
{
|
||||||
currentText += "<em>" + content.InnerText + "</em>";
|
currentText += "<em>" + content.InnerText + "</em>";
|
||||||
}
|
}
|
||||||
|
|
@ -141,9 +141,9 @@ namespace AideDeJeuLib.Cards
|
||||||
new PropertyCardContent("Durée", spell.Duration),
|
new PropertyCardContent("Durée", spell.Duration),
|
||||||
new RuleCardContent(),
|
new RuleCardContent(),
|
||||||
//new FillCardContent(1),
|
//new FillCardContent(1),
|
||||||
//new TextCardContent(spell.Description),
|
//new TextCardContent(spell.DescriptionText),
|
||||||
});
|
});
|
||||||
var description = ToContents(spell.DescriptionDiv);
|
var description = ToContents(spell.DescriptionDiv.Element("div"));
|
||||||
foreach (var line in description)
|
foreach (var line in description)
|
||||||
{
|
{
|
||||||
int size = contents.Sum(cc => cc.Height);
|
int size = contents.Sum(cc => cc.Height);
|
||||||
|
|
|
||||||
7
AideDeJeu/AideDeJeu/Properties/launchSettings.json
Normal file
7
AideDeJeu/AideDeJeu/Properties/launchSettings.json
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"profiles": {
|
||||||
|
"AideDeJeu": {
|
||||||
|
"commandName": "Project"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue