mirror of
				https://github.com/Nioux/AideDeJeu.git
				synced 2025-10-30 23:16:09 +00:00 
			
		
		
		
	Préparation récupération actions (mais là c'est l'heure du film ^^)
This commit is contained in:
		
							parent
							
								
									ca7b4247bb
								
							
						
					
					
						commit
						5f3ad39729
					
				
					 4 changed files with 53 additions and 30 deletions
				
			
		|  | @ -9,7 +9,7 @@ | ||||||
|     <AppDesignerFolder>Properties</AppDesignerFolder> |     <AppDesignerFolder>Properties</AppDesignerFolder> | ||||||
|     <RootNamespace>AideDeJeu.UWP</RootNamespace> |     <RootNamespace>AideDeJeu.UWP</RootNamespace> | ||||||
|     <AssemblyName>AideDeJeu.UWP</AssemblyName> |     <AssemblyName>AideDeJeu.UWP</AssemblyName> | ||||||
|     <DefaultLanguage>en-US</DefaultLanguage> |     <DefaultLanguage>fr-FR</DefaultLanguage> | ||||||
|     <TargetPlatformIdentifier>UAP</TargetPlatformIdentifier> |     <TargetPlatformIdentifier>UAP</TargetPlatformIdentifier> | ||||||
|     <TargetPlatformVersion>10.0.16299.0</TargetPlatformVersion> |     <TargetPlatformVersion>10.0.16299.0</TargetPlatformVersion> | ||||||
|     <TargetPlatformMinVersion>10.0.16299.0</TargetPlatformMinVersion> |     <TargetPlatformMinVersion>10.0.16299.0</TargetPlatformMinVersion> | ||||||
|  |  | ||||||
|  | @ -1,48 +1,27 @@ | ||||||
| <?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||||||
| 
 | <Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" IgnorableNamespaces="uap mp"> | ||||||
| <Package |   <Identity Name="4f4935f2-347d-4bfe-a2ec-9e7a8ed83a1d" Publisher="CN=899f1516-2a42-438b-8163-40d8e0e659aa" Version="1.0.0.0" /> | ||||||
|   xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" |  | ||||||
|   xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" |  | ||||||
|   xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" |  | ||||||
|   IgnorableNamespaces="uap mp"> |  | ||||||
| 
 |  | ||||||
|   <Identity |  | ||||||
|     Name="4f4935f2-347d-4bfe-a2ec-9e7a8ed83a1d" |  | ||||||
|     Publisher="CN=899f1516-2a42-438b-8163-40d8e0e659aa" |  | ||||||
|     Version="1.0.0.0" /> |  | ||||||
| 
 |  | ||||||
|   <mp:PhoneIdentity PhoneProductId="ec0cc741-fd3e-485c-81be-68815c480690" PhonePublisherId="00000000-0000-0000-0000-000000000000" /> |   <mp:PhoneIdentity PhoneProductId="ec0cc741-fd3e-485c-81be-68815c480690" PhonePublisherId="00000000-0000-0000-0000-000000000000" /> | ||||||
| 
 |  | ||||||
|   <Properties> |   <Properties> | ||||||
|     <DisplayName>AideDeJeu.UWP</DisplayName> |     <DisplayName>AideDeJeu.UWP</DisplayName> | ||||||
|     <PublisherDisplayName>899f1516-2a42-438b-8163-40d8e0e659aa</PublisherDisplayName> |     <PublisherDisplayName>899f1516-2a42-438b-8163-40d8e0e659aa</PublisherDisplayName> | ||||||
|     <Logo>Assets\StoreLogo.png</Logo> |     <Logo>Assets\StoreLogo.png</Logo> | ||||||
|   </Properties> |   </Properties> | ||||||
| 
 |  | ||||||
|   <Dependencies> |   <Dependencies> | ||||||
|     <TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" /> |     <TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" /> | ||||||
|   </Dependencies> |   </Dependencies> | ||||||
| 
 |  | ||||||
|   <Resources> |   <Resources> | ||||||
|     <Resource Language="x-generate" /> |     <Resource Language="x-generate" /> | ||||||
|   </Resources> |   </Resources> | ||||||
| 
 |  | ||||||
