fix: handle.js(tab_baccarat用的JS)补加路子珠特殊图标
This commit is contained in:
@@ -1932,7 +1932,7 @@ function cutRoad(roadType,ctb,unit,roadData,cols,ask,askroad){
|
|||||||
}
|
}
|
||||||
$.each(new_roadData,function(i,v){
|
$.each(new_roadData,function(i,v){
|
||||||
if(roadType=="showWay"){
|
if(roadType=="showWay"){
|
||||||
SoloPath(ctb,unit,v.show_x-cut,v.show_y,v.result,v.pair)
|
SoloPath(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)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -1997,12 +1997,29 @@ function Font_tie(ctb,num,Font_x,Font_y,fontsize){
|
|||||||
ctb.stroke();
|
ctb.stroke();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function SoloPath(ctb,unit,x,y,type,corners){
|
function SoloPath(ctb,unit,x,y,type,corners,luck_six,dragon_seven,panda_eight){
|
||||||
ctb.beginPath();
|
ctb.beginPath();
|
||||||
ctb.lineWidth = 0.5;
|
ctb.lineWidth = 0.5;
|
||||||
ctb.strokeStyle = "#000";
|
ctb.strokeStyle = "#000";
|
||||||
var radius=unit/2||0;
|
var radius=unit/2||0;
|
||||||
if (game_id == 6){
|
var cx = radius+unit*(x-1);
|
||||||
|
var cy = radius+unit*(y-1);
|
||||||
|
if(game_id==1 && luck_six > 0){
|
||||||
|
var color='#1a8c3a';
|
||||||
|
var fonts="6";
|
||||||
|
ctb.strokeStyle = "#2eb553";
|
||||||
|
ctb.lineWidth = 2;
|
||||||
|
} else if(game_id==1 && dragon_seven > 0){
|
||||||
|
var color='#d4a017';
|
||||||
|
var fonts="7";
|
||||||
|
ctb.strokeStyle = "#e6b822";
|
||||||
|
ctb.lineWidth = 2;
|
||||||
|
} else if(game_id==1 && panda_eight > 0){
|
||||||
|
var color='#1a6ed8';
|
||||||
|
var fonts="8";
|
||||||
|
ctb.strokeStyle = "#4a9af5";
|
||||||
|
ctb.lineWidth = 2;
|
||||||
|
} else if (game_id == 6){
|
||||||
if(type==0){
|
if(type==0){
|
||||||
var color='#5A5A5A';
|
var color='#5A5A5A';
|
||||||
var fonts="0";
|
var fonts="0";
|
||||||
|
|||||||
Reference in New Issue
Block a user