Сообщения

Сообщения за апрель, 2023

lemur listbox

 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();             }         });                     listBox.setVisibleItems(6);         listBox.setPreferredSize(new Vector3f(200, 200, 0));         listBox.setLocalTranslation((800) , 680, 0);                  menu.addChild(listBox); /*  * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license  * Click nbfs://nbhost/SystemFileSystem/Templates/Clas