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

This commit is contained in:
testadmin
2026-05-01 23:45:35 +08:00
parent 833d76e88c
commit d61f2ad3cf
+10 -3
View File
@@ -735,7 +735,7 @@ function cutRoad(
} else if (roadType == "bigeyeWay") {
BigeyePath(ctb, unit, start_x, v.show_x - cut, v.show_y, v.result)
} 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") {
BigPath(
ctb,
@@ -841,7 +841,7 @@ function halfcutRoad(
}
new_roadData.forEach(function (v) {
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") {
BigPath(
ctb,
@@ -987,7 +987,7 @@ function Font_tie(ctb, num, Font_x, Font_y, fontsize, color) {
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.lineWidth = unit * 0.02
ctb.strokeStyle = "#fff"
@@ -995,6 +995,13 @@ function SoloPath(gameId, ctb, unit, x, y, type, corners) {
const $Type = $store.state.config.$Type
const $lang = $store.state.config.$lang
let color, fonts
if (gameId == 1 && luck_six > 0) {
color = "#1a8c3a"; fonts = "6"; ctb.lineWidth = unit * 0.05
} else if (gameId == 1 && dragon_seven > 0) {
color = "#d4a017"; fonts = "7"; ctb.lineWidth = unit * 0.05
} else if (gameId == 1 && panda_eight > 0) {
color = "#1a6ed8"; fonts = "8"; ctb.lineWidth = unit * 0.05
} else
switch (gameId) {
case 1:
if (type == 1) {