Lua接口/客户端/Talk/SelectTextColor
来自天龙知识库
Talk:SelectTextColor
触发客户端事件 GE_CHAT_TEXTCOLOR_SELECT;读取客户端本地数据 · 实现于 Game/Interface/GMInterface_Script_Talk.cpp
调用方式
Talk:SelectTextColor(string, string)
对象名 Talk 是全局对象,可直接使用。
界面脚本中共 4 处调用,实参个数出现过:2 个(2 处)、3 个(2 处)。
参数
| 序号 | 类型 | 说明 |
|---|---|---|
| 1 | string
|
调用点实参:"select"(3 处)、"sucess"(1 处)
|
| 2 | string
|
调用点实参:ChatSpeaker_GetBtnScreenPosX("color")(1 处)、InfoEdit_GetBtnScreenPosX("color")(1 处)、MainMenuBar_GetBtnScreenPos("color")(1 处)
|
实现体还读取了第 3 个实参,但界面脚本中没有这样调用过。
返回值
无返回值(实现体 return 0)。被赋给变量时得到 nil,与返回数字 0 不同。
脚本中的调用
以下是界面脚本里的真实调用点(同一形态只列一次):
-- ChatSpeaker/ChatSpeaker.lua
Talk:SelectTextColor("select", ChatSpeaker_GetBtnScreenPosX("color"), ChatSpeaker_GetBtnScreenPosY("color"))
-- ChatTextColorFrame/ChatTextColorFrame.lua
Talk:SelectTextColor("sucess", strResult)
-- InfoEdit/InfoEdit.lua
Talk:SelectTextColor("select", InfoEdit_GetBtnScreenPosX("color"), InfoEdit_GetBtnScreenPosY("color"))
-- MainMenuBar/MainMenuBar.lua
Talk:SelectTextColor("select", MainMenuBar_GetBtnScreenPos("color"))
关联
- 触发客户端事件:
GE_CHAT_TEXTCOLOR_SELECT,见客户端事件 - 读取或修改客户端本地数据