You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: index.php
+3
Original file line number
Diff line number
Diff line change
@@ -79,6 +79,9 @@
79
79
// number that is set
80
80
var _SETTINGS_socketUrl = "ws://localhost:30121"
81
81
82
+
// Set to false if you don't want to show the player's identifiers (this may be their IP)
83
+
var _SETTINGS_showIdentifiers = true;
84
+
82
85
// Do not remove unless you know what you're doing (and you have a google api key)
83
86
// Hack from https://stackoverflow.com/questions/38148097/google-maps-api-without-key/38809129#38809129
84
87
// hack Google Maps to bypass API v3 key (needed since 22 June 2016 http://googlegeodevelopers.blogspot.com.es/2016/06/building-for-scale-updates-to-google.html)
@@ -179,12 +161,6 @@ function createMarker(animated, draggable, objectRef, title) {
179
161
//console.log(JSON.stringify(locationType));
180
162
181
163
varhtml='<div class="row info-body-row"><strong>Position:</strong> X {'+objectRef.position.x.toFixed(4)+"} Y {"+objectRef.position.y.toFixed(4)+"} Z {"+objectRef.position.z.toFixed(4)+"}</div>";
@@ -143,32 +143,56 @@ function playerLeft(playerName){
143
143
}
144
144
}
145
145
146
+
functiongetPlayerInfoHtml(plr){
147
+
varhtml='<div class="row info-body-row"><strong>Position:</strong> X {'+plr.pos.x.toFixed(4)+"} Y {"+plr.pos.y.toFixed(4)+"} Z {"+plr.pos.z.toFixed(4)+"}</div>"
148
+
for(varkeyinplr){
149
+
console.log("found key: "+key);
150
+
if(key=="name"||key=="pos"||key=="icon"){// I should probably turn this into a array or something
varhtml='<div class="row info-body-row"><strong>Position:</strong> X {'+plr.x.toFixed(4)+"} Y {"+plr.y.toFixed(4)+"} Z {"+plr.z.toFixed(4)+"}</div>"
0 commit comments