• <legend id='IJSTJ'><style id='IJSTJ'><dir id='IJSTJ'><q id='IJSTJ'></q></dir></style></legend>
    <i id='IJSTJ'><tr id='IJSTJ'><dt id='IJSTJ'><q id='IJSTJ'><span id='IJSTJ'><b id='IJSTJ'><form id='IJSTJ'><ins id='IJSTJ'></ins><ul id='IJSTJ'></ul><sub id='IJSTJ'></sub></form><legend id='IJSTJ'></legend><bdo id='IJSTJ'><pre id='IJSTJ'><center id='IJSTJ'></center></pre></bdo></b><th id='IJSTJ'></th></span></q></dt></tr></i><div id='IJSTJ'><tfoot id='IJSTJ'></tfoot><dl id='IJSTJ'><fieldset id='IJSTJ'></fieldset></dl></div>

        <bdo id='IJSTJ'></bdo><ul id='IJSTJ'></ul>
    1. <tfoot id='IJSTJ'></tfoot>

      <small id='IJSTJ'></small><noframes id='IJSTJ'>

      1. Libgdx |场景2d |设置表格的背景颜色?

        时间:2023-05-20
          • <bdo id='xp2kC'></bdo><ul id='xp2kC'></ul>

            <small id='xp2kC'></small><noframes id='xp2kC'>

              <legend id='xp2kC'><style id='xp2kC'><dir id='xp2kC'><q id='xp2kC'></q></dir></style></legend>

                <tfoot id='xp2kC'></tfoot>

                <i id='xp2kC'><tr id='xp2kC'><dt id='xp2kC'><q id='xp2kC'><span id='xp2kC'><b id='xp2kC'><form id='xp2kC'><ins id='xp2kC'></ins><ul id='xp2kC'></ul><sub id='xp2kC'></sub></form><legend id='xp2kC'></legend><bdo id='xp2kC'><pre id='xp2kC'><center id='xp2kC'></center></pre></bdo></b><th id='xp2kC'></th></span></q></dt></tr></i><div id='xp2kC'><tfoot id='xp2kC'></tfoot><dl id='xp2kC'><fieldset id='xp2kC'></fieldset></dl></div>
                  <tbody id='xp2kC'></tbody>
                  本文介绍了Libgdx |场景2d |设置表格的背景颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  我正在创建一个菜单(就像那个是飞扬的鸟,当你死后它会在播放屏幕上弹出).我创建了一个扩展表格的类,我想将表格的背景设置为白色.有没有办法做到这一点?

                  I am creating a menu (like the one is flappy bird, when you die it pops up over the play screen). I created a class that extends table, and I want to set the background of the table to white. Is there a way to do this?

                  推荐答案

                  你可以这样做:

                  Pixmap bgPixmap = new Pixmap(1,1, Pixmap.Format.RGB565);
                  bgPixmap.setColor(Color.RED);
                  bgPixmap.fill();
                  textureRegionDrawableBg = new TextureRegionDrawable(new TextureRegion(new Texture(bgPixmap)));
                  Table table = new Table();
                  table.setBackground(textureRegionDrawableBg);
                  

                  记得在纹理和像素图上调用 dispose().`

                  Remember to call dispose() on the texture and on the pixmap. `

                  这篇关于Libgdx |场景2d |设置表格的背景颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:“AL lib:alc_cleanup:1 个设备未关闭"是什么意思 下一篇:Libgdx 无法确定 java 版本 11.0.1

                  相关文章

                  最新文章

                1. <legend id='VNGBo'><style id='VNGBo'><dir id='VNGBo'><q id='VNGBo'></q></dir></style></legend>

                  1. <i id='VNGBo'><tr id='VNGBo'><dt id='VNGBo'><q id='VNGBo'><span id='VNGBo'><b id='VNGBo'><form id='VNGBo'><ins id='VNGBo'></ins><ul id='VNGBo'></ul><sub id='VNGBo'></sub></form><legend id='VNGBo'></legend><bdo id='VNGBo'><pre id='VNGBo'><center id='VNGBo'></center></pre></bdo></b><th id='VNGBo'></th></span></q></dt></tr></i><div id='VNGBo'><tfoot id='VNGBo'></tfoot><dl id='VNGBo'><fieldset id='VNGBo'></fieldset></dl></div>
                    1. <tfoot id='VNGBo'></tfoot>
                        <bdo id='VNGBo'></bdo><ul id='VNGBo'></ul>

                      <small id='VNGBo'></small><noframes id='VNGBo'>