diff --git a/editoast/assets/sprites/BAL/sprites@2x.json b/editoast/assets/sprites/BAL/sprites@2x.json new file mode 100644 index 00000000000..4161db1ee08 --- /dev/null +++ b/editoast/assets/sprites/BAL/sprites@2x.json @@ -0,0 +1,79 @@ +{ + "CARRE": { + "height": 256, + "pixelRatio": 2, + "width": 256, + "x": 0, + "y": 0 + }, + "CARRE A": { + "height": 256, + "pixelRatio": 2, + "width": 256, + "x": 256, + "y": 0 + }, + "CARRE A CLI": { + "height": 256, + "pixelRatio": 2, + "width": 256, + "x": 512, + "y": 0 + }, + "CARRE R30": { + "height": 256, + "pixelRatio": 2, + "width": 256, + "x": 768, + "y": 0 + }, + "CARRE R60": { + "height": 256, + "pixelRatio": 2, + "width": 256, + "x": 0, + "y": 256 + }, + "CARRE RR30": { + "height": 256, + "pixelRatio": 2, + "width": 256, + "x": 0, + "y": 512 + }, + "CARRE RR60": { + "height": 256, + "pixelRatio": 2, + "width": 256, + "x": 0, + "y": 768 + }, + "CARRE VL": { + "height": 256, + "pixelRatio": 2, + "width": 256, + "x": 256, + "y": 256 + }, + "S": { + "height": 256, + "pixelRatio": 2, + "width": 256, + "x": 512, + "y": 256 + }, + "S A": { + "height": 256, + "pixelRatio": 2, + "width": 256, + "x": 768, + "y": 256 + }, + "S VL": { + "height": 256, + "pixelRatio": 2, + "width": 256, + "x": 256, + "y": 512 + } +} diff --git a/editoast/assets/sprites/BAL/sprites@2x.png b/editoast/assets/sprites/BAL/sprites@2x.png new file mode 100644 index 00000000000..5d6d9b65aac Binary files /dev/null and b/editoast/assets/sprites/BAL/sprites@2x.png differ diff --git a/editoast/assets/sprites/BAL/sprites@3x.json b/editoast/assets/sprites/BAL/sprites@3x.json new file mode 100644 index 00000000000..ed377c6d9e3 --- /dev/null +++ b/editoast/assets/sprites/BAL/sprites@3x.json @@ -0,0 +1,79 @@ +{ + "CARRE": { + "height": 384, + "pixelRatio": 3, + "width": 384, + "x": 0, + "y": 0 + }, + "CARRE A": { + "height": 384, + "pixelRatio": 3, + "width": 384, + "x": 384, + "y": 0 + }, + "CARRE A CLI": { + "height": 384, + "pixelRatio": 3, + "width": 384, + "x": 768, + "y": 0 + }, + "CARRE R30": { + "height": 384, + "pixelRatio": 3, + "width": 384, + "x": 1152, + "y": 0 + }, + "CARRE R60": { + "height": 384, + "pixelRatio": 3, + "width": 384, + "x": 1536, + "y": 0 + }, + "CARRE RR30": { + "height": 384, + "pixelRatio": 3, + "width": 384, + "x": 0, + "y": 384 + }, + "CARRE RR60": { + "height": 384, + "pixelRatio": 3, + "width": 384, + "x": 0, + "y": 768 + }, + "CARRE VL": { + "height": 384, + "pixelRatio": 3, + "width": 384, + "x": 0, + "y": 1152 + }, + "S": { + "height": 384, + "pixelRatio": 3, + "width": 384, + "x": 0, + "y": 1536 + }, + "S A": { + "height": 384, + "pixelRatio": 3, + "width": 384, + "x": 384, + "y": 384 + }, + "S VL": { + "height": 384, + "pixelRatio": 3, + "width": 384, + "x": 768, + "y": 384 + } +} diff --git a/editoast/assets/sprites/BAL/sprites@3x.png b/editoast/assets/sprites/BAL/sprites@3x.png new file mode 100644 index 00000000000..2bba1bd1137 Binary files /dev/null and b/editoast/assets/sprites/BAL/sprites@3x.png differ diff --git a/editoast/assets/sprites/BAPR/sprites@2x.json b/editoast/assets/sprites/BAPR/sprites@2x.json new file mode 100644 index 00000000000..e4b3be64117 --- /dev/null +++ b/editoast/assets/sprites/BAPR/sprites@2x.json @@ -0,0 +1,93 @@ +{ + "CARRE": { + "height": 256, + "pixelRatio": 2, + "width": 256, + "x": 0, + "y": 0 + }, + "CARRE A": { + "height": 256, + "pixelRatio": 2, + "width": 256, + "x": 256, + "y": 0 + }, + "CARRE A CLI": { + "height": 256, + "pixelRatio": 2, + "width": 256, + "x": 512, + "y": 0 + }, + "CARRE R30": { + "height": 256, + "pixelRatio": 2, + "width": 256, + "x": 768, + "y": 0 + }, + "CARRE R60": { + "height": 256, + "pixelRatio": 2, + "width": 256, + "x": 0, + "y": 256 + }, + "CARRE RR30": { + "height": 256, + "pixelRatio": 2, + "width": 256, + "x": 0, + "y": 512 + }, + "CARRE RR60": { + "height": 256, + "pixelRatio": 2, + "width": 256, + "x": 0, + "y": 768 + }, + "CARRE VL": { + "height": 256, + "pixelRatio": 2, + "width": 256, + "x": 256, + "y": 256 + }, + "DISQUE A": { + "height": 256, + "pixelRatio": 2, + "width": 256, + "x": 512, + "y": 256 + }, + "DISQUE VL": { + "height": 256, + "pixelRatio": 2, + "width": 256, + "x": 768, + "y": 256 + }, + "S": { + "height": 256, + "pixelRatio": 2, + "width": 256, + "x": 256, + "y": 512 + }, + "S A": { + "height": 256, + "pixelRatio": 2, + "width": 256, + "x": 256, + "y": 768 + }, + "S VL": { + "height": 256, + "pixelRatio": 2, + "width": 256, + "x": 512, + "y": 512 + } +} diff --git a/editoast/assets/sprites/BAPR/sprites@2x.png b/editoast/assets/sprites/BAPR/sprites@2x.png new file mode 100644 index 00000000000..1b1b8a71b16 Binary files /dev/null and b/editoast/assets/sprites/BAPR/sprites@2x.png differ diff --git a/editoast/assets/sprites/BAPR/sprites@3x.json b/editoast/assets/sprites/BAPR/sprites@3x.json new file mode 100644 index 00000000000..b165e93b469 --- /dev/null +++ b/editoast/assets/sprites/BAPR/sprites@3x.json @@ -0,0 +1,93 @@ +{ + "CARRE": { + "height": 384, + "pixelRatio": 3, + "width": 384, + "x": 0, + "y": 0 + }, + "CARRE A": { + "height": 384, + "pixelRatio": 3, + "width": 384, + "x": 384, + "y": 0 + }, + "CARRE A CLI": { + "height": 384, + "pixelRatio": 3, + "width": 384, + "x": 768, + "y": 0 + }, + "CARRE R30": { + "height": 384, + "pixelRatio": 3, + "width": 384, + "x": 1152, + "y": 0 + }, + "CARRE R60": { + "height": 384, + "pixelRatio": 3, + "width": 384, + "x": 1536, + "y": 0 + }, + "CARRE RR30": { + "height": 384, + "pixelRatio": 3, + "width": 384, + "x": 0, + "y": 384 + }, + "CARRE RR60": { + "height": 384, + "pixelRatio": 3, + "width": 384, + "x": 0, + "y": 768 + }, + "CARRE VL": { + "height": 384, + "pixelRatio": 3, + "width": 384, + "x": 0, + "y": 1152 + }, + "DISQUE A": { + "height": 384, + "pixelRatio": 3, + "width": 384, + "x": 0, + "y": 1536 + }, + "DISQUE VL": { + "height": 384, + "pixelRatio": 3, + "width": 384, + "x": 384, + "y": 384 + }, + "S": { + "height": 384, + "pixelRatio": 3, + "width": 384, + "x": 768, + "y": 384 + }, + "S A": { + "height": 384, + "pixelRatio": 3, + "width": 384, + "x": 1152, + "y": 384 + }, + "S VL": { + "height": 384, + "pixelRatio": 3, + "width": 384, + "x": 1536, + "y": 384 + } +} diff --git a/editoast/assets/sprites/BAPR/sprites@3x.png b/editoast/assets/sprites/BAPR/sprites@3x.png new file mode 100644 index 00000000000..9fa1a78fda1 Binary files /dev/null and b/editoast/assets/sprites/BAPR/sprites@3x.png differ diff --git a/editoast/assets/sprites/ETCS_LEVEL2/sprites@2x.json b/editoast/assets/sprites/ETCS_LEVEL2/sprites@2x.json new file mode 100644 index 00000000000..6e47aea042d --- /dev/null +++ b/editoast/assets/sprites/ETCS_LEVEL2/sprites@2x.json @@ -0,0 +1,9 @@ +{ + "REP TGV": { + "height": 256, + "pixelRatio": 2, + "width": 256, + "x": 0, + "y": 0 + } +} diff --git a/editoast/assets/sprites/ETCS_LEVEL2/sprites@2x.png b/editoast/assets/sprites/ETCS_LEVEL2/sprites@2x.png new file mode 100644 index 00000000000..9c3b01d2d6c Binary files /dev/null and b/editoast/assets/sprites/ETCS_LEVEL2/sprites@2x.png differ diff --git a/editoast/assets/sprites/ETCS_LEVEL2/sprites@3x.json b/editoast/assets/sprites/ETCS_LEVEL2/sprites@3x.json new file mode 100644 index 00000000000..a428f67fc9e --- /dev/null +++ b/editoast/assets/sprites/ETCS_LEVEL2/sprites@3x.json @@ -0,0 +1,9 @@ +{ + "REP TGV": { + "height": 384, + "pixelRatio": 3, + "width": 384, + "x": 0, + "y": 0 + } +} diff --git a/editoast/assets/sprites/ETCS_LEVEL2/sprites@3x.png b/editoast/assets/sprites/ETCS_LEVEL2/sprites@3x.png new file mode 100644 index 00000000000..a561dbe682f Binary files /dev/null and b/editoast/assets/sprites/ETCS_LEVEL2/sprites@3x.png differ diff --git a/editoast/assets/sprites/TVM300/sprites@2x.json b/editoast/assets/sprites/TVM300/sprites@2x.json new file mode 100644 index 00000000000..6e47aea042d --- /dev/null +++ b/editoast/assets/sprites/TVM300/sprites@2x.json @@ -0,0 +1,9 @@ +{ + "REP TGV": { + "height": 256, + "pixelRatio": 2, + "width": 256, + "x": 0, + "y": 0 + } +} diff --git a/editoast/assets/sprites/TVM300/sprites@2x.png b/editoast/assets/sprites/TVM300/sprites@2x.png new file mode 100644 index 00000000000..148ce6ec536 Binary files /dev/null and b/editoast/assets/sprites/TVM300/sprites@2x.png differ diff --git a/editoast/assets/sprites/TVM300/sprites@3x.json b/editoast/assets/sprites/TVM300/sprites@3x.json new file mode 100644 index 00000000000..a428f67fc9e --- /dev/null +++ b/editoast/assets/sprites/TVM300/sprites@3x.json @@ -0,0 +1,9 @@ +{ + "REP TGV": { + "height": 384, + "pixelRatio": 3, + "width": 384, + "x": 0, + "y": 0 + } +} diff --git a/editoast/assets/sprites/TVM300/sprites@3x.png b/editoast/assets/sprites/TVM300/sprites@3x.png new file mode 100644 index 00000000000..bfc3797de53 Binary files /dev/null and b/editoast/assets/sprites/TVM300/sprites@3x.png differ diff --git a/editoast/assets/sprites/TVM430/sprites@2x.json b/editoast/assets/sprites/TVM430/sprites@2x.json new file mode 100644 index 00000000000..6e47aea042d --- /dev/null +++ b/editoast/assets/sprites/TVM430/sprites@2x.json @@ -0,0 +1,9 @@ +{ + "REP TGV": { + "height": 256, + "pixelRatio": 2, + "width": 256, + "x": 0, + "y": 0 + } +} diff --git a/editoast/assets/sprites/TVM430/sprites@2x.png b/editoast/assets/sprites/TVM430/sprites@2x.png new file mode 100644 index 00000000000..148ce6ec536 Binary files /dev/null and b/editoast/assets/sprites/TVM430/sprites@2x.png differ diff --git a/editoast/assets/sprites/TVM430/sprites@3x.json b/editoast/assets/sprites/TVM430/sprites@3x.json new file mode 100644 index 00000000000..a428f67fc9e --- /dev/null +++ b/editoast/assets/sprites/TVM430/sprites@3x.json @@ -0,0 +1,9 @@ +{ + "REP TGV": { + "height": 384, + "pixelRatio": 3, + "width": 384, + "x": 0, + "y": 0 + } +} diff --git a/editoast/assets/sprites/TVM430/sprites@3x.png b/editoast/assets/sprites/TVM430/sprites@3x.png new file mode 100644 index 00000000000..bfc3797de53 Binary files /dev/null and b/editoast/assets/sprites/TVM430/sprites@3x.png differ diff --git a/editoast/assets/sprites/default/sprites@2x.json b/editoast/assets/sprites/default/sprites@2x.json new file mode 100644 index 00000000000..d9c39fb37d3 --- /dev/null +++ b/editoast/assets/sprites/default/sprites@2x.json @@ -0,0 +1,597 @@ +{ + "BP DIS": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 0, + "y": 512 + }, + "BP EXE": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 0, + "y": 640 + }, + "BP FIN": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 0, + "y": 768 + }, + "CC EXE": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 0, + "y": 896 + }, + "CC FIN": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 128, + "y": 512 + }, + "HEURTOIR": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 128, + "y": 640 + }, + "MATD": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 128, + "y": 768 + }, + "MATG": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 128, + "y": 896 + }, + "R": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 256, + "y": 0 + }, + "REV": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 256, + "y": 128 + }, + "SECT": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 256, + "y": 256 + }, + "TIV D FIXE": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 256, + "y": 384 + }, + "TIV D FIXE 10": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 256, + "y": 512 + }, + "TIV D FIXE 100": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 256, + "y": 640 + }, + "TIV D FIXE 105": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 256, + "y": 768 + }, + "TIV D FIXE 110": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 256, + "y": 896 + }, + "TIV D FIXE 115": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 384, + "y": 0 + }, + "TIV D FIXE 120": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 384, + "y": 128 + }, + "TIV D FIXE 125": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 384, + "y": 256 + }, + "TIV D FIXE 130": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 384, + "y": 384 + }, + "TIV D FIXE 135": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 384, + "y": 512 + }, + "TIV D FIXE 140": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 384, + "y": 640 + }, + "TIV D FIXE 15": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 384, + "y": 768 + }, + "TIV D FIXE 15 35": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 384, + "y": 896 + }, + "TIV D FIXE 150": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 512, + "y": 0 + }, + "TIV D FIXE 160": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 512, + "y": 128 + }, + "TIV D FIXE 20": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 512, + "y": 256 + }, + "TIV D FIXE 20 35": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 512, + "y": 384 + }, + "TIV D FIXE 25": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 512, + "y": 512 + }, + "TIV D FIXE 30": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 512, + "y": 640 + }, + "TIV D FIXE 30 35": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 512, + "y": 768 + }, + "TIV D FIXE 30 40": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 512, + "y": 896 + }, + "TIV D FIXE 35": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 640, + "y": 0 + }, + "TIV D FIXE 4": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 640, + "y": 128 + }, + "TIV D FIXE 40": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 640, + "y": 256 + }, + "TIV D FIXE 40 60": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 640, + "y": 384 + }, + "TIV D FIXE 45": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 640, + "y": 512 + }, + "TIV D FIXE 50": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 640, + "y": 640 + }, + "TIV D FIXE 50 30": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 640, + "y": 768 + }, + "TIV D FIXE 50 60": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 640, + "y": 896 + }, + "TIV D FIXE 50 70": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 768, + "y": 0 + }, + "TIV D FIXE 55": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 768, + "y": 128 + }, + "TIV D FIXE 60": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 768, + "y": 256 + }, + "TIV D FIXE 60 40": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 768, + "y": 384 + }, + "TIV D FIXE 60 50": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 768, + "y": 512 + }, + "TIV D FIXE 60 70": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 768, + "y": 640 + }, + "TIV D FIXE 65": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 768, + "y": 768 + }, + "TIV D FIXE 70": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 768, + "y": 896 + }, + "TIV D FIXE 70 50": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 896, + "y": 0 + }, + "TIV D FIXE 70 60": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 896, + "y": 128 + }, + "TIV D FIXE 70 80": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 896, + "y": 256 + }, + "TIV D FIXE 75": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 896, + "y": 384 + }, + "TIV D FIXE 80": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 896, + "y": 512 + }, + "TIV D FIXE 80 70": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 896, + "y": 640 + }, + "TIV D FIXE 85": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 896, + "y": 768 + }, + "TIV D FIXE 90": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 896, + "y": 896 + }, + "TIV D FIXE 95": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 1024, + "y": 0 + }, + "TIVD B FIX 100": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 1152, + "y": 0 + }, + "TIVD B FIX 100 110": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 1280, + "y": 0 + }, + "TIVD B FIX 110": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 1408, + "y": 0 + }, + "TIVD B FIX 120": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 1536, + "y": 0 + }, + "TIVD B FIX 130": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 1664, + "y": 0 + }, + "TIVD B FIX 135": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 1792, + "y": 0 + }, + "TIVD B FIX 140": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 1920, + "y": 0 + }, + "TIVD B FIX 140 150": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 1024, + "y": 128 + }, + "TIVD B FIX 145": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 1024, + "y": 256 + }, + "TIVD B FIX 145 155": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 1024, + "y": 384 + }, + "TIVD B FIX 150": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 1024, + "y": 512 + }, + "TIVD B FIX 150 155": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 1024, + "y": 640 + }, + "TIVD B FIX 155": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 1024, + "y": 768 + }, + "TIVD B FIX 160": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 1024, + "y": 896 + }, + "TIVD B FIX 170": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 1152, + "y": 128 + }, + "TIVD B FIX 180": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 1280, + "y": 128 + }, + "TIVD B FIX 190": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 1408, + "y": 128 + }, + "TIVD B FIX 200": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 1536, + "y": 128 + }, + "TIVD B FIX 30": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 1664, + "y": 128 + }, + "TIVD B FIX 60": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 1792, + "y": 128 + }, + "TIVD B FIX 70": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 1920, + "y": 128 + }, + "TIVD B FIX 80": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 1152, + "y": 256 + }, + "TIVD B FIX 85": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 1152, + "y": 384 + }, + "TIVD B FIX 90": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 1152, + "y": 512 + }, + "TIVD B FIX 95": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 1152, + "y": 640 + }, + "UNKNOWN": { + "height": 256, + "pixelRatio": 2, + "width": 256, + "x": 0, + "y": 0 + }, + "UNKNOWN2": { + "height": 256, + "pixelRatio": 2, + "width": 256, + "x": 0, + "y": 256 + }, + "Z": { + "height": 128, + "pixelRatio": 2, + "width": 128, + "x": 1152, + "y": 768 + } +} diff --git a/editoast/assets/sprites/default/sprites@2x.png b/editoast/assets/sprites/default/sprites@2x.png new file mode 100644 index 00000000000..6ca2642b2f7 Binary files /dev/null and b/editoast/assets/sprites/default/sprites@2x.png differ diff --git a/editoast/assets/sprites/default/sprites@3x.json b/editoast/assets/sprites/default/sprites@3x.json new file mode 100644 index 00000000000..ccb7e87dba6 --- /dev/null +++ b/editoast/assets/sprites/default/sprites@3x.json @@ -0,0 +1,597 @@ +{ + "BP DIS": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 768, + "y": 0 + }, + "BP EXE": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 960, + "y": 0 + }, + "BP FIN": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 1152, + "y": 0 + }, + "CC EXE": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 1344, + "y": 0 + }, + "CC FIN": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 1536, + "y": 0 + }, + "HEURTOIR": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 1728, + "y": 0 + }, + "MATD": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 768, + "y": 192 + }, + "MATG": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 960, + "y": 192 + }, + "R": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 1152, + "y": 192 + }, + "REV": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 1344, + "y": 192 + }, + "SECT": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 1536, + "y": 192 + }, + "TIV D FIXE": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 1728, + "y": 192 + }, + "TIV D FIXE 10": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 0, + "y": 384 + }, + "TIV D FIXE 100": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 0, + "y": 576 + }, + "TIV D FIXE 105": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 0, + "y": 768 + }, + "TIV D FIXE 110": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 0, + "y": 960 + }, + "TIV D FIXE 115": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 0, + "y": 1152 + }, + "TIV D FIXE 120": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 0, + "y": 1344 + }, + "TIV D FIXE 125": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 0, + "y": 1536 + }, + "TIV D FIXE 130": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 0, + "y": 1728 + }, + "TIV D FIXE 135": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 192, + "y": 384 + }, + "TIV D FIXE 140": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 192, + "y": 576 + }, + "TIV D FIXE 15": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 192, + "y": 768 + }, + "TIV D FIXE 15 35": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 192, + "y": 960 + }, + "TIV D FIXE 150": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 192, + "y": 1152 + }, + "TIV D FIXE 160": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 192, + "y": 1344 + }, + "TIV D FIXE 20": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 192, + "y": 1536 + }, + "TIV D FIXE 20 35": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 192, + "y": 1728 + }, + "TIV D FIXE 25": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 384, + "y": 384 + }, + "TIV D FIXE 30": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 576, + "y": 384 + }, + "TIV D FIXE 30 35": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 768, + "y": 384 + }, + "TIV D FIXE 30 40": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 960, + "y": 384 + }, + "TIV D FIXE 35": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 1152, + "y": 384 + }, + "TIV D FIXE 4": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 1344, + "y": 384 + }, + "TIV D FIXE 40": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 1536, + "y": 384 + }, + "TIV D FIXE 40 60": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 1728, + "y": 384 + }, + "TIV D FIXE 45": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 384, + "y": 576 + }, + "TIV D FIXE 50": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 384, + "y": 768 + }, + "TIV D FIXE 50 30": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 384, + "y": 960 + }, + "TIV D FIXE 50 60": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 384, + "y": 1152 + }, + "TIV D FIXE 50 70": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 384, + "y": 1344 + }, + "TIV D FIXE 55": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 384, + "y": 1536 + }, + "TIV D FIXE 60": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 384, + "y": 1728 + }, + "TIV D FIXE 60 40": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 576, + "y": 576 + }, + "TIV D FIXE 60 50": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 768, + "y": 576 + }, + "TIV D FIXE 60 70": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 960, + "y": 576 + }, + "TIV D FIXE 65": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 1152, + "y": 576 + }, + "TIV D FIXE 70": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 1344, + "y": 576 + }, + "TIV D FIXE 70 50": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 1536, + "y": 576 + }, + "TIV D FIXE 70 60": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 1728, + "y": 576 + }, + "TIV D FIXE 70 80": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 576, + "y": 768 + }, + "TIV D FIXE 75": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 576, + "y": 960 + }, + "TIV D FIXE 80": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 576, + "y": 1152 + }, + "TIV D FIXE 80 70": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 576, + "y": 1344 + }, + "TIV D FIXE 85": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 576, + "y": 1536 + }, + "TIV D FIXE 90": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 576, + "y": 1728 + }, + "TIV D FIXE 95": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 768, + "y": 768 + }, + "TIVD B FIX 100": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 960, + "y": 768 + }, + "TIVD B FIX 100 110": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 1152, + "y": 768 + }, + "TIVD B FIX 110": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 1344, + "y": 768 + }, + "TIVD B FIX 120": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 1536, + "y": 768 + }, + "TIVD B FIX 130": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 1728, + "y": 768 + }, + "TIVD B FIX 135": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 768, + "y": 960 + }, + "TIVD B FIX 140": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 768, + "y": 1152 + }, + "TIVD B FIX 140 150": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 768, + "y": 1344 + }, + "TIVD B FIX 145": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 768, + "y": 1536 + }, + "TIVD B FIX 145 155": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 768, + "y": 1728 + }, + "TIVD B FIX 150": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 960, + "y": 960 + }, + "TIVD B FIX 150 155": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 1152, + "y": 960 + }, + "TIVD B FIX 155": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 1344, + "y": 960 + }, + "TIVD B FIX 160": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 1536, + "y": 960 + }, + "TIVD B FIX 170": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 1728, + "y": 960 + }, + "TIVD B FIX 180": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 960, + "y": 1152 + }, + "TIVD B FIX 190": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 960, + "y": 1344 + }, + "TIVD B FIX 200": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 960, + "y": 1536 + }, + "TIVD B FIX 30": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 960, + "y": 1728 + }, + "TIVD B FIX 60": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 1152, + "y": 1152 + }, + "TIVD B FIX 70": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 1344, + "y": 1152 + }, + "TIVD B FIX 80": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 1536, + "y": 1152 + }, + "TIVD B FIX 85": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 1728, + "y": 1152 + }, + "TIVD B FIX 90": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 1152, + "y": 1344 + }, + "TIVD B FIX 95": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 1152, + "y": 1536 + }, + "UNKNOWN": { + "height": 384, + "pixelRatio": 3, + "width": 384, + "x": 0, + "y": 0 + }, + "UNKNOWN2": { + "height": 384, + "pixelRatio": 3, + "width": 384, + "x": 384, + "y": 0 + }, + "Z": { + "height": 192, + "pixelRatio": 3, + "width": 192, + "x": 1152, + "y": 1728 + } +} diff --git a/editoast/assets/sprites/default/sprites@3x.png b/editoast/assets/sprites/default/sprites@3x.png new file mode 100644 index 00000000000..fe1914d2a63 Binary files /dev/null and b/editoast/assets/sprites/default/sprites@3x.png differ diff --git a/editoast/assets/sprites/generate-atlas.sh b/editoast/assets/sprites/generate-atlas.sh index 2b6f49c40bb..83b6d0fb4fa 100755 --- a/editoast/assets/sprites/generate-atlas.sh +++ b/editoast/assets/sprites/generate-atlas.sh @@ -4,7 +4,9 @@ # First add all your svg in a subfolder named to the signaling system (eg: `BAL`) # Then run this script. You will need docker. -for signaling_system in *; do +sprites_directory=`dirname $0` +echo "Processing sprites in ${sprites_directory}" +for signaling_system in "${sprites_directory}"/*; do # Skip files (like this file) [ -d "${signaling_system}" ] || continue