Change house name display
This commit is contained in:
@@ -253,37 +253,39 @@ function processLabelRendering() {
|
|||||||
for(let i in pickups) {
|
for(let i in pickups) {
|
||||||
if(pickups[i].getData("vrr.label.type") != null) {
|
if(pickups[i].getData("vrr.label.type") != null) {
|
||||||
if(getDistance(localPlayer.position, pickups[i].position) <= renderLabelDistance) {
|
if(getDistance(localPlayer.position, pickups[i].position) <= renderLabelDistance) {
|
||||||
let price = "0";
|
if(!pickups[i].isOnScreen) {
|
||||||
let rentPrice = "0";
|
let price = "0";
|
||||||
let labelInfoType = VRR_PROPLABEL_INFO_NONE;
|
let rentPrice = "0";
|
||||||
if(pickups[i].getData("vrr.label.price") != null) {
|
let labelInfoType = VRR_PROPLABEL_INFO_NONE;
|
||||||
price = makeLargeNumberReadable(pickups[i].getData("vrr.label.price"));
|
if(pickups[i].getData("vrr.label.price") != null) {
|
||||||
}
|
price = makeLargeNumberReadable(pickups[i].getData("vrr.label.price"));
|
||||||
|
}
|
||||||
|
|
||||||
if(pickups[i].getData("vrr.label.rentprice") != null) {
|
if(pickups[i].getData("vrr.label.rentprice") != null) {
|
||||||
rentPrice = makeLargeNumberReadable(pickups[i].getData("vrr.label.rentprice"));
|
rentPrice = makeLargeNumberReadable(pickups[i].getData("vrr.label.rentprice"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if(pickups[i].getData("vrr.label.help") != null) {
|
if(pickups[i].getData("vrr.label.help") != null) {
|
||||||
labelInfoType = pickups[i].getData("vrr.label.help");
|
labelInfoType = pickups[i].getData("vrr.label.help");
|
||||||
}
|
}
|
||||||
|
|
||||||
switch(pickups[i].getData("vrr.label.type")) {
|
switch(pickups[i].getData("vrr.label.type")) {
|
||||||
case VRR_LABEL_BUSINESS:
|
case VRR_LABEL_BUSINESS:
|
||||||
renderPropertyEntranceLabel(pickups[i].getData("vrr.label.name"), pickups[i].position, pickups[i].getData("vrr.label.locked"), true, price, rentPrice, labelInfoType);
|
renderPropertyEntranceLabel(pickups[i].getData("vrr.label.name"), pickups[i].position, pickups[i].getData("vrr.label.locked"), true, price, rentPrice, labelInfoType);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case VRR_LABEL_HOUSE:
|
case VRR_LABEL_HOUSE:
|
||||||
renderPropertyEntranceLabel(pickups[i].getData("vrr.label.name"), pickups[i].position, pickups[i].getData("vrr.label.locked"), false, price, rentPrice, labelInfoType);
|
renderPropertyEntranceLabel("House", pickups[i].position, pickups[i].getData("vrr.label.locked"), false, price, rentPrice, labelInfoType);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case VRR_LABEL_JOB:
|
case VRR_LABEL_JOB:
|
||||||
renderJobLabel(pickups[i].getData("vrr.label.name"), pickups[i].position, pickups[i].getData("vrr.label.jobType"));
|
renderJobLabel(pickups[i].getData("vrr.label.name"), pickups[i].position, pickups[i].getData("vrr.label.jobType"));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case VRR_LABEL_EXIT:
|
case VRR_LABEL_EXIT:
|
||||||
renderPropertyExitLabel(pickups[i].position);
|
renderPropertyExitLabel(pickups[i].position);
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user