TextDrawIsSelectable
aviso
Esta função foi adicionada no omp v1.1.0.2612 e não funcionará em versões anteriores!
Descrição
Verifica se um textdraw é selecionável.
Parâmetros
| Nome | Descrição |
|---|---|
| Text:textid | O ID do textdraw a ser verificado. |
Valores de retorno
Retorna true se o textdraw for selecionável, caso contrário false.
Exemplo de uso
new Text:gMyTextdraw;
public OnGameModeInit()
{
gMyTextdraw = TextDrawCreate(100.0, 33.0, "Example TextDraw");
TextDrawTextSize(gMyTextdraw, 30.0, 10.0);
TextDrawSetSelectable(gMyTextdraw, true);
if (TextDrawIsSelectable(gMyTextdraw))
{
// Textdraw é selecionável
}
else
{
// Textdraw não é selecionável
}
return 1;
}
Funções Relacionadas
- TextDrawCreate: Crie um desenho de texto.
- TextDrawDestroy: Destrua um textdraw.
- TextDrawSetSelectable: Define se um textdraw pode ser selecionado (clicado) ou não.
- TextDrawColor: Defina a cor do texto em um textdraw.
- TextDrawBoxColor: Defina a cor da caixa em um textdraw.
- TextDrawBackgroundColor: Define a cor de fundo de um textdraw.
- TextDrawAlignment: Define o alinhamento de um textdraw.
- TextDrawFont: Defina a fonte de um textdraw.
- TextDrawLetterSize: Defina o tamanho da letra do texto em um textdraw.
- TextDrawTextSize: Defina o tamanho de uma caixa de desenho de texto.
- TextDrawSetOutline: Escolha se o texto possui contorno.
- TextDrawSetShadow: Alterna sombras em um textdraw.
- TextDrawSetProportional: Dimensione o espaçamento do texto em um textdraw para uma proporção proporcional.
- TextDrawUseBox: Alterna se o textdraw possui caixa ou não.
- TextDrawSetString: Defina o texto em um textdraw existente.
- TextDrawShowForPlayer: Mostra um textdraw para um determinado jogador.
- TextDrawHideForPlayer: Oculta um textdraw para um determinado jogador.
- TextDrawShowForAll: Mostra um textdraw para todos os jogadores.
- TextDrawHideForAll: Oculta um textdraw para todos os jogadores.