Translations:Binds/85/zh: Difference between revisions

From DDraceNetwork
By (talk | contribs)
Created page with "绑定到不同的移动和操作键上,达到循环变色的效果,并且使用配置文件,方便开关。以下为一组例子: '''rainbow_tee_on.cfg''' bind {{color|green|a}} {{color|blue|{{color|red|"}}+left{{color|red|;}} player_color_body}} {{color|red|red"}} bind {{color|green|d}} {{color|blue|{{color|red|"}}+right{{color|red|;}} player_color_body}} {{color|red|yellow"}} bind {{color|green|space}} {{color|blue|{{color|red|"}}+jump{{color|red|;}} player..."
 
By (talk | contribs)
No edit summary
Line 1: Line 1:
绑定到不同的移动和操作键上,达到循环变色的效果,并且使用配置文件,方便开关。以下为一组例子:
您可使用配置文件,方便开关。以下为一组例子:
'''rainbow_tee_on.cfg'''
'''rainbow_tee_on.cfg'''
  bind {{color|green|a}} {{color|blue|{{color|red|"}}+left{{color|red|;}} player_color_body}} {{color|red|red"}}
  bind {{color|green|a}} {{color|blue|{{color|red|"}}+left{{color|red|;}} player_color_body}} {{color|red|red"}}

Revision as of 10:04, 14 February 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)
'''rainbow_tee_on.cfg'''
 bind <span style="color:green">a</span> <span style="color:blue"><span style="color:red">"</span>+left<span style="color:red">;</span> player_color_body</span> <span style="color:red">red"</span>
 bind <span style="color:green">d</span> <span style="color:blue"><span style="color:red">"</span>+right<span style="color:red">;</span> player_color_body</span> <span style="color:red">yellow"</span>
 bind <span style="color:green">space</span> <span style="color:blue"><span style="color:red">"</span>+jump<span style="color:red">;</span> player_color_body</span> <span style="color:red">green"</span>
 bind <span style="color:green">mouse1</span> <span style="color:blue"><span style="color:red">"</span>+fire<span style="color:red">;</span> player_color_body</span> <span style="color:red">blue"</span>
 bind <span style="color:green">mouse2</span> <span style="color:blue"><span style="color:red">"</span>+hook<span style="color:red">;</span> player_color_body</span> <span style="color:red">cyan"</span>
 
 <span style="color:purple">bind <span style="color:green">x</span> <span style="color:magenta">exec</span> <span style="color:blue">rainbow_tee_off.cfg</span>
'''rainbow_tee_off.cfg'''
 bind <span style="color:green">a</span> <span style="color:blue">+left</span>
 bind <span style="color:green">d</span> <span style="color:blue">+right</span>
 bind <span style="color:green">space</span> <span style="color:blue">+jump</span>
 bind <span style="color:green">mouse1</span> <span style="color:blue">+fire</span>
 bind <span style="color:green">mouse2</span> <span style="color:blue">+hook</span>
 
 <span style="color:purple">bind <span style="color:green">x</span> <span style="color:magenta">exec</span> <span style="color:blue">rainbow_tee_on.cfg</span>
Put both of these in the correct path, and in console:
 bind <span style="color:green">x</span> <span style="color:magenta">exec</span> <span style="color:blue">rainbow_tee_on.cfg</span>
You can of course get more creative with colors and use '''player_color_feet''' too.  To learn more about how colors work, see [https://wiki.ddnet.org/wiki/Binds#Colors colors]

您可使用配置文件,方便开关。以下为一组例子: rainbow_tee_on.cfg

bind a "+left; player_color_body red"
bind d "+right; player_color_body yellow"
bind space "+jump; player_color_body green"
bind mouse1 "+fire; player_color_body blue"
bind mouse2 "+hook; player_color_body cyan"

bind x exec rainbow_tee_off.cfg

rainbow_tee_off.cfg

bind a +left
bind d +right
bind space +jump
bind mouse1 +fire
bind mouse2 +hook

bind x exec rainbow_tee_on.cfg

将这两个配置文件放在配置目录里,并在F1控制台输入:

bind x exec rainbow_tee_on.cfg

您可以加入player_color_feet指令达到更有趣的变色效果。要了解关于颜色的指令。