diff --git a/assets/Steam/achievements/icons/darknet-backdoor.svg b/assets/Steam/achievements/icons/darknet-backdoor.svg index d2987691d..a1e9671d3 100644 --- a/assets/Steam/achievements/icons/darknet-backdoor.svg +++ b/assets/Steam/achievements/icons/darknet-backdoor.svg @@ -24,7 +24,7 @@ inkscape:document-units="mm" showgrid="true" units="px" - inkscape:current-layer="layer1" + inkscape:current-layer="svg5" inkscape:showpageshadow="2" inkscape:deskcolor="#d1d1d1"> - 🔓 + diff --git a/assets/Steam/achievements/icons/darknet-depths.svg b/assets/Steam/achievements/icons/darknet-depths.svg index 74d323a19..c4fdd3ac6 100644 --- a/assets/Steam/achievements/icons/darknet-depths.svg +++ b/assets/Steam/achievements/icons/darknet-depths.svg @@ -24,7 +24,7 @@ inkscape:document-units="mm" showgrid="true" units="px" - inkscape:current-layer="layer1" + inkscape:current-layer="svg5" inkscape:showpageshadow="2" inkscape:deskcolor="#d1d1d1"> + id="layer1" + transform="translate(0.27560617,7.2846654)"> diff --git a/dist/icons/achievements/darknet-backdoor.svg b/dist/icons/achievements/darknet-backdoor.svg index de97bd004..73b025e6a 100644 --- a/dist/icons/achievements/darknet-backdoor.svg +++ b/dist/icons/achievements/darknet-backdoor.svg @@ -24,7 +24,7 @@ inkscape:document-units="mm" showgrid="true" units="px" - inkscape:current-layer="layer1" + inkscape:current-layer="svg5" inkscape:showpageshadow="2" inkscape:deskcolor="#d1d1d1"> - 🔓 + diff --git a/dist/icons/achievements/darknet-depths.svg b/dist/icons/achievements/darknet-depths.svg index bd34261c4..6847750a2 100644 --- a/dist/icons/achievements/darknet-depths.svg +++ b/dist/icons/achievements/darknet-depths.svg @@ -24,7 +24,7 @@ inkscape:document-units="mm" showgrid="true" units="px" - inkscape:current-layer="layer1" + inkscape:current-layer="svg5" inkscape:showpageshadow="2" inkscape:deskcolor="#d1d1d1"> + id="layer1" + transform="translate(0.27560617,7.2846654)"> diff --git a/src/Achievements/README.md b/src/Achievements/README.md index 28052e947..71377e145 100644 --- a/src/Achievements/README.md +++ b/src/Achievements/README.md @@ -2,19 +2,26 @@ Recommended tool: https://inkscape.org -Note: You should **NOT** use the option "Save and restore window geometry for each document" (Edit -> Preferences -> Interface -> Windows). - Steps: - Clone `$PROJECT_DIR/assets/Steam/achievements/template.svg`. -- Edit the text. +- Edit the text. If you use non-ascii characters (e.g., emojis), you should convert them to path data: Path -> Object to Path. - Object -> Align and Distribute ... - Relative to: Choose "Page". - Press the icon having the tooltip: "Center on vertical axis". - Press the icon having the tooltip: "Center on horizontal axis". +Note: + +- You should **NOT** use the option "Save and restore window geometry for each document" (Edit -> Preferences -> Interface -> Windows). +- The previous steps are not mandatory, but you should follow them. Doing them helps you catch potential visual issues. + +Tips for checking new svg files: Check "sodipodi:docname" in the new svg file. If it does not match the filename, it's very likely the svg file was cloned from another file, but it was not realigned and double-checked in Inkscape (Inkscape automatically updates "sodipodi:docname" when saving, so if you open the new file, realign the position, and save it, "sodipodi:docname" will match the filename). + # Add achievements +These steps are mandatory: + - Add the new icon (.svg file) to `$PROJECT_DIR/assets/Steam/achievements/icons`. - Add an entry to `$PROJECT_DIR/src/Achievements/AchievementData.json`. - It should match the information of the Steam achievement, if applicable.