feat(store): open store pages in-game and centralize economy tuning
Use the native embedded browser and pass the game language through auto_local. Share web assets and extract vehicle icons, flags, and localized names from the installed client. Load and validate per-domain JSONC tuning and merge local overrides by field. Use official store USD prices for GJN products, keep GJN balances in integer cents, and split the native and web store handlers by protocol. Multi-vehicle packs are still listed as single vehicles at this point. Type checking, patch checks, and configuration loading passed. In-game acceptance is pending.
This commit is contained in:
1 parent
8d9cca9d05
commit
9cf7df5299
74 files changed
+2904
-1455
No files matched your search
@@ -1,128 +1,7 @@
|
||||
:root {
|
||||
--bg: #11161c;
|
||||
--panel: #19212b;
|
||||
--panel-alt: #212b38;
|
||||
--border: #2e3b4d;
|
||||
--text: #e6edf5;
|
||||
--muted: #93a3b5;
|
||||
--accent: #e09f3e;
|
||||
--accent-hover: #f0b354;
|
||||
--ok: #3ea66b;
|
||||
--err: #d9534f;
|
||||
}
|
||||
* { box-sizing: border-box; }
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
}
|
||||
header {
|
||||
background: var(--panel);
|
||||
border-bottom: 1px solid var(--border);
|
||||
padding: 14px 24px;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 16px;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.brand { font-size: 18px; font-weight: 700; letter-spacing: 0.3px; }
|
||||
.brand span { color: var(--accent); font-size: 13px; margin-left: 8px; font-weight: 500; }
|
||||
.wallet {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 12px;
|
||||
align-items: center;
|
||||
}
|
||||
.pill {
|
||||
background: var(--panel-alt);
|
||||
border: 1px solid var(--border);
|
||||
padding: 6px 12px;
|
||||
border-radius: 6px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.pill strong { color: var(--accent); font-size: 15px; margin-left: 4px; }
|
||||
.link-btn {
|
||||
text-decoration: none;
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
padding: 6px 10px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
}
|
||||
select, input {
|
||||
background: var(--panel-alt);
|
||||
color: var(--text);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
padding: 7px 11px;
|
||||
font-size: 14px;
|
||||
}
|
||||
#searchInput { min-width: 220px; }
|
||||
main { max-width: 1240px; margin: 0 auto; padding: 20px 24px 48px; }
|
||||
.tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
|
||||
.tab {
|
||||
background: var(--panel);
|
||||
color: var(--muted);
|
||||
border: 1px solid var(--border);
|
||||
padding: 9px 16px;
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
}
|
||||
.tab.active { background: var(--accent); color: #11161c; border-color: var(--accent); }
|
||||
.filters { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
|
||||
.notice {
|
||||
padding: 10px 14px;
|
||||
border-radius: 6px;
|
||||
margin-bottom: 16px;
|
||||
font-size: 14px;
|
||||
display: none;
|
||||
}
|
||||
.notice.ok { display: block; background: rgba(62, 166, 107, 0.18); border: 1px solid var(--ok); }
|
||||
.notice.err { display: block; background: rgba(217, 83, 79, 0.18); border: 1px solid var(--err); }
|
||||
.grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
|
||||
gap: 14px;
|
||||
}
|
||||
.card {
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
padding: 15px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
}
|
||||
.card h3 { margin: 0 0 6px; font-size: 16px; }
|
||||
.meta { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
|
||||
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
|
||||
.price { font-size: 17px; font-weight: 700; color: var(--accent); }
|
||||
button.buy {
|
||||
background: var(--accent);
|
||||
color: #11161c;
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
padding: 8px 14px;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
font-size: 13.5px;
|
||||
}
|
||||
button.buy:hover:not(:disabled) { background: var(--accent-hover); }
|
||||
button.buy:disabled { background: var(--border); color: var(--muted); cursor: default; }
|
||||
.redeem-box {
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
padding: 20px;
|
||||
max-width: 600px;
|
||||
}
|
||||
.redeem-box h3 { margin-top: 0; }
|
||||
.redeem-row { display: flex; gap: 10px; margin: 12px 0 16px; }
|
||||
.redeem-row input { flex: 1; }
|
||||
.hint { color: var(--muted); font-size: 13px; line-height: 1.6; }
|
||||
code { background: var(--panel-alt); padding: 2px 6px; border-radius: 4px; color: var(--accent); }
|
||||
/* Store page only; the shared layout is /_wto/ui/common.css. */
|
||||
.contents { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
|
||||
.redeem { display: flex; flex-direction: column; gap: 12px; max-width: 760px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
|
||||
.redeem-row { display: flex; flex-wrap: wrap; gap: 8px; }
|
||||
.redeem-row input { flex: 1 1 280px; }
|
||||
.redeem-help { margin: 0; padding-left: 18px; color: var(--muted); }
|
||||
.redeem-help li { margin: 2px 0; }
|
||||
Reference in new issue
Block a user