Browse Source

:lipstick: Associe les icones

DricomDragon 9 months ago
parent
commit
e2a2680e49

+ 1 - 0
godot/composants/objets/arene/arene.gd

@@ -1,3 +1,4 @@
+@icon("res://composants/objets/arene/IconeArene.svg")
 extends Node2D
 
 

+ 1 - 0
godot/composants/objets/balle/balle.gd

@@ -1,3 +1,4 @@
+@icon("res://composants/objets/balle/SphereShape3D.svg")
 class_name Balle
 extends CharacterBody2D
 

+ 58 - 0
godot/composants/objets/brique/IconeConteneurBriques.svg

@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+   height="16"
+   viewBox="0 0 16 16"
+   width="16"
+   version="1.1"
+   id="svg1"
+   sodipodi:docname="IconeConteneurBriques.svg"
+   inkscape:version="1.3.2 (091e20ef0f, 2023-11-25)"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:svg="http://www.w3.org/2000/svg">
+  <defs
+     id="defs1" />
+  <sodipodi:namedview
+     id="namedview1"
+     pagecolor="#ffffff"
+     bordercolor="#000000"
+     borderopacity="0.25"
+     inkscape:showpageshadow="2"
+     inkscape:pageopacity="0.0"
+     inkscape:pagecheckerboard="0"
+     inkscape:deskcolor="#d1d1d1"
+     inkscape:zoom="51.5"
+     inkscape:cx="7.0970874"
+     inkscape:cy="8"
+     inkscape:window-width="1920"
+     inkscape:window-height="1030"
+     inkscape:window-x="0"
+     inkscape:window-y="26"
+     inkscape:window-maximized="1"
+     inkscape:current-layer="svg1" />
+  <g
+     transform="matrix(1,0,0,0.48,4e-5,-497.13177)"
+     id="g1"
+     style="fill:#0000ff">
+    <path
+       d="M 3,1 A 2,2 0 0 0 1.5859,1.58594 2,2 0 0 0 0.99996,3.00004 v 10 A 2,2 0 0 0 1.5859,14.41414 2,2 0 0 0 3,15.00008 h 10 a 2,2 0 0 0 2,-2 v -10 a 2,2 0 0 0 -2,-2 H 3 Z m 0,1 h 10 a 1,1 0 0 1 1,1 v 10 a 1,1 0 0 1 -1,1 H 3 A 1,1 0 0 1 2,13 V 3 A 1,1 0 0 1 3,2 Z M 3,3 V 5 H 5 V 3 Z m 8,0 v 2 h 2 V 3 Z m -8,8 v 2 h 2 v -2 z m 8,0 v 2 h 2 v -2 z"
+       fill="#8da5f3"
+       fill-opacity="0.98824"
+       transform="translate(0,1036.4)"
+       id="path1"
+       style="fill:#0000ff" />
+  </g>
+  <g
+     transform="matrix(1,0,0,0.48,4e-5,-489.37871)"
+     id="g2"
+     style="fill:#0000ff">
+    <path
+       d="M 3,1 A 2,2 0 0 0 1.5859,1.58594 2,2 0 0 0 0.99996,3.00004 v 10 A 2,2 0 0 0 1.5859,14.41414 2,2 0 0 0 3,15.00008 h 10 a 2,2 0 0 0 2,-2 v -10 a 2,2 0 0 0 -2,-2 H 3 Z m 0,1 h 10 a 1,1 0 0 1 1,1 v 10 a 1,1 0 0 1 -1,1 H 3 A 1,1 0 0 1 2,13 V 3 A 1,1 0 0 1 3,2 Z M 3,3 V 5 H 5 V 3 Z m 8,0 v 2 h 2 V 3 Z m -8,8 v 2 h 2 v -2 z m 8,0 v 2 h 2 v -2 z"
+       fill="#8da5f3"
+       fill-opacity="0.98824"
+       transform="translate(0,1036.4)"
+       id="path1-3"
+       style="fill:#0000ff" />
+  </g>
+</svg>

+ 37 - 0
godot/composants/objets/brique/IconeConteneurBriques.svg.import

