Compare commits
	
		
			2 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| a96f4bf641 | |||
| a0f42204d5 | 
| @@ -64,13 +64,13 @@ jobs: | ||||
|           system.json | ||||
|         api_key: '${{secrets.ALLOW_PUSH_RELEASE}}' | ||||
|  | ||||
|     #- name: Publish to Foundry server | ||||
|     #  uses: djlechuck/foundryvtt-publish-package-action@v1 | ||||
|     #  with: | ||||
|     #    token: ${{ secrets.FOUNDRYVTT_RELEASE_TOKEN }} | ||||
|     #    id: 'foundryvtt-reve-de-dragon' | ||||
|     #    version: ${{github.event.release.tag_name}} | ||||
|     #    manifest: 'https://www.uberwald.me/gitea/${{gitea.repository}}/releases/download/${{github.event.release.tag_name}}/system.json' | ||||
|     #    notes: 'https://www.uberwald.me/gitea/public/foundryvtt-reve-de-dragon/raw/branch/v13/changelog.md' | ||||
|     #    compatibility-minimum: '13' | ||||
|     #    compatibility-verified: '13' | ||||
|     - name: Publish to Foundry server | ||||
|       uses: djlechuck/foundryvtt-publish-package-action@v1 | ||||
|       with: | ||||
|         token: ${{ secrets.FOUNDRYVTT_RELEASE_TOKEN }} | ||||
|         id: 'foundryvtt-reve-de-dragon' | ||||
|         version: ${{github.event.release.tag_name}} | ||||
|         manifest: 'https://www.uberwald.me/gitea/${{gitea.repository}}/releases/download/${{github.event.release.tag_name}}/system.json' | ||||
|         notes: 'https://www.uberwald.me/gitea/public/foundryvtt-reve-de-dragon/raw/branch/v13/changelog.md' | ||||
|         compatibility-minimum: '13' | ||||
|         compatibility-verified: '13' | ||||
| @@ -79,6 +79,11 @@ select, | ||||
| :root { | ||||
|   /* =================== 2. DEBUGGING HIGHLIGHTERS ============ */ | ||||
|   /* =================== 3. some constants ============ */ | ||||
|   --fieldset-background: url(/ui/parchment.jpg); | ||||
|   --rdd-color-text-primary: rgba(10, 10, 10, 0.9); | ||||
|   --rdd-input-background: rgba(0, 0, 0, 0.05); | ||||
|   --rdd-color-border-input: rgba(0, 0, 0, 0.2); | ||||
|   --rdd-bg-input: rgba(255, 255, 255, 0.1); | ||||
|   --color-controls: rgba(0, 0, 0, 0.9); | ||||
|   --color-controls-light: hsla(0, 0%, 20%, 0.8); | ||||
|   --color-controls-hover: hsla(60, 100%, 75%, 0.7); | ||||
| @@ -139,30 +144,274 @@ select, | ||||
|   /*when navigating through the items using the arrow keys:*/ | ||||
|   /*************************************************************/ | ||||
| } | ||||
| .system-foundryvtt-reve-de-dragon .application.sheet.fvtt-rdd .window-content { | ||||
| .system-foundryvtt-reve-de-dragon .monnaie-content { | ||||
|   padding: 0px; | ||||
|   background: #011d33 url(../assets/ui/bg_header.webp) no-repeat left top; | ||||
|   color: #ffffff; | ||||
| } | ||||
| .system-foundryvtt-reve-de-dragon .monnaie-content .editor, | ||||
| .system-foundryvtt-reve-de-dragon .monnaie-content .editor-content { | ||||
|   height: auto; | ||||
|   min-height: 100px; | ||||
|   background: var(--rdd-bg-input-alt); | ||||
|   padding: 5px; | ||||
|   border-radius: 3px; | ||||
|   color: var(--rdd-color-text-primary); | ||||
| } | ||||
| .system-foundryvtt-reve-de-dragon .monnaie-content .window-content { | ||||
|   font-family: CaslonAntique; | ||||
|   text-align: justify; | ||||
|   font-size: 1rem; | ||||
|   letter-spacing: 1px; | ||||
|   padding: 0% 0 0 0; | ||||
|   font-size: calc(var(--font-size-standard) * 1); | ||||
|   color: var(--color-dark-1); | ||||
|   background: var(--background-image-base) no-repeat; | ||||
|   background-size: 100% 100%; | ||||
| } | ||||
| .system-foundryvtt-reve-de-dragon .application.sheet.fvtt-rdd section.window-content { | ||||
|   padding: 0rem; | ||||
| .system-foundryvtt-reve-de-dragon .monnaie-content fieldset { | ||||
|   background: var(--fieldset-background); | ||||
|   color: var(--rdd-color-text-primary); | ||||
|   margin-bottom: 4px; | ||||
|   border-radius: 6px; | ||||
|   border-color: var(--rdd-color-text-primary); | ||||
|   border-width: 2px; | ||||
| } | ||||
| .system-foundryvtt-reve-de-dragon .application.sheet.fvtt-rdd section.window-content section header.sheet-header { | ||||
|   background: #011d33 url(../assets/ui/bg_header.webp) no-repeat left top; | ||||
|   color: #ffffff; | ||||
| .system-foundryvtt-reve-de-dragon .monnaie-content .form-group { | ||||
|   display: flex; | ||||
|   flex-direction: row; | ||||
|   flex-wrap: wrap; | ||||
|   justify-content: flex-start; | ||||
|   align-items: center; | ||||
|   padding: 2px 0; | ||||
|   border-bottom: 1px solid var(--rdd-color-shadow-primary); | ||||
|   font-size: 0.9rem; | ||||
| } | ||||
| .system-foundryvtt-reve-de-dragon .application.sheet.fvtt-rdd section.window-content section header.sheet-header :is( | ||||
| .system-foundryvtt-reve-de-dragon .monnaie-content .form-group label { | ||||
|   font-weight: normal; | ||||
|   flex: 2; | ||||
|   padding-left: 5px; | ||||
|   margin: 0; | ||||
|   color: var(--rdd-color-text-primary); | ||||
| } | ||||
| .system-foundryvtt-reve-de-dragon .monnaie-content .form-group .attribute-value, | ||||
| .system-foundryvtt-reve-de-dragon .monnaie-content .form-group input[type="text"], | ||||
| .system-foundryvtt-reve-de-dragon .monnaie-content .form-group input[type="number"], | ||||
| .system-foundryvtt-reve-de-dragon .monnaie-content .form-group select { | ||||
|   flex: 3; | ||||
|   background: var(--rdd-input-background); | ||||
|   border: 1px solid var(--rdd-color-border-input); | ||||
|   color: var(--rdd-color-text-input); | ||||
|   padding: 2px 2px; | ||||
|   border-radius: 3px; | ||||
| } | ||||
| .system-foundryvtt-reve-de-dragon .monnaie-content .form-group input[type="checkbox"] { | ||||
|   flex: 0 0 20px; | ||||
|   margin-left: 5px; | ||||
| } | ||||
| .system-foundryvtt-reve-de-dragon .monnaie-content .sheet-header-row { | ||||
|   display: flex; | ||||
|   flex-direction: row; | ||||
|   align-items: center; | ||||
| } | ||||
| .system-foundryvtt-reve-de-dragon .monnaie-content .sheet-header-row h1, | ||||
| .system-foundryvtt-reve-de-dragon .monnaie-content .sheet-header-row input { | ||||
|   font-family: CaslonAntique; | ||||
|   font-size: 2.5rem; | ||||
|   font-weight: normal; | ||||
|   color: var(--window-header-title-color); | ||||
|   margin: 4px; | ||||
|   height: 3rem; | ||||
| } | ||||
| .system-foundryvtt-reve-de-dragon .monnaie-content :is( | ||||
|     input[type="text"], | ||||
|     input[type="number"], | ||||
|     input[type="password"], | ||||
|     input[type="datetime-local"], | ||||
|     input[type="date"], | ||||
|     input[type="time"]) { | ||||
|     input[type="time"] | ||||
|   ) { | ||||
|   color: rgba(255, 255, 255, 0.75); | ||||
|   background: rgba(255, 255, 255, 0.1); | ||||
|   border: 0 none; | ||||
|   margin-bottom: 0.2rem; | ||||
| } | ||||
| .system-foundryvtt-reve-de-dragon .munition-content { | ||||
|   padding: 0px; | ||||
|   background: #011d33 url(../assets/ui/bg_header.webp) no-repeat left top; | ||||
|   color: #ffffff; | ||||
| } | ||||
| .system-foundryvtt-reve-de-dragon .munition-content .editor, | ||||
| .system-foundryvtt-reve-de-dragon .munition-content .editor-content { | ||||
|   height: auto; | ||||
|   min-height: 100px; | ||||
|   background: var(--rdd-bg-input-alt); | ||||
|   padding: 5px; | ||||
|   border-radius: 3px; | ||||
|   color: var(--rdd-color-text-primary); | ||||
| } | ||||
| .system-foundryvtt-reve-de-dragon .munition-content .window-content { | ||||
|   font-family: CaslonAntique; | ||||
|   text-align: justify; | ||||
|   font-size: 1rem; | ||||
|   letter-spacing: 1px; | ||||
|   padding: 0% 0 0 0; | ||||
|   font-size: calc(var(--font-size-standard) * 1); | ||||
|   color: var(--color-dark-1); | ||||
|   background-size: 100% 100%; | ||||
| } | ||||
| .system-foundryvtt-reve-de-dragon .munition-content fieldset { | ||||
|   background: var(--fieldset-background); | ||||
|   color: var(--rdd-color-text-primary); | ||||
|   margin-bottom: 4px; | ||||
|   border-radius: 6px; | ||||
|   border-color: var(--rdd-color-text-primary); | ||||
|   border-width: 2px; | ||||
| } | ||||
| .system-foundryvtt-reve-de-dragon .munition-content .form-group { | ||||
|   display: flex; | ||||
|   flex-direction: row; | ||||
|   flex-wrap: wrap; | ||||
|   justify-content: flex-start; | ||||
|   align-items: center; | ||||
|   padding: 2px 0; | ||||
|   border-bottom: 1px solid var(--rdd-color-shadow-primary); | ||||
|   font-size: 0.9rem; | ||||
| } | ||||
| .system-foundryvtt-reve-de-dragon .munition-content .form-group label { | ||||
|   font-weight: normal; | ||||
|   flex: 2; | ||||
|   padding-left: 5px; | ||||
|   margin: 0; | ||||
|   color: var(--rdd-color-text-primary); | ||||
| } | ||||
| .system-foundryvtt-reve-de-dragon .munition-content .form-group .attribute-value, | ||||
| .system-foundryvtt-reve-de-dragon .munition-content .form-group input[type="text"], | ||||
| .system-foundryvtt-reve-de-dragon .munition-content .form-group input[type="number"], | ||||
| .system-foundryvtt-reve-de-dragon .munition-content .form-group select { | ||||
|   flex: 3; | ||||
|   background: var(--rdd-input-background); | ||||
|   border: 1px solid var(--rdd-color-border-input); | ||||
|   color: var(--rdd-color-text-input); | ||||
|   padding: 2px 2px; | ||||
|   border-radius: 3px; | ||||
| } | ||||
| .system-foundryvtt-reve-de-dragon .munition-content .form-group input[type="checkbox"] { | ||||
|   flex: 0 0 20px; | ||||
|   margin-left: 5px; | ||||
| } | ||||
| .system-foundryvtt-reve-de-dragon .munition-content .sheet-header-row { | ||||
|   display: flex; | ||||
|   flex-direction: row; | ||||
|   align-items: center; | ||||
| } | ||||
| .system-foundryvtt-reve-de-dragon .munition-content .sheet-header-row h1, | ||||
| .system-foundryvtt-reve-de-dragon .munition-content .sheet-header-row input { | ||||
|   font-family: CaslonAntique; | ||||
|   font-size: 2.5rem; | ||||
|   font-weight: normal; | ||||
|   color: var(--window-header-title-color); | ||||
|   margin: 4px; | ||||
|   height: 3rem; | ||||
| } | ||||
| .system-foundryvtt-reve-de-dragon .munition-content :is( | ||||
|     input[type="text"], | ||||
|     input[type="number"], | ||||
|     input[type="password"], | ||||
|     input[type="datetime-local"], | ||||
|     input[type="date"], | ||||
|     input[type="time"] | ||||
|   ) { | ||||
|   color: rgba(255, 255, 255, 0.75); | ||||
|   background: rgba(255, 255, 255, 0.1); | ||||
|   border: 0 none; | ||||
|   margin-bottom: 0.2rem; | ||||
| } | ||||
| .system-foundryvtt-reve-de-dragon .tarot-content { | ||||
|   padding: 0px; | ||||
|   background: #011d33 url(../assets/ui/bg_header.webp) no-repeat left top; | ||||
|   color: #ffffff; | ||||
| } | ||||
| .system-foundryvtt-reve-de-dragon .tarot-content .editor, | ||||
| .system-foundryvtt-reve-de-dragon .tarot-content .editor-content { | ||||
|   height: auto; | ||||
|   min-height: 100px; | ||||
|   background: var(--rdd-bg-input-alt); | ||||
|   padding: 5px; | ||||
|   border-radius: 3px; | ||||
|   color: var(--rdd-color-text-primary); | ||||
| } | ||||
| .system-foundryvtt-reve-de-dragon .tarot-content .window-content { | ||||
|   font-family: CaslonAntique; | ||||
|   text-align: justify; | ||||
|   font-size: 1rem; | ||||
|   letter-spacing: 1px; | ||||
|   padding: 0% 0 0 0; | ||||
|   font-size: calc(var(--font-size-standard) * 1); | ||||
|   color: var(--color-dark-1); | ||||
|   background-size: 100% 100%; | ||||
| } | ||||
| .system-foundryvtt-reve-de-dragon .tarot-content fieldset { | ||||
|   background: var(--fieldset-background); | ||||
|   color: var(--rdd-color-text-primary); | ||||
|   margin-bottom: 4px; | ||||
|   border-radius: 6px; | ||||
|   border-color: var(--rdd-color-text-primary); | ||||
|   border-width: 2px; | ||||
| } | ||||
| .system-foundryvtt-reve-de-dragon .tarot-content .form-group { | ||||
|   display: flex; | ||||
|   flex-direction: row; | ||||
|   flex-wrap: wrap; | ||||
|   justify-content: flex-start; | ||||
|   align-items: center; | ||||
|   padding: 2px 0; | ||||
|   border-bottom: 1px solid var(--rdd-color-shadow-primary); | ||||
|   font-size: 0.9rem; | ||||
| } | ||||
| .system-foundryvtt-reve-de-dragon .tarot-content .form-group label { | ||||
|   font-weight: normal; | ||||
|   flex: 2; | ||||
|   padding-left: 5px; | ||||
|   margin: 0; | ||||
|   color: var(--rdd-color-text-primary); | ||||
| } | ||||
| .system-foundryvtt-reve-de-dragon .tarot-content .form-group .attribute-value, | ||||
| .system-foundryvtt-reve-de-dragon .tarot-content .form-group input[type="text"], | ||||
| .system-foundryvtt-reve-de-dragon .tarot-content .form-group input[type="number"], | ||||
| .system-foundryvtt-reve-de-dragon .tarot-content .form-group select { | ||||
|   flex: 3; | ||||
|   background: var(--rdd-input-background); | ||||
|   border: 1px solid var(--rdd-color-border-input); | ||||
|   color: var(--rdd-color-text-input); | ||||
|   padding: 2px 2px; | ||||
|   border-radius: 3px; | ||||
| } | ||||
| .system-foundryvtt-reve-de-dragon .tarot-content .form-group input[type="checkbox"] { | ||||
|   flex: 0 0 20px; | ||||
|   margin-left: 5px; | ||||
| } | ||||
| .system-foundryvtt-reve-de-dragon .tarot-content .sheet-header-row { | ||||
|   display: flex; | ||||
|   flex-direction: row; | ||||
|   align-items: center; | ||||
| } | ||||
| .system-foundryvtt-reve-de-dragon .tarot-content .sheet-header-row h1, | ||||
| .system-foundryvtt-reve-de-dragon .tarot-content .sheet-header-row input { | ||||
|   font-family: CaslonAntique; | ||||
|   font-size: 2.5rem; | ||||
|   font-weight: normal; | ||||
|   color: var(--window-header-title-color); | ||||
|   margin: 4px; | ||||
|   height: 3rem; | ||||
| } | ||||
| .system-foundryvtt-reve-de-dragon .tarot-content :is( | ||||
|     input[type="text"], | ||||
|     input[type="number"], | ||||
|     input[type="password"], | ||||
|     input[type="datetime-local"], | ||||
|     input[type="date"], | ||||
|     input[type="time"] | ||||
|   ) { | ||||
|   color: rgba(255, 255, 255, 0.75); | ||||
|   background: rgba(255, 255, 255, 0.1); | ||||
|   border: 0 none; | ||||
|   | ||||
| @@ -19,7 +19,7 @@ const css = gulp.series(compileLESS); | ||||
| /* ----------------------------------------- */ | ||||
| /*  Watch Updates | ||||
| /* ----------------------------------------- */ | ||||
| const SIMPLE_LESS = ["less/*.less"]; | ||||
| const SIMPLE_LESS = ["less/*.less", "less/item/*.less"]; | ||||
|  | ||||
| function watchUpdates() { | ||||
|   gulp.watch(SIMPLE_LESS, css); | ||||
|   | ||||
| @@ -1,15 +1,21 @@ | ||||
| :root { | ||||
|    | ||||
|   /* =================== 2. DEBUGGING HIGHLIGHTERS ============ */  | ||||
|  | ||||
|   /* =================== 2. DEBUGGING HIGHLIGHTERS ============ */ | ||||
|     // --debug-background-color-red: #ff000054; | ||||
|     // --debug-background-color-blue: #1d00ff54; | ||||
|     // --debug-background-color-green: #54ff0054; | ||||
|    | ||||
|  | ||||
|     // --debug-box-shadow-red: inset 0 0 2px red; | ||||
|     // --debug-box-shadow-blue: inset 0 0 2px blue; | ||||
|     // --debug-box-shadow-green: inset 0 0 2px green; | ||||
|    | ||||
|  | ||||
|  | ||||
|   /* =================== 3. some constants ============ */ | ||||
|     --fieldset-background: url(/ui/parchment.jpg); | ||||
|     --rdd-color-text-primary: rgba(10, 10, 10, 0.9); | ||||
|     --rdd-input-background:rgba(0, 0, 0, 0.05); | ||||
|     --rdd-color-border-input: rgba(0, 0, 0, 0.2); | ||||
|     --rdd-bg-input: rgba(255, 255, 255, 0.1); | ||||
|     --color-controls:rgba(0, 0, 0, 0.9); | ||||
|     --color-controls-light:hsla(0, 0%, 20%, 0.8); | ||||
|     --color-controls-hover:hsla(60, 100%, 75%, 0.7); | ||||
| @@ -30,9 +36,9 @@ | ||||
|       hsla(250, 30%, 30%, 0.7) 50%, | ||||
|       hsla(250, 50%, 40%, 0.1) 75%, | ||||
|       hsla(30, 30%, 40%, 0.1) 75%, | ||||
|       hsla(50, 100%, 80%, 0.7)  | ||||
|       hsla(50, 100%, 80%, 0.7) | ||||
|     ); | ||||
|    | ||||
|  | ||||
|     --background-custom-button: linear-gradient(to bottom, rgba(33, 55, 74, 0.988) 5%, rgba(21, 40, 51, 0.671) 100%); | ||||
|     --background-custom-button-hover: linear-gradient(to bottom, rgb(128, 0, 0) 5%, rgb(62, 1, 1) 100%); | ||||
|     --background-control-selected: linear-gradient(to bottom, hsla(0, 100%, 25%, 0.5) 5%, hsla(0, 100%, 12%, 0.5) 100%); | ||||
| @@ -42,4 +48,3 @@ | ||||
|     --background-error:hsla(16, 100%, 50%, 0.8); | ||||
|     --color-profile-border: hsla(0, 0%, 80%, 0.05); | ||||
|   } | ||||
|    | ||||
| @@ -4,6 +4,8 @@ | ||||
| .system-foundryvtt-reve-de-dragon { | ||||
|   @import "sheets.less"; | ||||
|   @import "item/monnaie.less"; | ||||
|   @import "item/munition.less"; | ||||
|   @import "item/tarot.less"; | ||||
|  | ||||
|   // body { | ||||
|   //   --input-height: 1.4rem; | ||||
|   | ||||
| @@ -1,10 +1,7 @@ | ||||
| .application.sheet.fvtt-rdd { | ||||
|   .sheet-common(); | ||||
|   section.window-content{ | ||||
|     padding: 0rem; | ||||
| // Styles pour la feuille d'objet Monnaie | ||||
| .monnaie-content { | ||||
|  | ||||
|   .item-sheet-common(); | ||||
|   .item-sheet-header(); | ||||
|  | ||||
|     section header.sheet-header { | ||||
|         .sheet-header(); | ||||
|     } | ||||
|   } | ||||
| } | ||||
|   | ||||
							
								
								
									
										7
									
								
								less/item/munition.less
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								less/item/munition.less
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| // Styles pour la feuille d'objet Monnaie | ||||
| .munition-content { | ||||
|  | ||||
|   .item-sheet-common(); | ||||
|   .item-sheet-header(); | ||||
|  | ||||
| } | ||||
							
								
								
									
										7
									
								
								less/item/tarot.less
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								less/item/tarot.less
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| // Styles pour la feuille d'objet Monnaie | ||||
| .tarot-content { | ||||
|  | ||||
|   .item-sheet-common(); | ||||
|   .item-sheet-header(); | ||||
|  | ||||
| } | ||||
| @@ -1,21 +1,96 @@ | ||||
| .sheet-common() { | ||||
| .item-sheet-common() { | ||||
|   padding: 0px; | ||||
|  | ||||
|   .window-content{ | ||||
|   // Styles pour la section de description, si le partiel utilise une structure standard | ||||
|   .editor, | ||||
|   .editor-content { | ||||
|     height: auto; // Ajuster selon le besoin | ||||
|     min-height: 100px; // Hauteur minimale pour la description | ||||
|     background: var(--rdd-bg-input-alt); // Une couleur de fond alternative | ||||
|     padding: 5px; | ||||
|     border-radius: 3px; | ||||
|     color: var(--rdd-color-text-primary); | ||||
|   } | ||||
|  | ||||
|   .window-content { | ||||
|     font-family: CaslonAntique; | ||||
|     text-align: justify; | ||||
|     font-size: 1rem; | ||||
|     letter-spacing: 1px; | ||||
|    | ||||
|     padding: 0% 0 0 0; | ||||
|  | ||||
|     font-size: calc(var(--font-size-standard) * 1); | ||||
|     color: var(--color-dark-1); | ||||
|     background: var(--background-image-base) no-repeat; | ||||
|     background-size: 100% 100%; | ||||
|   } | ||||
|  | ||||
|   fieldset { | ||||
|     background: var(--fieldset-background); | ||||
|     color: var(--rdd-color-text-primary); | ||||
|     margin-bottom: 4px; | ||||
|     border-radius: 6px; | ||||
|     border-color: var(--rdd-color-text-primary); | ||||
|     border-width: 2px; | ||||
|   } | ||||
|  | ||||
|   .form-group { | ||||
|     display: flex; | ||||
|     flex-direction: row; | ||||
|     flex-wrap: wrap; | ||||
|     justify-content: flex-start; | ||||
|     align-items: center; | ||||
|     padding: 2px 0; | ||||
|     border-bottom: 1px solid var(--rdd-color-shadow-primary); | ||||
|     font-size: 0.9rem; | ||||
|  | ||||
|     label { | ||||
|       font-weight: normal; | ||||
|       flex: 2; | ||||
|       padding-left: 5px; | ||||
|       margin: 0; | ||||
|       color: var( | ||||
|         --rdd-color-text-primary | ||||
|       ); // Assurez-vous que cette variable existe dans colors.less | ||||
|     } | ||||
|  | ||||
|     .attribute-value, | ||||
|     input[type="text"], | ||||
|     input[type="number"], | ||||
|     select { | ||||
|       flex: 3; | ||||
|       background: var(--rdd-input-background); | ||||
|       border: 1px solid var(--rdd-color-border-input); // Assurez-vous que cette variable existe | ||||
|       color: var( | ||||
|         --rdd-color-text-input | ||||
|       ); // Assurez-vous que cette variable existe | ||||
|       padding: 2px 2px; // Augmentation du padding vertical | ||||
|       border-radius: 3px; | ||||
|     } | ||||
|  | ||||
|     input[type="checkbox"] { | ||||
|       flex: 0 0 20px; // Taille fixe pour les cases à cocher | ||||
|       margin-left: 5px; | ||||
|     } | ||||
|   } | ||||
| } | ||||
|  | ||||
| .sheet-header() { | ||||
| .item-sheet-header() { | ||||
|   background: #011d33 url(../assets/ui/bg_header.webp) no-repeat left top; | ||||
|   color: rgba(255, 255, 255, 1); | ||||
|   .sheet-header-row { | ||||
|     display: flex; | ||||
|     flex-direction: row; | ||||
|     align-items: center; | ||||
|     h1, | ||||
|     input { | ||||
|       font-family: CaslonAntique; | ||||
|       font-size: 2.5rem; | ||||
|       font-weight: normal; | ||||
|       color: var(--window-header-title-color); | ||||
|       margin: 4px; | ||||
|       height: 3rem; | ||||
|     } | ||||
|   } | ||||
|  | ||||
|   :is( | ||||
|     input[type="text"], | ||||
| @@ -23,10 +98,11 @@ | ||||
|     input[type="password"], | ||||
|     input[type="datetime-local"], | ||||
|     input[type="date"], | ||||
|     input[type="time"]) { | ||||
|       color: rgba(255, 255, 255, 0.75); | ||||
|       background: rgba(255, 255, 255, 0.1); | ||||
|       border: 0 none; | ||||
|       margin-bottom: 0.2rem; | ||||
|     input[type="time"] | ||||
|   ) { | ||||
|     color: rgba(255, 255, 255, 0.75); | ||||
|     background: rgba(255, 255, 255, 0.1); | ||||
|     border: 0 none; | ||||
|     margin-bottom: 0.2rem; | ||||
|   } | ||||
| } | ||||
|   | ||||
| @@ -15,6 +15,7 @@ import { ItemAction } from "../item/item-actions.js"; | ||||
|  * @extends {ActorSheet} | ||||
|  */ | ||||
| export class RdDBaseActorSheet extends foundry.appv1.sheets.ActorSheet { | ||||
|   static _warnedAppV1 = true | ||||
|  | ||||
|   /** @override */ | ||||
|   static get defaultOptions() { | ||||
|   | ||||
| @@ -53,7 +53,7 @@ export default class RdDItemBaseSheet extends HandlebarsApplicationMixin(foundry | ||||
|   static DEFAULT_OPTIONS = { | ||||
|     classes: ["fvtt-rdd", "item"], | ||||
|     position: { | ||||
|       width: 600, | ||||
|       width: 448, | ||||
|       height: "auto", | ||||
|     }, | ||||
|     form: { | ||||
|   | ||||
| @@ -13,7 +13,7 @@ export default class RdDMonnaieSheet extends RdDItemBaseSheet { | ||||
|     RdDItemBaseSheet.DEFAULT_OPTIONS, | ||||
|     { | ||||
|       classes: ["fvtt-rdd", "item", "monnaie"], | ||||
|       position: { width: 400 }, | ||||
|       position: { width: 448 }, | ||||
|       window: { contentClasses: ["monnaie-content"] } | ||||
|     }) | ||||
|  | ||||
|   | ||||
| @@ -12,7 +12,7 @@ export default class RdDMunitionSheet extends RdDItemBaseSheet { | ||||
|     RdDItemBaseSheet.DEFAULT_OPTIONS, | ||||
|     { | ||||
|       classes: ["fvtt-rdd", "item", "munition"], | ||||
|       position: { width: 400 }, | ||||
|       position: { width: 448 }, | ||||
|       window: { contentClasses: ["munition-content"] } | ||||
|     }) | ||||
|  | ||||
|   | ||||
| @@ -12,7 +12,7 @@ export default class RdDTarotSheet extends RdDItemBaseSheet { | ||||
|     RdDItemBaseSheet.DEFAULT_OPTIONS, | ||||
|     { | ||||
|       classes: ["fvtt-rdd", "item", "tarot"], | ||||
|       position: { width: 400 }, | ||||
|       position: { width: 448 }, | ||||
|       window: { contentClasses: ["tarot-content"] } | ||||
|     }) | ||||
|  | ||||
|   | ||||
| @@ -1,7 +1,11 @@ | ||||
| import { RdDItem } from "../item.js"; | ||||
|  | ||||
| export default class RdDItemMonnaie extends RdDItem { | ||||
|   static get defaultIcon() { | ||||
|     return 'systems/foundryvtt-reve-de-dragon/icons/objets/piece_etain_poisson.webp' | ||||
|  | ||||
|   constructor(data, context) { | ||||
|     if (!data.img) { | ||||
|       data.img = 'systems/foundryvtt-reve-de-dragon/icons/objets/piece_etain_poisson.webp' | ||||
|     } | ||||
|     super(data, context); | ||||
|   } | ||||
| } | ||||
|   | ||||
| @@ -2,6 +2,6 @@ import { RdDItem } from "../item.js"; | ||||
|  | ||||
| export default class RdDItemTarot extends RdDItem { | ||||
|   static get defaultIcon() { | ||||
|     return 'systems/foundryvtt-reve-de-dragon/icons/objets/tarot.webp' | ||||
|     return 'systems/foundryvtt-reve-de-dragon/icons/tarots/dos-tarot.webp' | ||||
|   } | ||||
| } | ||||
|   | ||||
| @@ -78,6 +78,8 @@ export const defaultItemImg = { | ||||
|   souffle: "systems/foundryvtt-reve-de-dragon/icons/souffle_dragon.webp", | ||||
|   tarot: "systems/foundryvtt-reve-de-dragon/icons/tarots/dos-tarot.webp", | ||||
|   tete: "systems/foundryvtt-reve-de-dragon/icons/tete_dragon.webp", | ||||
|   monnaie:"systems/foundryvtt-reve-de-dragon/icons/objets/piece_etain_poisson.webp", | ||||
|   munition: "systems/foundryvtt-reve-de-dragon/icons/objets/fleche.webp" | ||||
| } | ||||
|  | ||||
| /* -------------------------------------------- */ | ||||
|   | ||||
| @@ -112,6 +112,7 @@ export class RdDTokenHud { | ||||
|  | ||||
|   /* -------------------------------------------- */ | ||||
|   static async addTokenHudExtensions(app, html, tokenId) { | ||||
|     console.log(`Adding token HUD extensions for token ${tokenId}`); | ||||
|     const controlIconCombat = $(html).find('.control-icon[data-action=combat]'); | ||||
|     if (controlIconCombat.length > 0) { | ||||
|       controlIconCombat.click(event => { | ||||
| @@ -129,7 +130,7 @@ export class RdDTokenHud { | ||||
|  | ||||
|   /* -------------------------------------------- */ | ||||
|   static async _configureSubMenu(insertionPoint, template, hudData, onMenuItem) { | ||||
|     const hud = $(await renderTemplate(template, hudData)); | ||||
|     const hud = $(await foundry.applications.handlebars.renderTemplate(template, hudData)); | ||||
|     const list = hud.find('div.rdd-hud-list'); | ||||
|  | ||||
|     RdDTokenHud._toggleHudListActive(hud, list); | ||||
|   | ||||
| @@ -15,6 +15,8 @@ const TEMPLATE_CALENDRIER = "systems/foundryvtt-reve-de-dragon/templates/time/ca | ||||
| const INITIAL_CALENDAR_POS = { top: 200, left: 200, horlogeAnalogique: true }; | ||||
| /* -------------------------------------------- */ | ||||
| export class RdDCalendrier extends Application { | ||||
|   static _warnedAppV1 = true | ||||
|  | ||||
|   static initSettings() { | ||||
|     game.settings.register(SYSTEM_RDD, "liste-nombre-astral", { | ||||
|       name: "liste-nombre-astral", | ||||
| @@ -242,7 +244,7 @@ export class RdDCalendrier extends Application { | ||||
|   } | ||||
|  | ||||
|   /** | ||||
|    *  | ||||
|    * | ||||
|    * @param {*} indexDate la date pour laquelle obtenir le nombre astral. Si undefined, on prend la date du jour | ||||
|    * @returns le nombre astral pour la date, ou pour la date du jour si la date n'est pas fournie. | ||||
|    *  Si aucun nombre astral n'est trouvé, retourne 0 (cas où l'on demanderait un nombre astral en dehors des 12 jours courant et à venir) | ||||
|   | ||||
| @@ -1,14 +0,0 @@ | ||||
| <form class="{{cssClass}}" autocomplete="off"> | ||||
|   {{>"systems/foundryvtt-reve-de-dragon/templates/header-item.hbs"}} | ||||
|   <nav class="sheet-tabs tabs" data-group="primary"> | ||||
|     <a class="item" data-tab="informations">Informations</a> | ||||
|     {{>"systems/foundryvtt-reve-de-dragon/templates/item/partial-tab-environnement.hbs"}} | ||||
|   </nav> | ||||
|   <section class="sheet-body"> | ||||
|     <div class="tab items flexcol" data-group="primary" data-tab="informations"> | ||||
|       {{>"systems/foundryvtt-reve-de-dragon/templates/item/partial-inventaire.hbs"}} | ||||
|       {{>"systems/foundryvtt-reve-de-dragon/templates/partial-item-description.hbs"}} | ||||
|     </div> | ||||
|     {{>"systems/foundryvtt-reve-de-dragon/templates/item/partial-environnement.hbs"}} | ||||
|   </section> | ||||
| </form> | ||||
| @@ -1,14 +0,0 @@ | ||||
| <form class="{{cssClass}}" autocomplete="off"> | ||||
|   {{>"systems/foundryvtt-reve-de-dragon/templates/header-item.hbs"}} | ||||
|   <nav class="sheet-tabs tabs" data-group="primary"> | ||||
|     <a class="item" data-tab="informations">Informations</a> | ||||
|     {{>"systems/foundryvtt-reve-de-dragon/templates/item/partial-tab-environnement.hbs"}} | ||||
|   </nav> | ||||
|   <section class="sheet-body"> | ||||
|     <div class="tab items flexcol" data-group="primary" data-tab="informations"> | ||||
|       {{>"systems/foundryvtt-reve-de-dragon/templates/item/partial-inventaire.hbs"}} | ||||
|       {{>"systems/foundryvtt-reve-de-dragon/templates/partial-item-description.hbs"}} | ||||
|     </div> | ||||
|     {{>"systems/foundryvtt-reve-de-dragon/templates/item/partial-environnement.hbs"}} | ||||
|   </section> | ||||
| </form> | ||||
| @@ -1,14 +0,0 @@ | ||||
| <form class="{{cssClass}}" autocomplete="off"> | ||||
|   {{>"systems/foundryvtt-reve-de-dragon/templates/header-item.hbs"}} | ||||
|   <nav class="sheet-tabs tabs" data-group="primary"> | ||||
|     <a class="item" data-tab="informations">Informations</a> | ||||
|     {{>"systems/foundryvtt-reve-de-dragon/templates/item/partial-tab-environnement.hbs"}} | ||||
|   </nav> | ||||
|   <section class="sheet-body"> | ||||
|     <div class="tab items flexcol" data-group="primary" data-tab="informations"> | ||||
|       {{>"systems/foundryvtt-reve-de-dragon/templates/item/partial-inventaire.hbs"}} | ||||
|       {{>"systems/foundryvtt-reve-de-dragon/templates/partial-item-description.hbs"}} | ||||
|     </div> | ||||
|     {{>"systems/foundryvtt-reve-de-dragon/templates/item/partial-environnement.hbs"}} | ||||
|   </section> | ||||
| </form> | ||||
| @@ -1,27 +0,0 @@ | ||||
| <form class="rdd-item-sheet-tarot" autocomplete="off"> | ||||
|   <header class="sheet-header"> | ||||
|     <div class="header-fields"> | ||||
|       <h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1> | ||||
|     </div> | ||||
|   </header> | ||||
|   <section class="sheet-body"> | ||||
|     <div class="flexrow"> | ||||
|       <img class="profile-img" src="{{img}}" data-edit="img" data-tooltip="{{name}}"/> | ||||
|       <div class="flexcol"> | ||||
|         <div class="form-group"> | ||||
|           <label for="system.concept">Aspect</label> | ||||
|           <input class="attribute-value" type="text" name="system.concept" value="{{system.concept}}" data-dtype="String" /> | ||||
|         </div> | ||||
|         <div class="form-group"> | ||||
|           <label for="system.aspect">Sens</label> | ||||
|           <select name="system.aspect" data-dtype="String"> | ||||
|             {{#select system.aspect}} | ||||
|             {{>"systems/foundryvtt-reve-de-dragon/templates/enum-aspect-tarot.hbs"}} | ||||
|             {{/select}} | ||||
|           </select> | ||||
|         </div> | ||||
|         {{>"systems/foundryvtt-reve-de-dragon/templates/partial-item-frequence.hbs"}} | ||||
|         {{>"systems/foundryvtt-reve-de-dragon/templates/partial-item-description.hbs"}} | ||||
|       </div> | ||||
|     </section> | ||||
| </form> | ||||
| @@ -1,6 +1,8 @@ | ||||
| <header class="sheet-header"> | ||||
|   <div class="sheet-header-row"> | ||||
|     <img class="profile-img" src="{{item.img}}" data-edit="img" data-action="editImage" data-tooltip="{{item.name}}"/> | ||||
|     <div class="header-fields"> | ||||
|         <h1 class="charname"><input name="name" type="text" value="{{item.name}}" placeholder="Name"/></h1> | ||||
|     </div> | ||||
|   </div> | ||||
| </header> | ||||
|   | ||||
							
								
								
									
										22
									
								
								templates/sheets/item/tarot.hbs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								templates/sheets/item/tarot.hbs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,22 @@ | ||||
| <section> | ||||
|   {{> "systems/foundryvtt-reve-de-dragon/templates/sheets/item/common/header.hbs"}} | ||||
|  | ||||
|   <fieldset> | ||||
|     <div class="form-group"> | ||||
|       <label for="system.concept">Concept</label> | ||||
|       <input type="text" name="system.concept" value="{{system.concept}}" /> | ||||
|     </div> | ||||
|  | ||||
|     <div class="form-group"> | ||||
|       <label for="system.aspect">Aspect</label> | ||||
|       <input type="text" name="system.aspect" value="{{system.aspect}}" /> | ||||
|     </div> | ||||
|  | ||||
|     <div class="form-group"> | ||||
|       <label for="system.frequence">Fréquence</label> | ||||
|       <input type="number" name="system.frequence" value="{{system.frequence}}" data-dtype="Number" /> | ||||
|     </div> | ||||
|   </fieldset> | ||||
|   {{>"systems/foundryvtt-reve-de-dragon/templates/sheets/item/common/template-description.hbs"}} | ||||
|  | ||||
| </section> | ||||
		Reference in New Issue
	
	Block a user