cfg_shortcutKey.lua 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. -- 此文件工具自动生成,不要修改
  2. ---@class cfg_shortcutKey_column
  3. ---id
  4. ---@field id number @id column=1 A
  5. ---键盘上的按键
  6. ---支持多个按键共用一个功能,通过#分隔
  7. ---@field shortcutKey string @快捷键 column=2 B
  8. ---备注,策划看
  9. ---@field beizhu string @备注 column=3 C
  10. ---快捷键的使用效果类型
  11. ---1=打开界面
  12. ---2=设置内容
  13. ---3=...
  14. ---@field type number @效果类型 column=4 D
  15. ---1类型使用
  16. ---填cfg_system_switch表的id,对应取界面开启条件以及打开界面
  17. ---@field system number @界面跳转 column=5 E
  18. ---设置内容,2类型使用
  19. ---1=手动自动战斗设定人
  20. ---2=物移动设定
  21. ---@field set number @设置内容 column=6 F
  22. ---快捷键说明弹窗的展示文本,不配置则不在弹窗内显示
  23. ---@field text string @快捷键说明文本 column=7 G
  24. ---快捷键说明弹窗展示文本的排序依据,一条一行(文本过长自动换行)
  25. ---@field order number @快捷键说明排序 column=8 H
  26. local cfg_shortcutKey =
  27. {
  28. {id=1, shortcutKey="I#V", beizhu="背包", system=107, text="I,V:打开背包", order=7},
  29. {id=2, shortcutKey="C", beizhu="加点", system=111, text="C:打开加点", order=6},
  30. {id=3, shortcutKey="U", beizhu="锻造", system=104, text="U:打开锻造", order=8},
  31. {id=4, shortcutKey="M#Tab", beizhu="地图", text="Tab,M:打开地图", order=16},
  32. {id=5, shortcutKey="O", beizhu="外观", system=109, text="O:打开外观界面", order=9},
  33. {id=6, shortcutKey="B", beizhu="挑战首领", system=215, text="B:打开挑战首领", order=12},
  34. {id=7, shortcutKey="X", beizhu="商城", system=202, text="X:打开商城", order=14},
  35. {id=8, shortcutKey="J", beizhu="交易行", system=201, text="J:打开交易行", order=15},
  36. {id=9, shortcutKey="T", beizhu="每日目标", system=212, text="T:打开每日目标", order=13},
  37. {id=10, shortcutKey="G", beizhu="战盟", system=105, text="G:打开战盟", order=11},
  38. {id=11, shortcutKey="K", beizhu="技能", system=102, text="K:打开技能界面", order=10},
  39. {id=12, shortcutKey="Enter", beizhu="聊天", text="Enter:开启聊天", order=5},
  40. {id=13, shortcutKey="F7", beizhu="设置-挂机设置", text="F7:挂机设置", order=2},
  41. {id=14, shortcutKey="ESC", beizhu="设置-基本设置/关闭界面", type=2, system=101, text="ESC:基本设置/关闭界面", order=4},
  42. {id=15, shortcutKey="F8", beizhu="开启/关闭挂机", type=2, set=1, text="F8:开启/关闭挂机", order=3},
  43. {id=16, shortcutKey="LeftShift#RightShift", beizhu="固定角色", type=2, set=2, text="Shift:固定角色(禁止位移)", order=17},
  44. {id=17, shortcutKey="F1", beizhu="帮助", type=0, text="F1:帮助 On/Off", order=1},
  45. }
  46. local defaults = {type=1, system=0, set=0}
  47. local mt = {__index = defaults}
  48. for _, v in ipairs(cfg_shortcutKey) do
  49. setmetatable(v, mt)
  50. end
  51. return cfg_shortcutKey