forked from MTSR/mapserver
burnt lua ctrl image
This commit is contained in:
parent
e510b5b61f
commit
cad0cf6bd4
@ -29,6 +29,7 @@
|
||||
** Source: [digilines](https://github.com/minetest-mods/digilines)
|
||||
|
||||
* jeija_luacontroller_top.png
|
||||
* jeija_luacontroller_burnt_top.png
|
||||
** CC-BY-SA-3.0
|
||||
** Source [mesecons](https://github.com/minetest-mods/mesecons)
|
||||
|
||||
|
@ -8,12 +8,27 @@ var LuacontrollerIcon = L.icon({
|
||||
popupAnchor: [0, -16]
|
||||
});
|
||||
|
||||
var LuacontrollerBurntIcon = L.icon({
|
||||
iconUrl: 'pics/jeija_luacontroller_burnt_top.png',
|
||||
|
||||
iconSize: [16, 16], //TODO: 512px :O ...
|
||||
iconAnchor: [8, 8],
|
||||
popupAnchor: [0, -16]
|
||||
});
|
||||
|
||||
var LuacontrollerOverlay = AbstractIconOverlay.extend({
|
||||
initialize: function(wsChannel, layerMgr) {
|
||||
AbstractIconOverlay.prototype.initialize.call(this, wsChannel, layerMgr, "luacontroller", LuacontrollerIcon);
|
||||
AbstractIconOverlay.prototype.initialize.call(this, wsChannel, layerMgr, "luacontroller");
|
||||
},
|
||||
|
||||
createPopup: function(lcd){
|
||||
return "<pre>" + lcd.attributes.code + "</pre>";
|
||||
getIcon: function(ctrl){
|
||||
if (ctrl.burnt)
|
||||
return LuacontrollerIcon;
|
||||
else
|
||||
return LuacontrollerBurntIcon;
|
||||
},
|
||||
|
||||
createPopup: function(ctrl){
|
||||
return "<pre>" + ctrl.attributes.code + "</pre>";
|
||||
}
|
||||
});
|
||||
|
BIN
server/static/pics/jeija_luacontroller_burnt_top.png
Normal file
BIN
server/static/pics/jeija_luacontroller_burnt_top.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.5 KiB |
Loading…
Reference in New Issue
Block a user