跳到主要内容

TextDrawColor

描述

设置文本绘图的文字颜色

参数名说明
Text:textid需要修改颜色的文本绘图 ID
textColour要设置的文字颜色值(RGBA 格式)

返回值

该函数不返回任何特定值

示例

new Text:gMyTextdraw;

public OnGameModeInit()
{
gMyTextdraw = TextDrawCreate(123.0, 123.0, "示例文字");
TextDrawColor(gMyTextdraw, 0x000000FF);
return 1;
}

注意事项

提示

若文本绘图已显示,必须重新显示(TextDrawShowForAll/TextDrawShowForPlayer)才能使本函数修改生效

相关函数