diff --git a/assets/buildings/spring/barracks/barracks_l.png b/assets/buildings/spring/barracks/barracks_l.png index 64a9fec..402c998 100644 Binary files a/assets/buildings/spring/barracks/barracks_l.png and b/assets/buildings/spring/barracks/barracks_l.png differ diff --git a/assets/buildings/spring/barracks/barracks_r.png b/assets/buildings/spring/barracks/barracks_r.png index 15b6685..ac9c94d 100644 Binary files a/assets/buildings/spring/barracks/barracks_r.png and b/assets/buildings/spring/barracks/barracks_r.png differ diff --git a/assets/buildings/spring/pasture/pasture_l.png b/assets/buildings/spring/pasture/pasture_l.png index 1babe0c..5f709e9 100644 Binary files a/assets/buildings/spring/pasture/pasture_l.png and b/assets/buildings/spring/pasture/pasture_l.png differ diff --git a/assets/buildings/spring/pasture/pasture_r.png b/assets/buildings/spring/pasture/pasture_r.png index 34cd3b5..b9c8294 100644 Binary files a/assets/buildings/spring/pasture/pasture_r.png and b/assets/buildings/spring/pasture/pasture_r.png differ diff --git a/assets/buildings/spring/school/school_l.png b/assets/buildings/spring/school/school_l.png index e57319b..fb327a4 100644 Binary files a/assets/buildings/spring/school/school_l.png and b/assets/buildings/spring/school/school_l.png differ diff --git a/assets/buildings/spring/school/school_r.png b/assets/buildings/spring/school/school_r.png index 4c5cff5..4631e3b 100644 Binary files a/assets/buildings/spring/school/school_r.png and b/assets/buildings/spring/school/school_r.png differ diff --git a/world.html b/world.html index aac6b81..984f976 100644 --- a/world.html +++ b/world.html @@ -32,16 +32,51 @@ body { background: #0a0e17; overflow: hidden; font-family: 'Microsoft YaHei', sa display: flex; align-items: center; gap: 10px; } #topBar .title img { width: 34px; height: 34px; border-radius: 7px; box-shadow: 0 0 12px rgba(74,175,255,.5); } +#topBar .worldNameWrap { + position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); + display: flex; align-items: center; gap: 10px; + pointer-events: auto; +} #topBar .title .worldName { font-size: 22px; font-weight: 700; color: #cfe1f3; -webkit-text-fill-color: #cfe1f3; - pointer-events: auto; - position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; padding: 4px 14px; border: 1.5px solid rgba(139,92,246,.55); border-radius: 8px; background: rgba(10,14,23,.75); box-shadow: 0 0 12px rgba(139,92,246,.2); } #topBar .title .worldName.editable { cursor: pointer; padding: 2px 8px; border-radius: 5px; transition: background .15s; } #topBar .title .worldName.editable:hover { background: rgba(255,255,255,.08); } + +/* 测试阶段金币编辑器(世界名称右侧) */ +#topBar .goldEditor { + display: none; + align-items: center; gap: 6px; + padding: 4px 10px; border-radius: 8px; + background: rgba(10,14,23,.75); + border: 1.5px solid rgba(255,193,7,.45); + box-shadow: 0 0 12px rgba(255,193,7,.15); + font-size: 13px; color: #ffe082; + white-space: nowrap; +} +#topBar .goldEditor .ge-current { font-weight: 700; min-width: 36px; text-align: right; } +#topBar .goldEditor .ge-input { + width: 64px; height: 24px; padding: 0 6px; + background: rgba(0,0,0,.35); border: 1px solid rgba(255,193,7,.4); + border-radius: 5px; color: #ffe082; font-size: 12px; font-weight: 600; + outline: none; text-align: center; +} +#topBar .goldEditor .ge-input:focus { border-color: rgba(255,193,7,.8); } +#topBar .goldEditor .ge-btn { + width: 24px; height: 24px; border-radius: 5px; border: none; + font-size: 15px; font-weight: 700; line-height: 1; cursor: pointer; + display: inline-flex; align-items: center; justify-content: center; + transition: transform .12s, filter .12s; +} +#topBar .goldEditor .ge-btn:active { transform: scale(0.92); } +#topBar .goldEditor .ge-plus { background: rgba(76,175,80,.25); color: #81c784; } +#topBar .goldEditor .ge-plus:hover { background: rgba(76,175,80,.4); } +#topBar .goldEditor .ge-minus { background: rgba(239,83,80,.25); color: #ef5350; } +#topBar .goldEditor .ge-minus:hover { background: rgba(239,83,80,.4); } +#topBar .goldEditor .ge-hint { font-size: 10px; color: #b0a070; } .worldName-input { background: transparent; border: 1px solid rgba(124,199,255,.6); color: #cfe1f3; font-size: 15px; font-weight: 600; padding: 2px 6px; border-radius: 5px; width: 180px; @@ -738,7 +773,7 @@ body { background: #0a0e17; overflow: hidden; font-family: 'Microsoft YaHei', sa #sceneToolbar .top-icon{width:40px;height:40px;font-size:19px;} } @media (max-width:420px){ - #topBar .title .worldName{display:none;} + #topBar .title .worldNameWrap{display:none;} #bottomBar .bb-btn{padding:7px 9px;font-size:11px;} #worldExpBarWrap{width:280px;gap:5px;} #worldExpBarWrap .we-title{display:none;} @@ -859,7 +894,20 @@ body { background: #0a0e17; overflow: hidden; font-family: 'Microsoft YaHei', sa