|   <Applications> |   <Applications> | ||||||
|     <Application Id="App" |     <Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="AideDeJeu.UWP.App"> | ||||||
|       Executable="$targetnametoken$.exe" |       <uap:VisualElements DisplayName="Aide de Jeu" Square150x150Logo="Assets\Square150x150Logo.png" Square44x44Logo="Assets\Square44x44Logo.png" Description="Aide de Jeu" BackgroundColor="transparent"> | ||||||
|       EntryPoint="AideDeJeu.UWP.App"> |         <uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png"> | ||||||
|       <uap:VisualElements |         </uap:DefaultTile> | ||||||
|         DisplayName="AideDeJeu.UWP" |  | ||||||
|         Square150x150Logo="Assets\Square150x150Logo.png" |  | ||||||
|         Square44x44Logo="Assets\Square44x44Logo.png" |  | ||||||
|         Description="AideDeJeu.UWP" |  | ||||||
|         BackgroundColor="transparent"> |  | ||||||
|         <uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png"/> |  | ||||||
|         <uap:SplashScreen Image="Assets\SplashScreen.png" /> |         <uap:SplashScreen Image="Assets\SplashScreen.png" /> | ||||||
|       </uap:VisualElements> |       </uap:VisualElements> | ||||||
|     </Application> |     </Application> | ||||||
|   </Applications> |   </Applications> | ||||||
| 
 |  | ||||||
|   <Capabilities> |   <Capabilities> | ||||||
|     <Capability Name="internetClient" /> |     <Capability Name="internetClient" /> | ||||||
|   </Capabilities> |   </Capabilities> | ||||||
|  |  | ||||||
|  | @ -76,6 +76,8 @@ | ||||||
| 
 | 
 | ||||||
|             <skia:SKCanvasView PaintSurface="PaintHeaderBar" HorizontalOptions="FillAndExpand" HeightRequest="8" /> |             <skia:SKCanvasView PaintSurface="PaintHeaderBar" HorizontalOptions="FillAndExpand" HeightRequest="8" /> | ||||||
| 
 | 
 | ||||||
|  |             <Image Source="{Binding Image}" /> | ||||||
|  | 
 | ||||||
|         </StackLayout> |         </StackLayout> | ||||||
|     </ScrollView> |     </ScrollView> | ||||||
| </ContentPage> | </ContentPage> | ||||||
|  | @ -69,6 +69,48 @@ namespace AideDeJeuLib.Monsters | ||||||
|             monster.Senses = divRed?.SelectSingleNode("strong[contains(text(),'Sens')]")?.NextSibling?.InnerText; |             monster.Senses = divRed?.SelectSingleNode("strong[contains(text(),'Sens')]")?.NextSibling?.InnerText; | ||||||
|             monster.Languages = divRed?.SelectSingleNode("strong[contains(text(),'Langues')]")?.NextSibling?.InnerText; |             monster.Languages = divRed?.SelectSingleNode("strong[contains(text(),'Langues')]")?.NextSibling?.InnerText; | ||||||
|             monster.Power = divRed?.SelectSingleNode("strong[contains(text(),'Puissance')]")?.NextSibling?.InnerText; |             monster.Power = divRed?.SelectSingleNode("strong[contains(text(),'Puissance')]")?.NextSibling?.InnerText; | ||||||
|  | 
 | ||||||
|  |             List<string> actions = new List<string>(); | ||||||
|  |             List<string> beforeActions = null; | ||||||
|  |             List<string> commonActions = null; | ||||||
|  |             List<string> legendaryActions = null; | ||||||
|  |             var p = divSansSerif.SelectSingleNode("p"); | ||||||
|  |             while(p != null) | ||||||
|  |             { | ||||||
|  |                 if(p.NodeType == HtmlNodeType.Element && p.Name == "p") | ||||||
|  |                 { | ||||||
|  |                     actions.Add(p.InnerText); | ||||||
|  |                 } | ||||||
|  |                 else if(p.NodeType == HtmlNodeType.Element && p.Name == "div") | ||||||
|  |                 { | ||||||
|  |                     if(p.InnerText == "ACTIONS") | ||||||
|  |                     { | ||||||
|  |                         beforeActions = actions; | ||||||
|  |                         actions = new List<string>(); | ||||||
|  |                     } | ||||||
|  |                     else if (p.InnerText == "ACTIONS LÉGENDAIRES") | ||||||
|  |                     { | ||||||
|  |                         commonActions = actions; | ||||||
|  |                         actions = new List<string>(); | ||||||
|  |                     } | ||||||
|  |                 } | ||||||
|  |                 p = p.NextSibling; | ||||||
|  |             } | ||||||
|  |             if(commonActions == null) | ||||||
|  |             { | ||||||
|  |                 if(beforeActions == null) | ||||||
|  |                 { | ||||||
|  |                     beforeActions = actions; | ||||||
|  |                 } | ||||||
|  |                 else | ||||||
|  |                 { | ||||||
|  |                     commonActions = actions; | ||||||
|  |                 } | ||||||
|  |             } | ||||||
|  |             else | ||||||
|  |             { | ||||||
|  |                 legendaryActions = actions; | ||||||
|  |             } | ||||||
|             return monster; |             return monster; | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Yan Maniez
						Yan Maniez