feat: 竖屏路子珠支持幸运6/龙7/熊8特殊图标
This commit is contained in:
@@ -735,7 +735,7 @@ function cutRoad(
|
|||||||
} 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(
|
BigPath(
|
||||||
ctb,
|
ctb,
|
||||||
@@ -841,7 +841,7 @@ function halfcutRoad(
|
|||||||
}
|
}
|
||||||
new_roadData.forEach(function (v) {
|
new_roadData.forEach(function (v) {
|
||||||
if (roadType == "showWay") {
|
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(
|
BigPath(
|
||||||
ctb,
|
ctb,
|
||||||
@@ -987,7 +987,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"
|
||||||
@@ -995,6 +995,13 @@ function SoloPath(gameId, ctb, unit, x, y, type, corners) {
|
|||||||
const $Type = $store.state.config.$Type
|
const $Type = $store.state.config.$Type
|
||||||
const $lang = $store.state.config.$lang
|
const $lang = $store.state.config.$lang
|
||||||
let color, fonts
|
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) {
|
switch (gameId) {
|
||||||
case 1:
|
case 1:
|
||||||
if (type == 1) {
|
if (type == 1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user