feat(game): 添加成都麻将房间配置和桌面牌面显示功能
- 在房间创建接口中添加总回合数配置选项 - 实现桌面弃牌区域的可视化展示,区分各玩家的弃牌和组合 - 添加缺门标识显示,帮助玩家识别缺门牌组起始位置 - 优化牌面操作状态管理,增加弃牌等待状态和超时处理机制 - 更新样式布局适配新的桌面牌面区域,调整墙体和桌面对齐方式 - 修复多处牌面状态同步问题,确保游戏流程中的界面一致性
This commit is contained in:
@@ -312,6 +312,61 @@
|
||||
z-index: 5;
|
||||
}
|
||||
|
||||
.action-countdown {
|
||||
position: absolute;
|
||||
top: 92px;
|
||||
right: 40px;
|
||||
min-width: 188px;
|
||||
padding: 10px 12px;
|
||||
border: 1px solid rgba(255, 219, 131, 0.22);
|
||||
border-radius: 12px;
|
||||
color: #fff5d5;
|
||||
background: rgba(21, 17, 14, 0.82);
|
||||
box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
|
||||
z-index: 5;
|
||||
}
|
||||
|
||||
.action-countdown.is-self {
|
||||
border-color: rgba(107, 237, 174, 0.36);
|
||||
color: #e8fff3;
|
||||
}
|
||||
|
||||
.action-countdown-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.action-countdown-head strong {
|
||||
font-size: 20px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.action-countdown-track {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
height: 6px;
|
||||
margin-top: 10px;
|
||||
border-radius: 999px;
|
||||
background: rgba(255, 255, 255, 0.12);
|
||||
}
|
||||
|
||||
.action-countdown-fill {
|
||||
display: block;
|
||||
height: 100%;
|
||||
border-radius: inherit;
|
||||
background: linear-gradient(90deg, #ffd569 0%, #ff8e3c 100%);
|
||||
transition: width 0.9s linear;
|
||||
}
|
||||
|
||||
.action-countdown.is-self .action-countdown-fill {
|
||||
background: linear-gradient(90deg, #75f0aa 0%, #22b573 100%);
|
||||
}
|
||||
|
||||
.signal-chip {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
@@ -445,6 +500,22 @@
|
||||
0 2px 6px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.picture-scene .player-meta .trustee-chip {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-top: 4px;
|
||||
padding: 1px 8px;
|
||||
border-radius: 999px;
|
||||
color: #eaffef;
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
background: linear-gradient(180deg, rgba(57, 182, 110, 0.86), rgba(19, 105, 61, 0.94));
|
||||
box-shadow:
|
||||
inset 0 1px 0 rgba(255, 255, 255, 0.2),
|
||||
0 2px 6px rgba(0, 0, 0, 0.18);
|
||||
}
|
||||
|
||||
.picture-scene .player-badge.seat-right .player-meta,
|
||||
.picture-scene .player-badge.seat-left .player-meta {
|
||||
display: flex;
|
||||
@@ -554,12 +625,12 @@
|
||||
}
|
||||
|
||||
.wall-right {
|
||||
right: 110px;
|
||||
right: 140px;
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
.wall-left {
|
||||
left: 110px;
|
||||
left: 140px;
|
||||
}
|
||||
|
||||
.wall-left img,
|
||||
@@ -636,6 +707,7 @@
|
||||
}
|
||||
|
||||
.wall-live-tile-button {
|
||||
position: relative;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
@@ -643,6 +715,24 @@
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.wall-live-tile-lack-tag {
|
||||
position: absolute;
|
||||
top: 21px;
|
||||
left: 5px;
|
||||
min-width: 18px;
|
||||
height: 18px;
|
||||
padding: 0 4px;
|
||||
border-radius: 6px;
|
||||
color: #fff8e8;
|
||||
font-size: 10px;
|
||||
line-height: 16px;
|
||||
font-weight: 800;
|
||||
background: linear-gradient(180deg, rgba(200, 56, 41, 0.95), rgba(137, 25, 14, 0.96));
|
||||
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
|
||||
z-index: 2;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.wall-live-tile-button:disabled {
|
||||
cursor: default;
|
||||
opacity: 1;
|
||||
@@ -701,6 +791,116 @@
|
||||
left: 110px;
|
||||
}
|
||||
|
||||
.desk-zone {
|
||||
position: absolute;
|
||||
display: flex;
|
||||
gap: 0;
|
||||
max-width: 280px;
|
||||
max-height: 220px;
|
||||
pointer-events: none;
|
||||
z-index: 2;
|
||||
filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.2));
|
||||
}
|
||||
|
||||
.desk-zone-top,
|
||||
.desk-zone-bottom {
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
|
||||
.desk-zone-top {
|
||||
top: 208px;
|
||||
}
|
||||
|
||||
.desk-zone-bottom {
|
||||
bottom: 220px;
|
||||
}
|
||||
|
||||
.desk-zone-left,
|
||||
.desk-zone-right {
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.desk-zone-left {
|
||||
left: 240px;
|
||||
}
|
||||
|
||||
.desk-zone-right {
|
||||
right: 240px;
|
||||
}
|
||||
|
||||
.desk-tile {
|
||||
display: block;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.desk-zone-top .desk-tile,
|
||||
.desk-zone-bottom .desk-tile {
|
||||
width: 30px;
|
||||
height: 44px;
|
||||
}
|
||||
|
||||
.desk-zone-left .desk-tile,
|
||||
.desk-zone-right .desk-tile {
|
||||
width: 44px;
|
||||
height: 30px;
|
||||
}
|
||||
|
||||
.desk-zone-top .desk-tile + .desk-tile {
|
||||
margin-left: -0px;
|
||||
}
|
||||
|
||||
.desk-zone-bottom .desk-tile + .desk-tile {
|
||||
margin-left: -2px;
|
||||
}
|
||||
|
||||
.desk-zone-left .desk-tile + .desk-tile,
|
||||
.desk-zone-right .desk-tile + .desk-tile {
|
||||
margin-top: -14px;
|
||||
}
|
||||
|
||||
.desk-zone-top .desk-tile.is-group-start,
|
||||
.desk-zone-bottom .desk-tile.is-group-start {
|
||||
margin-left: 6px;
|
||||
}
|
||||
|
||||
.desk-zone-bottom .desk-tile.is-group-start {
|
||||
margin-left: 13px;
|
||||
}
|
||||
|
||||
.desk-zone-left .desk-tile.is-group-start,
|
||||
.desk-zone-right .desk-tile.is-group-start {
|
||||
margin-top: 7px;
|
||||
}
|
||||
|
||||
.desk-tile.is-covered {
|
||||
opacity: 0.95;
|
||||
}
|
||||
|
||||
.desk-hu-flag {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-width: 24px;
|
||||
height: 24px;
|
||||
margin-left: 6px;
|
||||
padding: 0 7px;
|
||||
border-radius: 999px;
|
||||
color: #fff3da;
|
||||
font-size: 12px;
|
||||
font-weight: 800;
|
||||
background: linear-gradient(180deg, rgba(219, 81, 56, 0.92), rgba(146, 32, 20, 0.96));
|
||||
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
|
||||
}
|
||||
|
||||
.desk-zone-left .desk-hu-flag,
|
||||
.desk-zone-right .desk-hu-flag {
|
||||
margin-top: 6px;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.center-wind-square {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
@@ -1287,6 +1487,22 @@
|
||||
left: 88px;
|
||||
}
|
||||
|
||||
.desk-zone-top {
|
||||
top: 196px;
|
||||
}
|
||||
|
||||
.desk-zone-bottom {
|
||||
bottom: 208px;
|
||||
}
|
||||
|
||||
.desk-zone-left {
|
||||
left: 186px;
|
||||
}
|
||||
|
||||
.desk-zone-right {
|
||||
right: 186px;
|
||||
}
|
||||
|
||||
.inner-outline.mid {
|
||||
inset: 70px 72px 120px;
|
||||
}
|
||||
@@ -1307,6 +1523,12 @@
|
||||
height: 62px;
|
||||
font-size: 22px;
|
||||
}
|
||||
|
||||
.action-countdown {
|
||||
top: 82px;
|
||||
right: 20px;
|
||||
min-width: 164px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
@@ -1329,6 +1551,11 @@
|
||||
display: none;
|
||||
}
|
||||
|
||||
.desk-zone-top,
|
||||
.desk-zone-bottom {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.wall-left {
|
||||
left: 32px;
|
||||
}
|
||||
@@ -1337,6 +1564,14 @@
|
||||
right: 32px;
|
||||
}
|
||||
|
||||
.desk-zone-left {
|
||||
left: 84px;
|
||||
}
|
||||
|
||||
.desk-zone-right {
|
||||
right: 84px;
|
||||
}
|
||||
|
||||
.floating-status.left,
|
||||
.floating-status.right {
|
||||
display: none;
|
||||
@@ -1354,6 +1589,21 @@
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.top-right-clock {
|
||||
top: 16px;
|
||||
right: 16px;
|
||||
gap: 8px;
|
||||
padding: 7px 10px;
|
||||
}
|
||||
|
||||
.action-countdown {
|
||||
top: 62px;
|
||||
right: 16px;
|
||||
min-width: 0;
|
||||
width: calc(100% - 32px);
|
||||
padding: 8px 10px;
|
||||
}
|
||||
|
||||
.bottom-control-panel {
|
||||
width: calc(100% - 20px);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user