I have been coding some bf1 graphics.
Can someone tell me how to code a cirkel progressbar??
And I have some issue with showing a weapon and vehicle image, the debug info says the following:
warn0: 'image(4): file not given'
This is the code I am using
Code:
function sortWeaponsBy(field) {
if(!pd || !pd.weapons) return;
pd.weapons.sort(function(a,b){
var val_a,val_b;
if(a && a.stat) val_a=a.stat[field];
if(b && b.stat) val_b=b.stat[field];
if(val_a<val_b) return 1;
if(val_a>val_b) return -1;
return 0;
});
}
sortWeaponsBy('kills')
var w0 = pd.weapons[0];
text({ x:460, y:124, text: w0.name, color: 'ffffff', size:7, align:'left' });
shadowText({x:460,y:164,text:'Kills:', size:7, align:'left' });
text({ x:588, y:164, text: w0.stat.kills, color: 'ffffff', size:7, align:'right' });
image({x:80,y:72,w:105,h:53, file:w0.imgFancy});
EDIT: I finally got it to work 
Only the stats.score of TDM is not working!

There is only no choice between a Fancy or a Lineart image.
Code:
image({x:80,y:72,w:105,h:53, file:w0.imgFancy});
If you remove fancy, the image will display. so only file:w0.img
Bookmarks