掌握人类历史上所有游戏
搜寻
登入 注册
Name
0 / 2730
0
通知
99

你的户口

设定 登出

通知

你没有新的通知。

语言

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

讨论区 > 一般讨论

大厅. showchatinput () 问题

作者 alen
2012-04-27 20:19:20
#1
alen
2
(由 Microsoft 翻译) 好吧, 所以我的舞台上有大厅组件的 Instace, 实例名称为 "lobby"

具有实例名称的b_btn

我的代码是

b_btn.addEventListener(鼠标事件:点击,显示聊天);

功能 showChat (e: 鼠标事件): void
{
lobby. showchatInput ();
}

当我点击按钮时, 我得到聊天输入在 x 0, y 0, 只能看到聊天输入的右下角。

聊天输入上的小箭头也不断切换边。
(原文) 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.
作者 alen
2012-04-27 20:19:20
回复
#2
alen
(由 Microsoft 翻译) 大厅将调用 getchatBubblePosition 获取聊天泡沫的位置。我们刚刚更新了大厅模块,以有一个操作GetChatBubble位置,供您设置这个函数的名称,我们还在手册中包含有关此功能的解释。
(原文) 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.
作者 Novel Games
2012-04-30 11:15:11
回复

发表回复

你必须登入才能发表回复
登入 注册
回答 #1:
请输入讯息
作者 %s
刊登回覆
正在递交......
发表回复失败。请再试试。 关闭