Admin Menu Configuration (SourceMod)/zh

From AlliedModders Wiki
Revision as of 02:12, 9 September 2019 by Yurizhou (talk | contribs) (Created page with "{{Languages|Admin Menu Configuration (SourceMod)}} SourceMod的管理菜单选项能改变顺序。尽管菜单项不能改变他们的种类,但是能在一个种类下改...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Language: English  • русский • 中文

SourceMod的管理菜单选项能改变顺序。尽管菜单项不能改变他们的种类,但是能在一个种类下改变他们的顺序。没有显性的指明排序的菜单项排在明确了顺序的菜单项后,并且按照用户的语言排序。

通过addons/sourcemod/configs/adminmenu_sorting.txt可以控制菜单项顺序。每个区块代表一个种类。区块的顺序代表这些种类在菜单下的顺序。每个区块又有自己特有的菜单项的排序。

注意,这些菜单项并不是指令。它们是与菜单连接的识别名。第三方插件也许会新增一些菜单项到管理菜单中,并且这些菜单项也有它们特有的识别名。(无论有没有相关的指令)

样例

这个格式和Mani插件很像。

"Menu"
{
    "PlayerCommands"
    {
        "item"      "sm_slay"
        "item"      "sm_kick"
        "item"      "sm_ban"
        "item"      "sm_gag"
        "item"      "sm_burn"
    }

    "ServerCommands"
    {
        "item"      "sm_map"
        "item"      "sm_execcfg"
        "item"      "sm_reloadadmins"
    }

    "VotingCommands"
    {
        "item"      "sm_cancelvote"
        "item"      "sm_votemap"
        "item"      "sm_votekick"
        "item"      "sm_voteban"
    }
}