-
Notifications
You must be signed in to change notification settings - Fork 48
i18n #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
i18n #5
Changes from 2 commits
64c0c29
0ac0d19
fd88f4b
b8d5aa7
5917d70
e570a3e
c1e8f88
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| mc.imjcj.cloudns.ph | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,14 +7,20 @@ class CreateNewWorldPage extends Page { | |
| super(); | ||
| this.typeBtn = this.shadowRoot.getElementById("world-type-btn"); | ||
| this.typeEcho = this.shadowRoot.getElementById("world-type-echo"); | ||
| this.typeEcho.data = "normal"; | ||
|
||
| this.createBtn = this.shadowRoot.getElementById("create-new-word"); | ||
| this.worldName = this.shadowRoot.getElementById("world-name"); | ||
| this.worldSeed = this.shadowRoot.getElementById("world-seed"); | ||
|
|
||
| this.typeBtn.addEventListener("click", () => { | ||
| if (this.typeEcho.innerHTML == "Normal") | ||
| this.typeEcho.innerHTML = "Flat"; | ||
| else this.typeEcho.innerHTML = "Normal"; | ||
| if (this.typeEcho.innerHTML == "普通") { | ||
| this.typeEcho.innerHTML = "超平坦"; | ||
| this.typeEcho.data = "flat"; | ||
| } | ||
| else { | ||
| this.typeEcho.innerHTML = "普通"; | ||
| this.typeEcho.data = "normal"; | ||
| } | ||
| }); | ||
|
|
||
| this.createBtn.addEventListener("click", () => { | ||
|
|
@@ -25,7 +31,7 @@ class CreateNewWorldPage extends Page { | |
| worldType: ({ | ||
| Normal: "pre-classic", | ||
| Flat: "flat", | ||
| })[this.typeEcho.innerHTML], | ||
| })[this.typeEcho.data], | ||
| seed, | ||
| }); | ||
| }); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -50,15 +50,15 @@ | |
| } | ||
| </style> | ||
| <div class="mc-background" darken><div> | ||
| <h1>How to play</h1> | ||
| <h1>帮助</h1> | ||
| <table> | ||
| <tr><td><b>WASD</b></td> <td>Move; Double-click W to Sprint</td></tr> | ||
| <tr><td><b>Spacebar</b></td> <td>Jump; Double-click to switch Fly Mode</td></tr> | ||
| <tr><td><b>Shift/X</b></td> <td>When Fly Mode is on, causes the player to lose altitude (descend)</td></tr> | ||
| <tr><td><b>ESC</b></td> <td>Gives back cursor control</td></tr> | ||
| <tr><td><b>E</b></td> <td>Open inventory</td></tr> | ||
| <tr><td><b>Left/Right button</b></td> <td>Destroy/Place blocks</td></tr> | ||
| <tr><td><b>Scroll</b></td> <td>Scrolls through the Hotbar</td></tr> | ||
| <tr><td><b>WASD</b></td> <td>移动,双击W疾行</td></tr> | ||
|
||
| <tr><td><b>空格</b></td> <td>跳跃,按两下空格起飞</td></tr> | ||
lemonorangeapple marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| <tr><td><b>Shift/X</b></td> <td>起飞后,可降低高度</td></tr> | ||
|
||
| <tr><td><b>ESC</b></td> <td>进入菜单</td></tr> | ||
| <tr><td><b>E</b></td> <td>打开物品栏</td></tr> | ||
| <tr><td><b>左键/右键</b></td> <td>破坏/放置方块</td></tr> | ||
| <tr><td><b>滚轮</b></td> <td>切换快捷栏槽位</td></tr> | ||
| </table> | ||
| <mc-button gotoPage="*pop">Back</mc-button> | ||
| </div></div> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,19 +27,19 @@ | |
| } | ||
| </style> | ||
| <div class="wrapper"> | ||
| <h1>Options</h1> | ||
| <h1>设置</h1> | ||
| <!-- <mc-slider id="render-distance" label="Render Distance: " unit=" chunks" step="1"></mc-slider> <mc-button>default</mc-button> | ||
| <br /> --> | ||
| <mc-slider id="fov" label="FOV: " unit=" °" step="1"></mc-slider> <mc-button>default</mc-button> | ||
| <mc-slider id="fov" label="视距: " unit=" " step="1"></mc-slider> <mc-button>default</mc-button> | ||
|
||
| <br /> | ||
| <mc-slider id="mouse-sensitivity" unit=" " label="Mouse Sensitivity: " step="1"></mc-slider> <mc-button>default</mc-button> | ||
| <mc-slider id="mouse-sensitivity" unit=" " label="鼠标灵敏度: " step="1"></mc-slider> <mc-button>default</mc-button> | ||
| <br /> | ||
| <div class="homepage-blur-group"> | ||
| <mc-slider id="homepage-blur" label="Homepage Blur: " unit=" px" min="0" step="0.5" max="10" value="3.5"></mc-slider> <mc-button>default</mc-button> | ||
| <mc-slider id="homepage-blur" label="主页透明度: " unit=" px" min="0" step="0.5" max="10" value="3.5"></mc-slider> <mc-button>default</mc-button> | ||
|
||
| </div> | ||
| <mc-button id="shade-btn">Face-dependent Lighting: <span id="shade-echo">OFF</span></mc-button> | ||
| <mc-button id="shade-btn">禁用平滑光照: <span id="shade-echo">OFF</span></mc-button> | ||
| <br/> | ||
| <mc-button id="debug-output-btn">Debug output: <span id="debug-output-echo">OFF</span></mc-button> | ||
| <mc-button id="debug-output-btn">调试输出: <span id="debug-output-echo">OFF</span></mc-button> | ||
| <br /> | ||
| <mc-button gotoPage="*pop">Back</mc-button> | ||
| </div> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -55,7 +55,7 @@ | |
| <img width="512" height="64" src="./texture/title.png" /> | ||
| <p class="mc-bouncing-text">View in <a href="https://github.com/jerrychan7/WebMC">GitHub!</a></p> | ||
| <ul> | ||
| <li><mc-button gotoPage="select-world">Start</mc-button></li> | ||
| <li><mc-button gotoPage="how-to-play">How to play</mc-button></li> | ||
| <li><mc-button gotoPage="setting">Setting</mc-button></li> | ||
| <li><mc-button gotoPage="select-world">开始</mc-button></li> | ||
| <li><mc-button gotoPage="how-to-play">帮助</mc-button></li> | ||
| <li><mc-button gotoPage="setting">设置</mc-button></li> | ||
|
||
| </ul> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| var blockShowNames = { | ||
| "air": "空气", | ||
| "stone": "石头", | ||
| "granite": "花岗岩", | ||
| "polished_granite": "磨制花岗岩", | ||
| "diorite": "闪长岩", | ||
| "polished_diorite": "磨制闪长岩", | ||
| "andesite": "安山岩", | ||
| "polished_andesite": "磨制安山岩", | ||
| "grass": "草方块", | ||
| "dirt": "泥土", | ||
| "cobblestone": "原石", | ||
| "oak_wood_planks": "橡木木板", | ||
| "spruce_wood_planks": "云杉木板", | ||
| "birch_wood_planks": "白桦木板", | ||
| "jungle_wood_planks": "丛林木板", | ||
| "acacia_wood_planks": "金合欢木板", | ||
| "dark_oak_wood_planks": "深色橡木木板", | ||
| "oak_sapling": "橡树树苗", | ||
| "spruce_sapling": "云杉树苗", | ||
| "birch_sapling": "白桦树苗", | ||
| "jungle_sapling": "丛林树苗", | ||
| "acacia_sapling": "金合欢树苗", | ||
| "dark_oak_sapling": "深色橡树树苗", | ||
| "bedrock": "基岩", | ||
| "water": "水", | ||
| "flowing_water": "流动的水", | ||
| "lava": "熔岩", | ||
| "flowing_lava": "流动的熔岩", | ||
| "oak_log": "橡木", | ||
| "spruce_log": "云杉木", | ||
| "birch_log": "白桦木", | ||
| "jungle_log": "丛林木", | ||
| "oak_leaves": "橡树树叶", | ||
| "spruce_leaves": "云杉树叶", | ||
| "birch_leaves": "白桦树叶", | ||
| "jungle_leaves": "丛林树叶", | ||
| "glass": "玻璃", | ||
| "acacia_leaves": "金合欢树叶", | ||
| "dark_oak_leaves": "深色橡树树叶", | ||
| "dandelion": "蒲公英", | ||
| "poppy": "虞美人", | ||
| "blue_orchid": "兰花", | ||
| "allium": "绒球葱", | ||
| "azure_bluet": "蓝花美耳草", | ||
| "red_tulip": "红色郁金香", | ||
| "orange_tulip": "橙色郁金香", | ||
| "white_tulip": "白色郁金香", | ||
| "pink_tulip": "粉红色郁金香", | ||
| "oxeye_daisy": "滨菊", | ||
| "crafting_table": "工作台", | ||
| "cactus": "仙人掌", | ||
| "glowstone": "萤石" | ||
| }; | ||
|
|
||
| export { | ||
| blockShowNames | ||
| }; |
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 如果可以请标明字体的来源。我本来想用 丁卯点阵字体 来作为本项目的像素字体的,但无奈该字体 实 在 是 太 贵 了!因此我只是简单的解包了非常旧版的mcpe找到了之前的字体(虽然也是非法的,但早期的mcpe本来也是非法的,就睁只眼闭只眼吧)
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 字体为GNU unifont点阵字体,使用SIL许可证,其大致意思为:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
请删除和本项目无关的
CNAME文件