]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Add an icon to the flip verb (#14358)
authorMenshin <overmenshin@yahoo.co.uk>
Sun, 5 Mar 2023 00:36:09 +0000 (00:36 +0000)
committerMenshin <overmenshin@yahoo.co.uk>
Sun, 5 Mar 2023 00:36:09 +0000 (00:36 +0000)
Also put the flip verb in the rotation category.
No credit to give here, i've made the icon from scratch.

<!-- Please read these guidelines before opening your PR: https://docs.spacestation14.io/en/getting-started/pr-guideline -->
<!-- The text between the arrows are comments - they will not be visible on your PR. -->

## About the PR
<!-- What does it change? What other things could this impact? -->

**Media**
<!--
PRs which make ingame changes (adding clothing, items, new features, etc) are required to have media attached that showcase the changes.
Small fixes/refactors are exempt.
Any media may be used in SS14 progress reports, with clear credit given.

If you're unsure whether your PR will require media, ask a maintainer.

Check the box below to confirm that you have in fact seen this (put an X in the brackets, like [X]):
-->

- [x] I have added screenshots/videos to this PR showcasing its changes ingame
![image](https://user-images.githubusercontent.com/7117411/222599953-e9d8bc2d-eae4-43ee-9425-678c7ae30bd9.png)

**Changelog**
<!--
Here you can fill out a changelog that will automatically be added to the game when your PR is merged.

Only put changes that are visible and important to the player on the changelog.

Don't consider the entry type suffix (e.g. add) to be "part" of the sentence:
bad: - add: a new tool for engineers
good: - add: added a new tool for engineers

Putting a name after the :cl: symbol will change the name that shows in the changelog (otherwise it takes your GitHub username)
Like so: :cl: PJB
-->

:cl:
- add: The flip verb now has a icon and can be found under the rotation category.

Content.Server/Rotatable/RotatableSystem.cs
Resources/Textures/Interface/VerbIcons/flip.svg [new file with mode: 0644]
Resources/Textures/Interface/VerbIcons/flip.svg.192dpi.png [new file with mode: 0644]
Resources/Textures/Interface/VerbIcons/flip.svg.192dpi.png.yml [new file with mode: 0644]

index 3e9efc9c35bb6947cf194449d0db7c77b256893b..f6785e4b4a058559499768dd52baba394ce1e549 100644 (file)
@@ -30,9 +30,11 @@ namespace Content.Server.Rotatable
             {
                 Act = () => TryFlip(uid, component, args.User),
                 Text = Loc.GetString("flippable-verb-get-data-text"),
+                Category = VerbCategory.Rotate,
+                Icon = new SpriteSpecifier.Texture(new ResourcePath("/Textures/Interface/VerbIcons/flip.svg.192dpi.png")),
+                Priority = -3, // show flip last
                 DoContactInteraction = true
             };
-            // TODO VERB ICONS Add Uno reverse card style icon?
             args.Verbs.Add(verb);
         }
 
diff --git a/Resources/Textures/Interface/VerbIcons/flip.svg b/Resources/Textures/Interface/VerbIcons/flip.svg
new file mode 100644 (file)
index 0000000..de8818a
--- /dev/null
@@ -0,0 +1,171 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+   inkscape:version="1.2.2 (732a01da63, 2022-12-09)"
+   inkscape:export-ydpi="192"
+   inkscape:export-xdpi="192"
+   inkscape:export-filename="..\..\..\..\..\..\code\space-station-14\Resources\Textures\Interface\VerbIcons\flip.svg.192dpi.png"
+   sodipodi:docname="flip6.svg"
+   id="svg8"
+   version="1.1"
+   viewBox="0 0 8.4666665 8.4666669"
+   height="32"
+   width="32"
+   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"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:dc="http://purl.org/dc/elements/1.1/">
+  <defs
+     id="defs2">
+    <marker
+       style="overflow:visible"
+       id="marker14389"
+       refX="0"
+       refY="0"
+       orient="auto-start-reverse"
+       inkscape:stockid="TriangleStart"
+       markerWidth="3.8"
+       markerHeight="3.8"
+       viewBox="0 0 5.3244081 6.1553851"
+       inkscape:isstock="true"
+       inkscape:collect="always"
+       preserveAspectRatio="xMidYMid">
+      <path
+         transform="scale(0.5)"
+         style="fill:context-stroke;fill-rule:evenodd;stroke:context-stroke;stroke-width:1pt"
+         d="M 5.77,0 -2.88,5 V -5 Z"
+         id="path14387" />
+    </marker>
+    <inkscape:path-effect
+       effect="bspline"
+       id="path-effect14057"
+       is_visible="true"
+       lpeversion="1"
+       weight="33.333333"
+       steps="2"
+       helper_size="0"
+       apply_no_weight="true"
+       apply_with_weight="true"
+       only_selected="false" />
+    <linearGradient
+       id="linearGradient6388"
+       inkscape:swatch="solid">
+      <stop
+         style="stop-color:#9bd6e2;stop-opacity:1;"
+         offset="0"
+         id="stop6386" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient6333"
+       inkscape:swatch="solid">
+      <stop
+         style="stop-color:#ffffff;stop-opacity:1;"
+         offset="0"
+         id="stop6331" />
+    </linearGradient>
+    <inkscape:path-effect
+       effect="bspline"
+       id="path-effect355"
+       is_visible="true"
+       lpeversion="1"
+       weight="33.333333"
+       steps="2"
+       helper_size="0"
+       apply_no_weight="true"
+       apply_with_weight="true"
+       only_selected="false" />
+    <inkscape:path-effect
+       effect="bspline"
+       id="path-effect12042"
+       is_visible="true"
+       lpeversion="1"
+       weight="33.333333"
+       steps="2"
+       helper_size="0"
+       apply_no_weight="true"
+       apply_with_weight="true"
+       only_selected="false" />
+  </defs>
+  <sodipodi:namedview
+     inkscape:window-maximized="1"
+     inkscape:window-y="-9"
+     inkscape:window-x="-9"
+     inkscape:window-height="1001"
+     inkscape:window-width="1920"
+     units="px"
+     inkscape:pagecheckerboard="true"
+     showgrid="false"
+     inkscape:document-rotation="0"
+     inkscape:current-layer="a836"
+     inkscape:document-units="px"
+     inkscape:cy="16.785414"
+     inkscape:cx="-35.378488"
+     inkscape:zoom="5.8086146"
+     inkscape:pageshadow="2"
+     inkscape:pageopacity="0.0"
+     borderopacity="1.0"
+     bordercolor="#666666"
+     pagecolor="#ffffff"
+     id="base"
+     inkscape:showpageshadow="2"
+     inkscape:deskcolor="#d1d1d1" />
+  <metadata
+     id="metadata5">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     id="layer1"
+     inkscape:groupmode="layer"
+     inkscape:label="Layer 1">
+    <a
+       id="a836">
+      <path
+         style="fill:#9bd6e2;fill-opacity:1;stroke-width:0.516996"
+         d="m 4.25894,8.3926174 c 0,-2.5011986 0,-5.0026617 0,-7.50438924"
+         id="path353"
+         inkscape:path-effect="#path-effect355"
+         inkscape:original-d="m 4.25894,8.3926174 c 2.646e-4,-2.5011986 2.646e-4,-5.0026617 0,-7.50438924" />
+      <path
+         id="rect963"
+         style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.278069;stroke-dasharray:0.278069, 0.278069;stroke-dashoffset:0;stroke-opacity:1;paint-order:stroke fill markers"
+         inkscape:transform-center-x="-0.013907779"
+         inkscape:transform-center-y="0.075254004"
+         d="m 4.2394373,1.3416896 c -0.087326,0 -0.1576296,0.092033 -0.1576296,0.2063533 v 6.093353 c 0,0.11432 0.070299,0.2063536 0.1576296,0.2063536 0.087326,0 0.1576294,-0.092034 0.1576294,-0.2063536 v -6.093353 c 0,-0.1143197 -0.070304,-0.2063533 -0.1576294,-0.2063533 z"
+         inkscape:export-filename="..\..\..\..\..\..\code\space-station-14\Resources\Textures\Interface\VerbIcons\rect963.png"
+         inkscape:export-xdpi="192"
+         inkscape:export-ydpi="192" />
+      <path
+         id="path12299"
+         style="fill:#ffffff;fill-opacity:1;stroke-width:0.703082;paint-order:markers fill stroke"
+         inkscape:transform-center-x="0.35246302"
+         inkscape:transform-center-y="-0.057235312"
+         d="M 3.5588791,1.9983879 0.35353292,5.3996198 2.7266964,7.2271655 Z"
+         sodipodi:nodetypes="cccc" />
+      <path
+         style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:0.52916667;stroke-linecap:butt;stroke-dasharray:none;stroke-opacity:1;marker-end:url(#marker14389);paint-order:stroke fill markers"
+         d="M 2.2329636,1.5220229 C 2.4898524,1.2322085 2.7467677,0.94236422 3.0845406,0.7341988 3.4223134,0.52603337 3.8410131,0.39955045 4.2537934,0.40800706 4.6665738,0.41646366 5.0741874,0.55961932 5.4058692,0.75388999 5.7375511,0.94816066 5.9923566,1.1926402 6.2476557,1.4375932"
+         id="path14055"
+         inkscape:path-effect="#path-effect14057"
+         inkscape:original-d="M 2.2329636,1.5220229 C 2.4901319,1.2324562 2.7470472,0.94261197 3.0037127,0.65248639 3.4224088,0.52634907 3.8411085,0.39986614 4.2589401,0.27330097 4.6665201,0.41661646 5.0741337,0.55977213 5.4818011,0.70277501 5.7375457,0.94816626 5.9923513,1.1926457 6.2476557,1.4375932"
+         sodipodi:nodetypes="ccccc"
+         inkscape:export-filename="path14055.png"
+         inkscape:export-xdpi="96"
+         inkscape:export-ydpi="96" />
+      <path
+         id="path12299-1"
+         style="fill:#ffffff;fill-opacity:1;stroke-width:0.703082;paint-order:markers fill stroke"
+         inkscape:transform-center-x="-0.35246301"
+         inkscape:transform-center-y="-0.057235312"
+         d="M 4.9066773 2.0029785 L 5.7386678 7.2316 L 8.1116496 5.4043213 L 4.9066773 2.0029785 z M 5.4265422 2.9998169 L 7.6269247 5.3340414 L 5.9980835 6.5882284 L 5.4265422 2.9998169 z " />
+    </a>
+  </g>
+</svg>
diff --git a/Resources/Textures/Interface/VerbIcons/flip.svg.192dpi.png b/Resources/Textures/Interface/VerbIcons/flip.svg.192dpi.png
new file mode 100644 (file)
index 0000000..728f00f
Binary files /dev/null and b/Resources/Textures/Interface/VerbIcons/flip.svg.192dpi.png differ
diff --git a/Resources/Textures/Interface/VerbIcons/flip.svg.192dpi.png.yml b/Resources/Textures/Interface/VerbIcons/flip.svg.192dpi.png.yml
new file mode 100644 (file)
index 0000000..5c43e23
--- /dev/null
@@ -0,0 +1,2 @@
+sample:
+  filter: true