license stuff / mod / quarry overlay

This commit is contained in:
NatureFreshMilk 2019-02-08 13:35:56 +01:00
parent deeefd9a8c
commit ec6aa71163
7 changed files with 27 additions and 3 deletions

View File

@ -10,6 +10,7 @@
* bubble.png
* sam.png
* heart.png
* default_tool_mesepick.png
** License: CC BY-SA 3.0
** Source: [minetest_game](https://github.com/minetest/minetest_game)

View File

@ -2,8 +2,7 @@ License of source code
----------------------
The MIT License (MIT)
Copyright (C) 2012-2016 PilzAdam
Copyright (C) 2012-2016 Various Minetest developers and contributors
Copyright (C) 2018-2019 Thomas Rudin
Permission is hereby granted, free of charge, to any person obtaining a copy of this
software and associated documentation files (the "Software"), to deal in the Software
@ -29,7 +28,7 @@ Licenses of media (textures)
----------------------------
Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)
Copyright (C) 2016 paramat
Copyright (C) 2019 Thomas Rudin
You are free to:
Share — copy and redistribute the material in any medium or format.

View File

@ -32,4 +32,5 @@ golang.org/x/image v0.0.0-20190118043309-183bebdce1b2 h1:FNSSV4jv1PrPsiM2iKGpqLP
golang.org/x/image v0.0.0-20190118043309-183bebdce1b2/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs=
golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33 h1:I6FyU15t786LL7oL/hn43zqTuEGr4PN7F4XJ1p4E3Y8=
golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190204203706-41f3e6584952 h1:FDfvYgoVsA7TTZSbgiqjAbfPbK47CNHdWl3h/PJtii0=
golang.org/x/sys v0.0.0-20190204203706-41f3e6584952/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=

View File

@ -41,6 +41,7 @@
<script src="js/overlays/DigitermOverlay.js"></script>
<script src="js/overlays/LuacontrollerOverlay.js"></script>
<script src="js/overlays/TechnicAnchorOverlay.js"></script>
<script src="js/overlays/TechnicQuarryOverlay.js"></script>
<!-- bootstrap -->
<script src="js/main.js"></script>

View File

@ -37,6 +37,7 @@ api.getConfig().then(function(cfg){
overlays["Digiterms"] = new DigitermOverlay(wsChannel, layerMgr);
overlays["Lua Controller"] = new LuacontrollerOverlay(wsChannel, layerMgr);
overlays["Technic Anchor"] = new TechnicAnchorOverlay(wsChannel, layerMgr);
overlays["Technic Quarry"] = new TechnicQuarryOverlay(wsChannel, layerMgr);
//overlays["Protector"] = new ProtectorOverlay(wsChannel, layerMgr);
//Default enabled overlays

View File

@ -0,0 +1,21 @@
'use strict';
var TechnicQuarryIcon = L.icon({
iconUrl: 'pics/default_tool_mesepick.png.png',
iconSize: [16, 16],
iconAnchor: [8, 8],
popupAnchor: [0, -16]
});
var TechnicQuarryOverlay = AbstractIconOverlay.extend({
initialize: function(wsChannel, layerMgr) {
AbstractIconOverlay.prototype.initialize.call(this, wsChannel, layerMgr, "technicquarry", TechnicQuarryIcon);
},
createPopup: function(lcd){
return "<p>Owner: " + lcd.attributes.owner + "</p>" +
"<p>Dug: " + lcd.attributes.dug + "</p>" +
"<p>Enabled: " + lcd.attributes.enabled + "</p>";
}
});

Binary file not shown.

After

Width:  |  Height:  |  Size: 201 B