@@ -0,0 +1,37 @@
+[remap]
+
+importer="texture"
+type="CompressedTexture2D"
+uid="uid://b1uxo24w4skds"
+path="res://.godot/imported/IconeConteneurBriques.svg-1fbbc1252001922729cfefc4a9e46e0d.ctex"
+metadata={
+"vram_texture": false
+}
+
+[deps]
+
+source_file="res://composants/objets/brique/IconeConteneurBriques.svg"
+dest_files=["res://.godot/imported/IconeConteneurBriques.svg-1fbbc1252001922729cfefc4a9e46e0d.ctex"]
+
+[params]
+
+compress/mode=0
+compress/high_quality=false
+compress/lossy_quality=0.7
+compress/hdr_compression=1
+compress/normal_map=0
+compress/channel_pack=0
+mipmaps/generate=false
+mipmaps/limit=-1
+roughness/mode=0
+roughness/src_normal=""
+process/fix_alpha_border=true
+process/premult_alpha=false
+process/normal_map_invert_y=false
+process/hdr_as_srgb=false
+process/hdr_clamp_exposure=false
+process/size_limit=0
+detect_3d/compress_to=1
+svg/scale=1.0
+editor/scale_with_editor_scale=false
+editor/convert_colors_with_editor_theme=false

+ 1 - 0
godot/composants/objets/brique/brique.gd

@@ -1,4 +1,5 @@
 @tool
+@icon("res://composants/objets/brique/IconeBrique.svg")
 class_name Brique
 extends StaticBody2D
 

+ 1 - 0
godot/composants/objets/brique/conteneur_briques.gd

@@ -1,3 +1,4 @@
+@icon("res://composants/objets/brique/IconeConteneurBriques.svg")
 class_name ConteneurDeBriques
 extends Node2D
 

+ 1 - 0
godot/composants/objets/lanceur/lanceur.gd

@@ -1,3 +1,4 @@
+@icon("res://composants/objets/lanceur/IconeLanceur.svg")
 class_name Lanceur
 extends Node2D
 ## Gere les balles du jeu.

+ 7 - 9
godot/composants/objets/raquette/IconeRaquette.svg

@@ -5,7 +5,7 @@
    width="16"
    version="1.1"
    id="svg1"
-   sodipodi:docname="RaquetteIcon.svg"
+   sodipodi:docname="IconeRaquette.svg"
    inkscape:version="1.3.2 (091e20ef0f, 2023-11-25)"
    xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
    xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
@@ -23,12 +23,12 @@
      inkscape:pagecheckerboard="0"
      inkscape:deskcolor="#d1d1d1"
      inkscape:zoom="51.5"
-     inkscape:cx="7.9902913"
+     inkscape:cx="8"
      inkscape:cy="8"
      inkscape:window-width="1920"
-     inkscape:window-height="1030"
+     inkscape:window-height="1056"
      inkscape:window-x="0"
-     inkscape:window-y="26"
+     inkscape:window-y="0"
      inkscape:window-maximized="1"
      inkscape:current-layer="svg1" />
   <g
@@ -36,12 +36,10 @@
      id="g1"
      style="fill:#0000ff">
     <path
-       d="m3 1a2 2 0 0 0 -1.4141.58594 2 2 0 0 0 -.58594 1.4141v10a2 2 0 0 0 .58594 1.4141 2 2 0 0 0 1.4141.58594h10a2 2 0 0 0 2-2v-10a2 2 0 0 0 -2-2h-10zm0 1h10a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-10a1 1 0 0 1 -1-1v-10a1 1 0 0 1 1-1zm0 1v2h2v-2zm8 0v2h2v-2zm-8 8v2h2v-2zm8 0v2h2v-2z"
-       fill="#8da5f3"
-       fill-opacity=".98824"
-       transform="translate(0 1036.4)"
        id="path1"
-       style="fill:#0000ff" />
+       style="fill:#0000ff"
+       transform="translate(0,1036.4)"
+       d="M 3,1 A 2,2 0 0 0 1.5859,1.58594 2,2 0 0 0 0.99996,3.00004 v 10 A 2,2 0 0 0 1.5859,14.41414 2,2 0 0 0 3,15.00008 h 10 a 2,2 0 0 0 2,-2 v -10 a 2,2 0 0 0 -2,-2 H 3 Z m 0,1 h 10 a 1,1 0 0 1 1,1 v 10 a 1,1 0 0 1 -1,1 H 3 A 1,1 0 0 1 2,13 V 3 A 1,1 0 0 1 3,2 Z" />
   </g>
   <path
      d="m 9.9911671,7.0861994 h -4 v -2 l -4,3 4,2.9999996 V 9.0861994 h 4 v 1.9999996 l 3.9999999,-2.9999996 -3.9999999,-3 z"

+ 1 - 0
godot/composants/objets/raquette/raquette.gd

@@ -1,3 +1,4 @@
+@icon("res://composants/objets/raquette/IconeRaquette.svg")
 class_name Raquette
 extends StaticBody2D