IsPlayerTextDrawVisible
注意
这个函数是在omp v1.1.0.2612中添加的,在以前的版本中不起作用!
描述
检测指定玩家的专属文本绘图是否处于显示状态。
参数名 | 说明 |
---|---|
playerid | 要检测的玩家 ID |
PlayerText:textid | 玩家文本绘图的 ID |
返回值
true - 文本绘图当前可见
false - 文本绘图当前不可见
示例代码
new PlayerText:welcomeText[MAX_PLAYERS]; // 创建玩家文本绘图存储数组
public OnPlayerConnect(playerid)
{
welcomeText[playerid] = CreatePlayerTextDraw(playerid, 320.0, 240.0, "欢迎来到我的OPEN.MP服务器");
PlayerTextDrawShow(playerid, welcomeText[playerid]);
if (IsPlayerTextDrawVisible(playerid, welcomeText[playerid]))
{
// 玩家文本绘图已显示
}
else
{
// 玩家文本绘图未显示
}
}
相关函数
- PlayerTextDrawDestroy: 销毁玩家文本绘图
- PlayerTextDrawColor: 设置文本颜色
- PlayerTextDrawBoxColor: 设置文本框颜色
- PlayerTextDrawBackgroundColor: 设置背景色
- PlayerTextDrawAlignment: 设置对齐方式
- PlayerTextDrawFont: 设置字体样式
- PlayerTextDrawLetterSize: 设置字符尺寸
- PlayerTextDrawTextSize: 设置绘制区域尺寸
- PlayerTextDrawSetOutline: 启用文本描边
- PlayerTextDrawSetShadow: 设置文本阴影
- PlayerTextDrawSetProportional: 启用比例间距
- PlayerTextDrawUseBox: 启用文本框
- PlayerTextDrawSetString: 更新文本内容
- PlayerTextDrawShow: 显示文本绘图
- PlayerTextDrawHide: 隐藏文本绘图
- IsValidPlayerTextDraw: 验证文本绘图有效性