如何将png按钮添加到libgdx [英] How to add png button to libgdx

查看:70
本文介绍了如何将png按钮添加到libgdx的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,



我试图给libgdx添加一个按钮,但我已经有了它的png。它没有背景所有它说是用我在photoshop中制作的酷字体播放。当它按下时我有上下状态。我需要将哪些代码添加到主菜单?我试过了scene2d,但似乎我需要制作一个背景并在其上放置一个位图字体。感谢您的帮助。

Hello,

Im trying to add a button to libgdx but I already have the png for it. It doesn't have a background all it says is PLAY in a cool font that I made in photoshop. I have the up and down state when it it pressed. What code do I need to add the to the main menu? I tried scene2d but it seems that I need to make a background and put a bitmap font on it. Thanks for all your help.

推荐答案

这篇关于如何将png按钮添加到libgdx的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