sound Получить ссылку Facebook X Pinterest Электронная почта Другие приложения марта 24, 2023 shootSound.setLooping(false); // activate continuous playing shootSound.setPositional(false); rootNode.attachChild(shootSound); Получить ссылку Facebook X Pinterest Электронная почта Другие приложения Комментарии
lemur listbox апреля 10, 2023 Container menu = new Container(); guiNode.attachChild(menu); menu.setLocalTranslation(getContext().getSettings().getWidth() / 2, getContext().getSettings().getHeight() / 2, 10); ListBox listBox = new ListBox(); listBox.getModel().add(new ListBoxItem("Forest")); listBox.addClickCommands(new Command() { @Override public void execute(Object source) { ListBox list = (ListBox) source; ListBoxItem boxItem = (ListBoxItem) list.getSelectedItem(); boxItem.action(); ... Далее...
bitmap text марта 24, 2023 BitmapFont guiFont = assetManager.loadFont( "Interface/Fonts/Default.fnt" ); hpText = new BitmapText (guiFont, false ); hpText.setSize(guiFont.getCharSet().getRenderedSize()); hpText.setColor(ColorRGBA.Red); hpText.setText( "HP:" + Integer.toString(hp)); hpText.setLocalTranslation( 0 , height- 160 , 0 ); guiNode.attachChild(hpText); Далее...
Комментарии
Отправить комментарий