User contributions for ForgottenCat
Appearance
1 January 2025
- 09:3609:36, 1 January 2025 diff hist −6 Touch controls/zh No edit summary
- 09:3609:36, 1 January 2025 diff hist −6 Translations:Touch controls/1/zh No edit summary
- 09:2009:20, 1 January 2025 diff hist −283 Touch controls/zh Created page with "为其他的客户端组件例如表情轮盘和旁观菜单添加触摸控制支持时,使用<code>CUi::UpdateTouchState</code>函数。确保你的组件会在接收<code>KEY_ESCAPE</code>时自动关闭,即安卓上的返回键。注意在每一帧中,只有一个组件可以使用触摸状态,因此按住一个游戏按键时同时用另一个手指使用另一个组件例如表情轮盘是不可能的。相反,相应的预定义按钮触摸行为(例如<co..."
- 09:2009:20, 1 January 2025 diff hist +716 N Translations:Touch controls/57/zh Created page with "为其他的客户端组件例如表情轮盘和旁观菜单添加触摸控制支持时,使用<code>CUi::UpdateTouchState</code>函数。确保你的组件会在接收<code>KEY_ESCAPE</code>时自动关闭,即安卓上的返回键。注意在每一帧中,只有一个组件可以使用触摸状态,因此按住一个游戏按键时同时用另一个手指使用另一个组件例如表情轮盘是不可能的。相反,相应的预定义按钮触摸行为(例如<co..." current
- 09:0709:07, 1 January 2025 diff hist −81 Touch controls/zh Created page with "全局键位格式设置的示例:"
- 09:0709:07, 1 January 2025 diff hist +36 N Translations:Touch controls/43/zh Created page with "全局键位格式设置的示例:" current
- 09:0609:06, 1 January 2025 diff hist −60 Touch controls/zh Created page with "* 默认的键位文件:https://github.com/ddnet/ddnet/blob/84b1c3c49c8d97a6911da34424d2023879ccdaf8/data/touch_controls.json * 向用户界面和引擎中添加触摸控制的拉取请求:https://github.com/ddnet/ddnet/pull/8621 * 添加游戏内触摸控制的拉取请求:https://github.com/ddnet/ddnet/pull/8632 * 添加表情选择器和旁观菜单的拉取请求:https://github.com/ddnet/ddnet/pull/8801"
- 09:0609:06, 1 January 2025 diff hist +418 N Translations:Touch controls/59/zh Created page with "* 默认的键位文件:https://github.com/ddnet/ddnet/blob/84b1c3c49c8d97a6911da34424d2023879ccdaf8/data/touch_controls.json * 向用户界面和引擎中添加触摸控制的拉取请求:https://github.com/ddnet/ddnet/pull/8621 * 添加游戏内触摸控制的拉取请求:https://github.com/ddnet/ddnet/pull/8632 * 添加表情选择器和旁观菜单的拉取请求:https://github.com/ddnet/ddnet/pull/8801" current
- 09:0309:03, 1 January 2025 diff hist −30 Touch controls/zh Created page with "== 参考 =="
- 09:0309:03, 1 January 2025 diff hist +12 N Translations:Touch controls/58/zh Created page with "== 参考 =="
- 09:0209:02, 1 January 2025 diff hist −77 Touch controls/zh Created page with "在分叉客户端中加入你自己的按键行为时,建议在新形状,可见性,行为等前加上你的分叉的名称。例如:<code>myfork.octagon</code> 如果你添加一个八边形的按键,从而避免和未来的版本发生冲突。"
- 09:0209:02, 1 January 2025 diff hist +256 N Translations:Touch controls/56/zh Created page with "在分叉客户端中加入你自己的按键行为时,建议在新形状,可见性,行为等前加上你的分叉的名称。例如:<code>myfork.octagon</code> 如果你添加一个八边形的按键,从而避免和未来的版本发生冲突。" current
- 08:5608:56, 1 January 2025 diff hist −76 Touch controls/zh Created page with "游戏内触摸控制在单独的客户端组件<code>CTouchControls</code>中实现,该组件位于<code>src/game/client/components/touch_controls.cpp</code><code>和<code>src/game/client/components/touch_concontrol.h</code>文件中。尽量直接使用绑定作为按钮的行为而不是预定义行为,从而降低复杂度。"
- 08:5608:56, 1 January 2025 diff hist +335 N Translations:Touch controls/55/zh Created page with "游戏内触摸控制在单独的客户端组件<code>CTouchControls</code>中实现,该组件位于<code>src/game/client/components/touch_controls.cpp</code><code>和<code>src/game/client/components/touch_concontrol.h</code>文件中。尽量直接使用绑定作为按钮的行为而不是预定义行为,从而降低复杂度。"
- 08:5208:52, 1 January 2025 diff hist −85 Touch controls/zh Created page with "以下为实现触摸控制的细节,为开发者准备。"
- 08:5208:52, 1 January 2025 diff hist +60 N Translations:Touch controls/54/zh Created page with "以下为实现触摸控制的细节,为开发者准备。" current
- 08:5208:52, 1 January 2025 diff hist −24 Touch controls/zh Created page with "== 实现细则 =="
- 08:5208:52, 1 January 2025 diff hist +18 N Translations:Touch controls/53/zh Created page with "== 实现细则 ==" current
- 08:5008:50, 1 January 2025 diff hist −327 Touch controls/zh Created page with "* '''安卓的问题''':同时按下三根手指会导致所有手指被立即同时松开。 ** '''解决方法''':原因是你手机自带的全局多指手势动作(设置里面搜"三指")。具体地,关闭"三指下滑截屏","三指长按截屏","三指上滑进入菜单"功能。 * '''安卓的问题''':有时候点击屏幕顶端15%位置会无响应或响应不连续。 ** '''解决方法''':目前不清楚..."
- 08:4908:49, 1 January 2025 diff hist +564 N Translations:Touch controls/52/zh Created page with "* '''安卓的问题''':同时按下三根手指会导致所有手指被立即同时松开。 ** '''解决方法''':原因是你手机自带的全局多指手势动作(设置里面搜"三指")。具体地,关闭"三指下滑截屏","三指长按截屏","三指上滑进入菜单"功能。 * '''安卓的问题''':有时候点击屏幕顶端15%位置会无响应或响应不连续。 ** '''解决方法''':目前不清楚..." current
- 08:4308:43, 1 January 2025 diff hist −21 Touch controls/zh Created page with "== 已知的问题 =="
- 08:4308:43, 1 January 2025 diff hist +21 N Translations:Touch controls/51/zh Created page with "== 已知的问题 =="
- 08:4208:42, 1 January 2025 diff hist −56 Touch controls/zh Created page with "<syntaxhighlight lang="json">{ "x": 600000, "y": 200000, "w": 100000, "h": 100000, "shape": "rect", "visibilities": [ ], "behavior": { "type": "bind-toggle", "commands": [ { "label": "Echo 1", "label-type": "plain", "command": "echo 1" }, { "label": "Echo 2", "label-type": "plain", "command": "..."
- 08:4208:42, 1 January 2025 diff hist +671 N Translations:Touch controls/50/zh Created page with "<syntaxhighlight lang="json">{ "x": 600000, "y": 200000, "w": 100000, "h": 100000, "shape": "rect", "visibilities": [ ], "behavior": { "type": "bind-toggle", "commands": [ { "label": "Echo 1", "label-type": "plain", "command": "echo 1" }, { "label": "Echo 2", "label-type": "plain", "command": "..." current
- 08:4208:42, 1 January 2025 diff hist −65 Touch controls/zh Created page with "示例按钮,带有<code>"bind-toggle"</code>的行为,会在对话框循环返回三条不同的消息:"
- 08:4208:42, 1 January 2025 diff hist +120 N Translations:Touch controls/49/zh Created page with "示例按钮,带有<code>"bind-toggle"</code>的行为,会在对话框循环返回三条不同的消息:" current
- 08:4108:41, 1 January 2025 diff hist −56 Touch controls/zh Created page with "<syntaxhighlight lang="json">{ "x": 755000, "y": 580000, "w": 225000, "h": 400000, "shape": "circle", "visibilities": [ "ingame" ], "behavior": { "type": "predefined", "id": "joystick-action" } }</syntaxhighlight>"
- 08:4108:41, 1 January 2025 diff hist +273 N Translations:Touch controls/48/zh Created page with "<syntaxhighlight lang="json">{ "x": 755000, "y": 580000, "w": 225000, "h": 400000, "shape": "circle", "visibilities": [ "ingame" ], "behavior": { "type": "predefined", "id": "joystick-action" } }</syntaxhighlight>" current
- 08:4108:41, 1 January 2025 diff hist 0 Touch controls/zh No edit summary
- 08:4108:41, 1 January 2025 diff hist 0 Translations:Touch controls/45/zh No edit summary current
- 08:4108:41, 1 January 2025 diff hist −44 Touch controls/zh Created page with "示例按钮,带有<code>"predefined"</code>的行为,是一个会执行当前被激活的行为的虚拟摇杆:"
- 08:4108:41, 1 January 2025 diff hist +128 N Translations:Touch controls/47/zh Created page with "示例按钮,带有<code>"predefined"</code>的行为,是一个会执行当前被激活的行为的虚拟摇杆:" current
- 08:4008:40, 1 January 2025 diff hist −56 Touch controls/zh Created page with "<syntaxhighlight lang="json">{ "x": 500000, "y": 500000, "w": 100000, "h": 100000, "shape": "rect", "visibilities": [ ], "behavior": { "type": "bind", "label": "Example", "label-type": "plain", "command": "echo Hello world!" } }</syntaxhighlight>"
- 08:4008:40, 1 January 2025 diff hist +314 N Translations:Touch controls/46/zh Created page with "<syntaxhighlight lang="json">{ "x": 500000, "y": 500000, "w": 100000, "h": 100000, "shape": "rect", "visibilities": [ ], "behavior": { "type": "bind", "label": "Example", "label-type": "plain", "command": "echo Hello world!" } }</syntaxhighlight>" current
- 08:4008:40, 1 January 2025 diff hist −46 Touch controls/zh Created page with "示例按钮,带有<code>"bind"</code>的行为,会在对话框返回一条消息。"
- 08:4008:40, 1 January 2025 diff hist +98 N Translations:Touch controls/45/zh Created page with "示例按钮,带有<code>"bind"</code>的行为,会在对话框返回一条消息。"
- 08:3908:39, 1 January 2025 diff hist −56 Touch controls/zh Created page with "<syntaxhighlight lang="json">{ "direct-touch-ingame": "action", "direct-touch-spectate": "aim", "touch-buttons": [ ... ] }</syntaxhighlight>"
- 08:3908:39, 1 January 2025 diff hist +164 N Translations:Touch controls/44/zh Created page with "<syntaxhighlight lang="json">{ "direct-touch-ingame": "action", "direct-touch-spectate": "aim", "touch-buttons": [ ... ] }</syntaxhighlight>" current
- 08:3408:34, 1 January 2025 diff hist −30 Touch controls/zh Created page with "== 示例 =="
- 08:3408:34, 1 January 2025 diff hist +12 N Translations:Touch controls/42/zh Created page with "== 示例 ==" current
- 08:3408:34, 1 January 2025 diff hist −56 Touch controls/zh Created page with "<span id="examples"></span>"
- 08:3408:34, 1 January 2025 diff hist +27 N Translations:Touch controls/41/zh Created page with "<span id="examples"></span>" current
- 08:3308:33, 1 January 2025 diff hist −75 Touch controls/zh Created page with "注:你也可直接更改配置目录中的<code>touch_controls.json</code>文件来修改键位,而不是导出/导入到剪贴板,但在安卓该做法不可行。"
- 08:3308:33, 1 January 2025 diff hist +171 N Translations:Touch controls/40/zh Created page with "注:你也可直接更改配置目录中的<code>touch_controls.json</code>文件来修改键位,而不是导出/导入到剪贴板,但在安卓该做法不可行。" current
- 08:3008:30, 1 January 2025 diff hist −84 Touch controls/zh Created page with "一个可在客户端内直接修改键位的界面在计划中。"
- 08:3008:30, 1 January 2025 diff hist +66 N Translations:Touch controls/39/zh Created page with "一个可在客户端内直接修改键位的界面在计划中。" current
- 08:3008:30, 1 January 2025 diff hist −197 Touch controls/zh Created page with "# 导出当前键位至剪贴板。 # 将剪贴板内容粘贴至一个文件来修改它。同时你也应该给你的键位设置备份! # 修改键位设置(关于相关格式见上)。 # 复制所有内容至剪贴板,然后在客户端内导入。若导入失败,在本地控制台内找到包含<code>touch_controls</code>的错误消息,并更正错误。用在线工具可更正JSON文本的错误和格式化。 # 更改完成后在客户端中保存你的..."
- 08:3008:30, 1 January 2025 diff hist +545 N Translations:Touch controls/38/zh Created page with "# 导出当前键位至剪贴板。 # 将剪贴板内容粘贴至一个文件来修改它。同时你也应该给你的键位设置备份! # 修改键位设置(关于相关格式见上)。 # 复制所有内容至剪贴板,然后在客户端内导入。若导入失败,在本地控制台内找到包含<code>touch_controls</code>的错误消息,并更正错误。用在线工具可更正JSON文本的错误和格式化。 # 更改完成后在客户端中保存你的..." current
- 08:2508:25, 1 January 2025 diff hist 0 Touch controls/zh No edit summary
- 08:2508:25, 1 January 2025 diff hist 0 Translations:Touch controls/36/zh No edit summary current