登入
登入
CHN
CHN
ENG
DEU
FRA
RUS
BRA
專用徽章
Battlefield
加入自己的徽章
热门
0
複製總數
32
圖層數
8
Devil Foxy
作者:
張兆棟
»
代碼 BATTLEFIELD 1
复制到剪贴板
显示代码
var request=new XMLHttpRequest;request.open("POST","https://companion-api.battlefield.com/jsonrpc/web/api?Emblems.newPrivateEmblem",!0),request.onreadystatechange=function(){if(request.readyState==XMLHttpRequest.DONE){var e=JSON.parse(request.responseText);e.result?window.location.href=window.location.href.replace("/new","/edit/")+e.result.slot:alert("Error")}},request.setRequestHeader("Content-Type","application/json;charset=UTF-8"),request.setRequestHeader("X-GatewaySession",localStorage.gatewaySessionId),data={jsonrpc:"2.0",method:"Emblems.newPrivateEmblem",params:{data:'[{"opacity": 1,"angle": 0,"flipX": false,"flipY": false,"top": 118.4018443472,"height": 195.19631130569996,"width": 129.0668509777,"asset": "Lightning1","selectable": false,"left": 96.4726442388,"fill": "#000000"},{"opacity": 1,"angle": 0,"flipX": true,"flipY": false,"top": 118.4018443472,"height": 195.19631130569996,"width": 129.0668509777,"asset": "Lightning1","selectable": false,"left": 222.4726442388,"fill": "#000000"},{"opacity": 1,"angle": 0,"flipX": false,"flipY": false,"top": 111.6028275069,"height": 33.2056550139,"width": 76.304375,"asset": "PlayerMarker","selectable": false,"left": 159.8478125,"fill": "#000000"},{"opacity": 1,"angle": 180,"flipX": false,"flipY": false,"top": 153,"height": 100,"width": 26,"asset": "Triangle","selectable": false,"left": 160,"fill": "#000000"},{"opacity": 1,"angle": 13.7344185219,"flipX": false,"flipY": false,"top": 129.9338960041,"height": 14.808521810700002,"width": 49.8944383008,"asset": "Wingpart","selectable": false,"left": 130.1837958294,"fill": "#790000"},{"opacity": 1,"angle": -17.8142939942,"flipX": true,"flipY": false,"top": 128.9338960041,"height": 14.808521810700002,"width": 49.8944383008,"asset": "Wingpart","selectable": false,"left": 188.1837958294,"fill": "#790000"},{"opacity": 1,"angle": 21.985801762,"flipX": false,"flipY": false,"top": 244.1781149627,"height": 34.513907488,"width": 262.9271016194,"asset": "WeaponShotgun","selectable": false,"left": 162.9374332155,"fill": "#000000"},{"opacity": 1,"angle": -22.8134656991,"flipX": true,"flipY": false,"top": 243.1781149627,"height": 34.513907488,"width": 262.9271016194,"asset": "WeaponShotgun","selectable": false,"left": 155.9374332155,"fill": "#000000"}]'},id:"00000000-0000-0000-0000-000000000000"},request.send(JSON.stringify(data));
代碼 BATTLEFIELD 4, Hardline
复制到剪贴板
显示代码
emblem.emblem.load({"objects": [{"opacity": 1,"angle": 0,"flipX": false,"flipY": false,"top": 118.4018443472,"height": 195.19631130569996,"width": 129.0668509777,"asset": "Lightning1","selectable": false,"left": 96.4726442388,"fill": "#000000"},{"opacity": 1,"angle": 0,"flipX": true,"flipY": false,"top": 118.4018443472,"height": 195.19631130569996,"width": 129.0668509777,"asset": "Lightning1","selectable": false,"left": 222.4726442388,"fill": "#000000"},{"opacity": 1,"angle": 0,"flipX": false,"flipY": false,"top": 111.6028275069,"height": 33.2056550139,"width": 76.304375,"asset": "PlayerMarker","selectable": false,"left": 159.8478125,"fill": "#000000"},{"opacity": 1,"angle": 180,"flipX": false,"flipY": false,"top": 153,"height": 100,"width": 26,"asset": "Triangle","selectable": false,"left": 160,"fill": "#000000"},{"opacity": 1,"angle": 13.7344185219,"flipX": false,"flipY": false,"top": 129.9338960041,"height": 14.808521810700002,"width": 49.8944383008,"asset": "Wingpart","selectable": false,"left": 130.1837958294,"fill": "#790000"},{"opacity": 1,"angle": -17.8142939942,"flipX": true,"flipY": false,"top": 128.9338960041,"height": 14.808521810700002,"width": 49.8944383008,"asset": "Wingpart","selectable": false,"left": 188.1837958294,"fill": "#790000"},{"opacity": 1,"angle": 21.985801762,"flipX": false,"flipY": false,"top": 244.1781149627,"height": 34.513907488,"width": 262.9271016194,"asset": "WeaponShotgun","selectable": false,"left": 162.9374332155,"fill": "#000000"},{"opacity": 1,"angle": -22.8134656991,"flipX": true,"flipY": false,"top": 243.1781149627,"height": 34.513907488,"width": 262.9271016194,"asset": "WeaponShotgun","selectable": false,"left": 155.9374332155,"fill": "#000000"}]});
匯入徽章
登入
BF4 Battlelog
。
進入
「自訂徽章」頁面
。
按一下「+ 新增」按鈕以創建一個新的空白徽章。
開啟瀏覽器控制台 (Chrome:Ctrl-Shift-J、Firefox:Ctrl-Shift-K、Opera:Ctrl-Shift-I、IE:F12)。
將以下代碼貼到控制台並按下 [Enter 鍵],確認從
emblem.emblem.load
到最後的分號之間的內容都有貼上。 (徽章的所有圖層會被載入)
關閉控制台。
按一下右上方的「儲存並使用」按鈕。
广告