Dominar todos os jogos da história da humanidade
buscar
Entrar Registrar
Name
0 / 2730
0
Notificações
99

A sua conta

Definições Sair

Notificações

Não tem novas notificações.

Idioma

English 繁體中文 简体中文 Español 日本語 Deutsch العربية français Русский 한국어 भारतीय
Menu

Fóruns > Discussão Geral

lobby.showChatInput() problema

por alen
2012-04-27 20:19:20
#1
alen
6
(Traduzido por Microsoft) Tudo bem, então eu tenho o instace do componente lobby no meu palco com o nome de instância de "lobby"

um botão com um nome de ocorrência de b_btn

meu código é

b_btn.addEventListener (MouseEvent:Click, showChat);

função showChat(e:MouseEvent):void
{
lobby.showChatInput();
}

quando eu clicar no botão eu recebo a entrada de bate-papo em x 0, y 0 e só posso ver o canto inferior direito da entrada do chat.

também a pequena seta na entrada do chat continua alternando de lados.
(Original) lobby.showChatInput() problem

Alright, so i have the instace of the lobby component on my stage with instance name of "lobby"

a button with an instance name of b_btn

my code is

b_btn.addEventListener(MouseEvent:Click, showChat);

function showChat(e:MouseEvent):void
{
lobby.showChatInput();
}

when i click the button i get the chat input at x 0, y 0 and can only see the bottom right corner of the chat input.

also the little arrow on chat input keeps switching sides.
por alen
2012-04-27 20:19:20
Gosto
Responder
#2
alen
(Traduzido por Microsoft) O lobby chamará getChatBubblePosition para obter a posição da bolha de bate-papo. Acabamos de atualizar o módulo de lobby para ter uma actionGetChatBubblePosition para você definir o nome desta função, também incluímos explicação no manual sobre esta função.
(Original) The lobby will call getChatBubblePosition to get the position of the chat bubble. We have just updated the lobby module to have a actionGetChatBubblePosition for you to set the name of this function, we have also included explanation in the manual about this function.
por Novel Games
2012-04-30 11:15:11
Gosto
Responder

Publicar uma Resposta

Tens de aceder para deixares uma resposta
Entrar Registrar
Em resposta a #1:
Por favor, insira uma mensagem
por %s
Postar resposta
Enviando...
Falha ao deixar resposta. Tenta de novo. Fechar