简体   繁体   English

精灵部分的AndEngine图像

[英]AndEngine Image on part of a sprite

I'm working on a game which integrates Facebook. 我正在开发一款整合Facebook的游戏。 In a certain scene, the user can choose an opponent from the list of Facebook friends who have installed the game. 在某个场景中,用户可以从安装游戏的Facebook朋友列表中选择一个对手。

I want to create this menu of friends, I know how to create the list, I know how to get the friends who have the app installed, and how to get their info. 我想创建这个朋友菜单,我知道如何创建列表,我知道如何让安装了该应用程序的朋友,以及如何获取他们的信息。 What I don't know, is how to create a sprite, which would have, for example, the user's profile image on the left, his name and score on the right, and to have this whole thing act as a sprite (or a SpriteButton ) 我不知道如何创建一个Sprite,例如,该用户将在左侧显示用户的个人资料图片,在其右侧显示其姓名和分数,并让整个内容充当Sprite(或SpriteButton

Can anyone point me to the right direction? 谁能指出我正确的方向? Since I obtain the info from Facebook, I can't, obviously, have the Sprites pre-made. 由于我是从Facebook获得信息的,所以显然我无法预制Sprites。

Any help would be great! 任何帮助将是巨大的!

You shouldn't use AndEngine entities for this, as there is nothing ready to suit your needs (You'll have to make this on your own). 您不应该为此使用AndEngine实体,因为还没有任何东西可以满足您的需求(您必须自己制作)。

Instead, use the regular android dialogs. 相反,请使用常规的android对话框。 You can use your own layout which consists the profile picture and any other text you want. 您可以使用自己的布局,其中包括个人资料图片和所需的任何其他文本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM