2
0
Эх сурвалжийг харах

lua transpilers and ImageMagick usage for zh (#434)

* sound & mesh

* gamepad event mapping

* admob url

* Minor edit to building blocks intro text

* update gamepad & ios

* project settings

* libffi version

* scaling

* image compression

* update gamepads

* increase memory

* caching assets

* update 2021/10/6

* update 2021/10/16
blend-modes.md

* update 2021/11/12

* allow dynamic transforms update

* Bundle update

* update faq

* bullet & bob

* script properties update

* editor-styling

* build server url

* editor templates

* spine extension update

* Fix typo in the "optimizations" word in Chinese docs

* Update to material.md - Constants buffers

* Verify Graphics Calls

* H5 parameters

* OpenJDK downloads

* cn update corresponds to [pull 259](https://github.com/defold/doc/pull/259)

* application security

* porting guidelines

* update for 8f1651f

* cn update for 094bf6f

* cn update for 20fdfc5 & 6263317

* cn update for 7/19/2022

* title

* profiling update

* update editor.md

* update bob.md

* update shortcuts

* update fixed update note

* Update properties.md

* Update material.md

* Updates links

* Update bob help with the latest info

* camera & renderer

* Updated android keystore info zh_cn

* bundling.md release vs debug zh_cn

* update bob.md & gui-clipping.md

* contentless bundle

* consoles update

* model animation link

* gamepad & faq

* remove a camera lib

* font shadow render mode fix

* updates about app-manifest and others

* Update script.md

* includes in shaders

* editor scripts

* material updates

* Added dynamic atlas and texture creation

* fixes for atlas and some others

* update screenshots and add explanations (CN)

* add a line about Dynamic Prototype (CN)

* remove "inline" marks in pics

* de-translate the subtitle "Running the debugger" & images fix

* bundle identifier restrictions

* node properties Enabled and Visible (CN)

* release checklist & slice-9

* Update project-settings.md (CN)

* Update camera.md (CN)

* Update project-settings.md (CN)

* culling of meshes (CN)

* Update project-settings.md (CN)

* gltf model file support (CN)

* updates about factory (CN)

* Update bob.md (CN)

* Update bob.jar help (CN)

* Update about renderer and other things

* Update PS4 development and other things

* Dynamic prototype part of the collection factory.

* sync to atlas.md

* sync to design.md

* sync to gpgs.md

* sync to hot-reload.md

* sync to linux.md

* sync to live-update.md

* sync to lua.md

* sync to networking.md

* sync to physics-shapes.md

* sync to push.md

* sync to test.md

* sync to working-offline.md

* update material.md

* update zerobrane.md

* all done

* Splitting .zip archives in live-update.md

* manual for collision events

* Updated sprite documentation to include info about multiple textures

* update editor-scripts.md & physics-events.md

* update buffer.md & physics-shapes.md

* screen blend mode

* Update camera manual for zh with new function.

* Fix texture profile documentation for 1.7.0 zh

* update material.md & render.md

* notice about physics-events

* script-properties notes & PS5

* Clarified collision messages

* Update 3rd party camera list

* Fixed links in live update manual zh

* Update lua.md

* Update html5 manual with new information about CUSTOM_PARAMETERS. zh

* Added note on Apple Privacy Manifests zh

* typo

* Add info about collection proxies for zh

* fix minor mistakes

* typo

* custom resource & physics.set_shape

* Add missing type property in the physics.set_shape for zh

* html5 param & coordinates convertion

* Update install.md for zh

* Added app manifest manual for zh

* Added more info on build variants for zh

* lua transpilers and ImageMagick usage
COCO 1 жил өмнө
parent
commit
2432a48c2e

+ 15 - 3
docs/zh/manuals/windows.md

@@ -13,9 +13,21 @@ Windows 相关设置位于*game.project* 文件的 [Windows部分](/manuals/proj
 
 ## 应用图标
 
-Windows游戏的图标要使用 .ico 格式. 你可以拿一个 .png 文件, 使用[ICOConvert](https://www.icoconverter.com/) 之类的在线工具生成 .ico 图标. 注意图标使用如下大小:
-
-![Windows icon sizes](images/windows/windows-icon.png)
+Windows游戏的图标要使用 .ico 格式. 你可以拿一个 .png 文件, 使用[ICOConvert](https://www.icoconverter.com/) 或者  [AConvert](https://www.aconvert.com/icon/png-to-ico/) 之类的在线工具生成 .ico 图标. 上传图片最小使用这些尺寸: 16x16, 24x24, 32x32, 48x48, 256x256.
+
+原文: [Microsoft - Windows 应用图标建设](https://learn.microsoft.com/en-us/windows/apps/design/style/iconography/app-icon-construction#icon-sizes-win32)
+
+### 使用 ImageMagick 系列工具在本地生成 .ico 图标.
+例如在 Linux 上:
+1. 安装 [ImageMagick](https://www.imagemagick.org/):
+```
+sudo apt install imagemagick
+```
+2. 准备好你的 PNG 图标.
+3. 使用 [convert](https://www.imagemagick.org/script/convert.php) 工具从 PNG 转换到 ICO:
+```bash
+convert icon_256x256px.png -compress None -define icon:auto-resize=256,128,96,64,48,32,24,16 favicon.ico
+```
 
 ## 问答
 :[Windows 问答](../shared/windows-faq.md)

+ 4 - 0
docs/zh/manuals/writing-code.md

@@ -11,6 +11,10 @@ Defold 可以让你使用编辑器的可视工具来创建许多游戏必要的
 
 Defold 使用 Lua 5.1 和 LuaJIT (与目标平台相关) 并且需要遵循 Lua 该版本的书写规范来编写代码. 关于 Defold 中 Lua 使用详情请见 [Defold中Lua使用教程](/manuals/lua).
 
+## 使用其他语言再转换为 Lua
+
+从 1.8.1 版本开始, Defold 支持使用生成 Lua 代码的翻译器. 安装了翻译器扩展, 你就能使用其他语言 — 比如 [Teal](https://github.com/defold/extension-teal) — 写出带静态检查的 Lua. 这还是个预览功能, 它有如下限制: 目前翻译器支持不暴露模块和定义在 Defold Lua 运行环境中的函数. 这意味着使用 Defold APIs 类似 `go.animate` 需要你自己手动去写外部定义.
+
 ## 编写原生代码
 
 Defold 允许使用原生代码来扩展游戏引擎以使用引擎所不具备的特定功能. 或者 Lua 性能不良时 (密集计算, 图像处理等) 考虑使用原生扩展. 详情请见 [原生扩展教程](/manuals/extensions/).