map: Added hover on locations
This commit is contained in:
parent
821900abc6
commit
21865feafa
BIN
data/stage3/image/map/location-planet-hover.png
Normal file
BIN
data/stage3/image/map/location-planet-hover.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.6 KiB |
BIN
data/stage3/image/map/location-star-hover.png
Normal file
BIN
data/stage3/image/map/location-star-hover.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.6 KiB |
BIN
data/stage3/image/map/location-warp-hover.png
Normal file
BIN
data/stage3/image/map/location-warp-hover.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.6 KiB |
|
@ -15,11 +15,31 @@
|
|||
viewBox="0 0 507.99999 285.75001"
|
||||
version="1.1"
|
||||
id="svg8"
|
||||
inkscape:version="0.92.1 r15371"
|
||||
inkscape:version="0.92.3 (3ce5693, 2018-03-11)"
|
||||
sodipodi:docname="map.svg"
|
||||
enable-background="new">
|
||||
<defs
|
||||
id="defs2">
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
id="linearGradient1765">
|
||||
<stop
|
||||
style="stop-color:#a2bddf;stop-opacity:0"
|
||||
offset="0"
|
||||
id="stop1759" />
|
||||
<stop
|
||||
id="stop1761"
|
||||
offset="0.87293339"
|
||||
style="stop-color:#ffffff;stop-opacity:0.13432837" />
|
||||
<stop
|
||||
style="stop-color:#fcfeff;stop-opacity:0.80000001"
|
||||
offset="0.94317251"
|
||||
id="stop1767" />
|
||||
<stop
|
||||
style="stop-color:#5f7792;stop-opacity:1"
|
||||
offset="1"
|
||||
id="stop1763" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
id="linearGradient4933">
|
||||
|
@ -1090,6 +1110,17 @@
|
|||
result="composite2"
|
||||
id="feComposite6295" />
|
||||
</filter>
|
||||
<radialGradient
|
||||
gradientTransform="matrix(0.908034,0,0,0.908034,-87.187175,49.060346)"
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient1765"
|
||||
id="radialGradient7460-3"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
cx="342.45343"
|
||||
cy="142.875"
|
||||
fx="342.45343"
|
||||
fy="142.875"
|
||||
r="9.7939377" />
|
||||
</defs>
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
|
@ -1098,11 +1129,11 @@
|
|||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="1.175"
|
||||
inkscape:cx="1702.4952"
|
||||
inkscape:cy="235.31089"
|
||||
inkscape:zoom="3.3234019"
|
||||
inkscape:cx="855.45368"
|
||||
inkscape:cy="455.29087"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
inkscape:current-layer="layer5"
|
||||
showgrid="false"
|
||||
units="px"
|
||||
inkscape:snap-bbox="true"
|
||||
|
@ -1114,7 +1145,12 @@
|
|||
inkscape:snap-global="false"
|
||||
inkscape:snap-object-midpoints="true"
|
||||
inkscape:measure-start="551.543,453.963"
|
||||
inkscape:measure-end="1261.48,449.72">
|
||||
inkscape:measure-end="1261.48,449.72"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1037"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="20"
|
||||
inkscape:window-maximized="0">
|
||||
<sodipodi:guide
|
||||
position="0,0"
|
||||
orientation="0,1920"
|
||||
|
@ -1599,6 +1635,15 @@
|
|||
inkscape:export-filename="/home/michael/workspace/perso/spacetac/out/assets/images/map/boundaries.png"
|
||||
inkscape:export-xdpi="96"
|
||||
inkscape:export-ydpi="96" />
|
||||
<circle
|
||||
r="8.8932285"
|
||||
cy="178.7957"
|
||||
cx="223.77219"
|
||||
id="path6987-3"
|
||||
style="display:inline;opacity:0.44200003;fill:url(#radialGradient7460-3);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.29358527;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||
inkscape:export-filename="/home/michael/workspace/spacetac/data/stage3/image/map/location-planet-hover.png"
|
||||
inkscape:export-xdpi="96"
|
||||
inkscape:export-ydpi="96" />
|
||||
</g>
|
||||
<g
|
||||
inkscape:groupmode="layer"
|
||||
|
|
Before Width: | Height: | Size: 411 KiB After Width: | Height: | Size: 413 KiB |
|
@ -38,7 +38,7 @@ module TK.SpaceTac.UI {
|
|||
|
||||
location_sprite = this.builder.button(`map-location-${loctype}`, location.x / this.scaleX, location.y / this.scaleY,
|
||||
() => this.view.moveToLocation(location),
|
||||
(filler: TooltipBuilder) => {
|
||||
() => {
|
||||
let visited = this.player.hasVisitedLocation(location);
|
||||
let shop = (visited && !location.encounter && location.shop) ? " (dockyard present)" : "";
|
||||
|
||||
|
|
Loading…
Reference in a new issue