Files

74 lines
1.4 KiB
Markdown

# UIStringListComponent.UIStringListComponent
[← UIStringListComponent](index.md) · [← Master](../../wiki.md)
Parça 3/3 · [önceki](UIStringListComponent-2.md)
// Set first string in the list to be selected
uiContext.get("strings").selected(0);
background
public UIStringListComponent background()
Set component's solid color background.
// Assuming that uiContext is a IMappetUIContext
// Set half transparent black background
uiContext.get("strings").background();
background
public UIStringListComponent background(int background)
Set component's solid color background.
// Assuming that uiContext is a IMappetUIContext
// Set half transparent toxic green background
uiContext.get("strings").background(0x8800ff00);
applyProperty
protected void applyProperty(UIContext context,
java.lang.String key,
GuiElement element)
Overrides:
applyProperty in class UIComponent
create
public GuiElement create(Minecraft mc,
UIContext context)
Specified by:
create in class UIComponent
populateData
public void populateData(NBTTagCompound tag)
Overrides:
populateData in class UIComponent
serializeNBT
public void serializeNBT(NBTTagCompound tag)
Overrides:
serializeNBT in class UIComponent
deserializeNBT
public void deserializeNBT(NBTTagCompound tag)
Overrides:
deserializeNBT in class UIComponent