Lua接口/客户端/SetSoftKeyAim
来自天龙知识库
跳到导航跳到搜索
SetSoftKeyAim
触发客户端事件 GE_SET_SOFTKEY_AIM;读取客户端本地数据 · 实现于 Game/Interface/GMGameInterface_Script.cpp
调用方式
SetSoftKeyAim(string)
作为全局函数直接按名称调用。
界面脚本中共 23 处调用,实参个数出现过:1 个(23 处)。
参数
| 序号 | 类型 | 说明 |
|---|---|---|
| 1 | string
|
调用点实参:"LogOn_PassWord"(4 处)、"UnLockMinorPassword_MinorPasswordEditBox"(3 处)、""(2 处)
|
返回值
无返回值(实现体 return 0)。被赋给变量时得到 nil,与返回数字 0 不同。
脚本中的调用
以下是界面脚本里的真实调用点(同一形态只列一次):
-- Agreement/Agreement.lua
SetSoftKeyAim("LogOn_PassWord")
-- ChangeMinorPassword/ChangeMinorPassword.lua
SetSoftKeyAim("ChangeMinorPassword_EditBox1")
-- ChangeMinorPassword/ChangeMinorPassword.lua
SetSoftKeyAim("ChangeMinorPassword_EditBox2")
-- ChangeMinorPassword/ChangeMinorPassword.lua
SetSoftKeyAim("ChangeMinorPassword_EditBox3")
-- Logon/LogOn.lua
SetSoftKeyAim("LogOn_ID")
-- Pswprotect/Pswprotect.lua
SetSoftKeyAim("")
-- Pswprotect/Pswprotect.lua
SetSoftKeyAim("Pswprotect_Input2")
关联
- 触发客户端事件:
GE_SET_SOFTKEY_AIM,见客户端事件 - 读取或修改客户端本地数据