私は JME3 ゲーム エンジンは初めてですが、Android XML GUI レイアウトがかなり優れていることは知っています。ここには単純なレイアウトがあり、何が間違っているのかわかりません。ここに私のXMLコードがあります:
<?xml version="1.0" encoding="UTF-8"?>
<nifty xmlns="http://nifty-gui.sourceforge.net/nifty-1.3.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://nifty-gui.sourceforge.net/nifty-1.3.xsd
http://nifty-gui.sourceforge.net/nifty-1.3.xsd">
<useControls filename="nifty-default-controls.xml" />
<useStyles filename="nifty-default-styles.xml" />
<screen id="start" controller="com.jasoncrosby.game.farkle.gui.MenuScreenGui">
<layer id="layer" backgroundColor="#66CD00" childLayout="center">
<panel id="panel" align="center" valign="center" childLayout="center" visibleToMouse="true">
<image filename="Textures/wood_floor.png" height="95%" width="95%"/>
<panel id="panel" align="center" valign="center" childLayout="center" visibleToMouse="true">
<text text="test" font="Interface/Fonts/Eraser.fnt"></text>
</panel>
</panel>
</layer>
</screen>
テキストを表示するまで、すべてうまくいきます。さまざまな配置を試し、テキストを別のパネルに移動しようとしましたが、何をしてもテキストが画面の中央に表示されません。これまでのところ、常に左上隅にあり、テキストの右下部分しか見えません。シンプルなものでなければならないと確信していますが、私はこれに慣れていないので、何も気づいていません。事前に助けてくれてありがとう。