Localize map editor to Chinese

This commit is contained in:
2026-06-10 00:22:36 +08:00
parent 759abfd527
commit d7bc9e6a24
3 changed files with 77 additions and 77 deletions
+26 -26
View File
@@ -1,72 +1,72 @@
<!doctype html>
<html lang="en">
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>NS Unknown Game Map Editor</title>
<title>NS Unknown Game 地图编辑器</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header class="app-header">
<div>
<h1>Map Editor</h1>
<p>Edits Frostbite2D .map text files used by the game runtime.</p>
<h1>地图编辑器</h1>
<p>编辑游戏运行时使用的 Frostbite2D .map 文本地图。</p>
</div>
<div class="header-actions">
<button id="loadSampleButton" type="button">Load stage_01.map</button>
<button id="loadSampleButton" type="button">加载 stage_01.map</button>
<label class="file-button">
Open .map
打开 .map
<input id="fileInput" type="file" accept=".map,text/plain">
</label>
<button id="downloadButton" type="button">Download .map</button>
<button id="downloadButton" type="button">下载 .map</button>
</div>
</header>
<main class="editor-shell">
<aside class="panel left-panel">
<section>
<h2>Map</h2>
<h2>地图</h2>
<div class="field-grid">
<label>
ID
地图 ID
<input id="mapIdInput" type="text">
</label>
<label>
World W
世界宽
<input id="worldWidthInput" type="number" step="1">
</label>
<label>
World H
世界高
<input id="worldHeightInput" type="number" step="1">
</label>
<label>
Grid
网格
<input id="gridSizeInput" type="number" step="1" min="1" value="10">
</label>
</div>
</section>
<section>
<h2>Add</h2>
<h2>新增</h2>
<div class="button-grid">
<button id="addTilesetButton" type="button">Tileset</button>
<button id="addLayerButton" type="button">Layer</button>
<button id="addCollisionButton" type="button">Collision</button>
<button id="addTileRectButton" type="button">Tile Rect</button>
<button id="addBattleZoneButton" type="button">Battle Zone</button>
<button id="addSpawnButton" type="button">Spawn</button>
<button id="addTilesetButton" type="button">图块集</button>
<button id="addLayerButton" type="button">图层</button>
<button id="addCollisionButton" type="button">碰撞块</button>
<button id="addTileRectButton" type="button">铺砖区</button>
<button id="addBattleZoneButton" type="button">战斗区</button>
<button id="addSpawnButton" type="button">出生点</button>
</div>
</section>
<section class="object-section">
<h2>Objects</h2>
<h2>对象</h2>
<div id="objectList" class="object-list"></div>
</section>
</aside>
<section class="canvas-panel">
<div class="toolbar">
<span id="statusText">Ready</span>
<span id="statusText">就绪</span>
<span id="viewText"></span>
</div>
<canvas id="mapCanvas" width="1280" height="720"></canvas>
@@ -74,19 +74,19 @@
<aside class="panel right-panel">
<section>
<h2>Selection</h2>
<div id="selectionSummary" class="selection-summary">Nothing selected.</div>
<h2>选中对象</h2>
<div id="selectionSummary" class="selection-summary">未选择对象。</div>
<div id="propertyPanel" class="property-panel"></div>
<button id="deleteButton" type="button" class="danger-button">Delete Selected</button>
<button id="deleteButton" type="button" class="danger-button">删除选中对象</button>
</section>
<section>
<h2>Tilesets</h2>
<h2>图块集</h2>
<div id="tilesetList" class="tileset-list"></div>
</section>
<section>
<h2>Output</h2>
<h2>导出文本</h2>
<textarea id="outputText" spellcheck="false"></textarea>
</section>
</aside>