feat: PC路子珠支持幸运6/龙7/熊8特殊图标

This commit is contained in:
testadmin
2026-05-01 23:45:35 +08:00
parent 0fe4b97c61
commit 0835d7cf95
+15 -3
View File
@@ -157,7 +157,7 @@ function cutRoad(billnumber,roadType,ctb,unit,roadData,cols,gameId,ask,askroad){
}else if(roadType=="bigeyeWay"){ }else if(roadType=="bigeyeWay"){
BigeyePath(ctb,unit,start_x,v.show_x-cut,v.show_y,v.result) BigeyePath(ctb,unit,start_x,v.show_x-cut,v.show_y,v.result)
}else if(roadType=="showWay"){ }else if(roadType=="showWay"){
SoloPath(gameId,ctb,unit,v.show_x-cut,v.show_y,v.result,v.pair) SoloPath(gameId,ctb,unit,v.show_x-cut,v.show_y,v.result,v.pair,v.luck_six||0,v.dragon_seven||0,v.panda_eight||0)
}else if(roadType=="bigWay"){ }else if(roadType=="bigWay"){
BigPath(ctb,unit,start_x,v.show_x-cut,v.show_y,v.result,v.tie_num,v.pair,billnumber) BigPath(ctb,unit,start_x,v.show_x-cut,v.show_y,v.result,v.tie_num,v.pair,billnumber)
}else if(roadType=="sanxingWay"){ }else if(roadType=="sanxingWay"){
@@ -257,7 +257,7 @@ function Font_tie(ctb,num,Font_x,Font_y,fontsize,color){
ctb.stroke(); ctb.stroke();
} }
} }
function SoloPath(gameId,ctb,unit,x,y,type,corners){ function SoloPath(gameId,ctb,unit,x,y,type,corners,luck_six,dragon_seven,panda_eight){
ctb.beginPath(); ctb.beginPath();
ctb.lineWidth = unit*0.02; ctb.lineWidth = unit*0.02;
ctb.strokeStyle = "#fff"; ctb.strokeStyle = "#fff";
@@ -273,7 +273,19 @@ function SoloPath(gameId,ctb,unit,x,y,type,corners){
var dragon = isEn ? "D" : "龍"; var dragon = isEn ? "D" : "龍";
var tiger = isEn ? "T" : "虎"; var tiger = isEn ? "T" : "虎";
if(gameId==1){ if(gameId==1 && luck_six > 0){
var color='#1a8c3a', fonts="6";
ctb.strokeStyle = "#1a8c3a";
ctb.lineWidth = unit*0.05;
}else if(gameId==1 && dragon_seven > 0){
var color='#d4a017', fonts="7";
ctb.strokeStyle = "#d4a017";
ctb.lineWidth = unit*0.05;
}else if(gameId==1 && panda_eight > 0){
var color='#1a6ed8', fonts="8";
ctb.strokeStyle = "#1a6ed8";
ctb.lineWidth = unit*0.05;
}else if(gameId==1){
if(type==1){ if(type==1){
var color='#b20a00', var color='#b20a00',
fonts= banker; fonts= banker;