Translations:Binds/53/zh: Difference between revisions

From DDraceNetwork
Darkh (talk | contribs)
No edit summary
Darkh (talk | contribs)
No edit summary
 
Line 16: Line 16:
   
   
  bind [按键] exec 配置文件1.cfg
  bind [按键] exec 配置文件1.cfg
这样当您按下[按键]时,聊天框内会提示“{{color|red|设置,关闭!}}”。将回显消息定为不同的颜色,可方便您查看您执行的配置文件。
这样当您按下[按键]时,聊天框内会提示“{{color|red|设置,关闭!}}”。将回显消息定为不同的颜色,可方便您辨识所执行的配置文件。

Latest revision as of 03:39, 3 July 2023

Information about message (contribute)
This message has no documentation. If you know where or how this message is used, you can help other translators by adding documentation to this message.
Message definition (Binds)
As a more clear way to show which file you're activating when you press a bind, you can use the '''echo''' command to display which one is active.
 [command/setting] [value]
 [command/setting] [value]
 
 <span style="color:blue">echo</span> <span style="color:purple">setting ON</span>
 
 bind [key] exec file1.cfg
To take this a step further, there is a command to change the color of the echo messages.
 [command/setting] [value]
 [command/setting] [value]
 
 <span style="color:blue">cl_message_client_color</span> <span style="color:purple">red</span>
 <span style="color:blue">echo</span> <span style="color:purple">setting OFF</span>
 
 bind [key] exec file1.cfg
Having different colors for "on" and "off" binds makes it a bit easier to notice which setting you've activated.  If you want to get more creative with colors, see [https://wiki.ddnet.org/wiki/Binds#Colors colors].

回显(Echo)指令可以返回一些自定义的信息,比如自己设置的提示,让您明确您执行了配置文件。

[设置/指令] [参数]
[设置/指令] [参数]

echo 设置,启用!

bind [按键] exec 配置文件1.cfg

这样当您按下[按键],而配置文件执行到回显(echo)那一行时,聊天框内会提示“设置,启用!”。

您还可以加上颜色:

[设置/指令] [参数]
[设置/指令] [参数]

cl_message_client_color red
echo 设置,关闭!

bind [按键] exec 配置文件1.cfg

这样当您按下[按键]时,聊天框内会提示“设置,关闭!”。将回显消息定为不同的颜色,可方便您辨识所执行的配置文件。