Move libs to top level

This commit is contained in:
Willem Cazander 2022-03-02 02:23:25 +01:00
parent 87ce108bd1
commit 57f46b2210
212 changed files with 16 additions and 29 deletions

View file

@ -0,0 +1,56 @@
package love.distributedrebirth.imxmi.lang;
import imgui.ImGui;
import imgui.type.ImInt;
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
public class ImComboˣᴹᴵ extends AbstractImComponentˣᴹᴵ {
private String label;
private final ImInt currentItem = new ImInt();
private String[] items;
private Runnable callback;
public ImComboˣᴹᴵ() {
}
public ImComboˣᴹᴵ(String label) {
setLabel(label);
}
@Override
public void renderComponent() {
if (ImGui.combo(label, currentItem, items) && callback != null) {
callback.run();
}
}
public String getLabel() {
return label;
}
public void setLabel(String label) {
this.label = label;
}
public Runnable getCallback() {
return callback;
}
public void setCallback(Runnable callback) {
this.callback = callback;
}
public ImInt getCurrentItem() {
return currentItem;
}
public String[] getItems() {
return items;
}
public void setItems(String[] items) {
this.items = items;
}
}