UI
Index
Classes
Interfaces
- AbstractSlot
- ColorDrawing
- CustomDrawing
- DrawColor
- DrawCustom
- DrawFrame
- DrawImage
- DrawLine
- DrawText
- ElementSet
- FontDescription
- FrameDrawing
- FrameTexture
- FrameTextureSides
- IBackgroundProvider
- IBitmapWrap
- IButtonElement
- ICloseButtonElement
- IContentProvider
- ICustomElement
- IDrawing
- IElement
- IElementCleaner
- IElementProvider
- IFPSTextElement
- IFrameElement
- IImageElement
- IInvSlotElement
- IScaleElement
- IScriptableWatcher
- IScrollElement
- ISlotElement
- ISwitchElement
- ITabElement
- ITextElement
- ITouchEvent
- IWindow
- IWindowLocation
- ImageDrawing
- LineDrawing
- OnOpenCloseListener
- StandardWindowBackgroundDescription
- StandardWindowContent
- StandardWindowDescription
- StandardWindowHeaderDescription
- StandardWindowHeaderTextDescription
- StandardWindowInventoryDescription
- TabbedWindowContent
- TextDrawing
- UIButtonElementProps
- UIClickEvent
- UICustomElementProps
- UIElement
- UIFPSTextElementProps
- UIFrameElementProps
- UIImageElementProps
- UIInvSlotElementProps
- UIScaleElementProps
- UIScrollElementProps
- UISlotElementProps
- UISwitchElementProps
- UITabElementProps
- UITextElementProps
- UiAbstractContainer
- UiVisualSlotImpl
- WindowContent
- WindowEventListener
- WindowLocationDescription
Type Aliases
- BindingSet
- BindingsSet
- BitmapTypes
- DrawingElements
- DrawingSet
- Element
- Elements
- FontColor
- FontParams
- OnOpenCloseListenerJS
- TouchEventType
- UIButtonElement
- UICloseButtonElement
- UICustomElement
- UIFPSTextElement
- UIFrameElement
- UIImageElement
- UIInvSlotElement
- UIScaleElement
- UIScrollElement
- UISlotElement
- UISwitchElement
- UITabElement
- UITextElement
- WindowLocationParams
Functions
Type Aliases
BindingSet
Type declaration
[key string]: string
BindingsSet
Alias of BindingSet, please use it instead.
BitmapTypes
Types that can be used to create element texture. For static textures it can be string path to texture in assets directory, or android.graphics.Bitmap instance. For animated textures it can be array of string paths to texture in assets directory, or an array of android.graphics.Bitmap instances. Each element in the array represents one of animation frames.
DrawingElements
DrawingSet
Element
There are 12 types of UI elements given by Inner Core, and you can also create your custom ones. Each element type has it's own specific description object. These description objects are all inherited from this BasicElementDescription. It means that each element must have coords on the GUI by X, Y, and additionally Z axis, and also you can specify how the element will behave when touched, in clicker object (optional).
Elements
Object containing ui elements with key as the name and value as the UI.UIElement instance to be used.
FontColorsince: 3.1.0b126
Hex color like #ffffffor color names like a red, pink and another or [r, g, b, a?] array.
FontParams
Object containing font parameters. If no color, size and shadow are specified, default values are ignored and white font with text size 20, white color and 0.45 shadow is created.
OnOpenCloseListenerJS
TouchEventType
UIButtonElement
UICloseButtonElement
UICustomElement
UIFPSTextElement
UIFrameElement
UIImageElement
UIInvSlotElement
UIScaleElement
UIScrollElement
UISlotElement
UISwitchElement
UITabElement
UITextElement
WindowLocationParams
Object representing window location used in window content object and UI.WindowLocation constructor.
Functions
getContext
Returns the currently running Android Activity, which can be used for various actions: opening dialogs, instantiating widgets, and many other operations with android.content.Context.
More about capabilitiesIt is not recommended to use it if it is possible to find a replacement in the presented Inner Core API.
Returns android.app.Activity
getMinecraftUiScale
- since: 2.3.1b115
Determines the overall size of game interface, which can vary depending on specific settings that are in place.
Returns number
getRelMinecraftUiScale
- since: 2.3.1b115
Defines the size of interface relative to the UI.getMinecraftUiScale, with dimensions specified in units used within Inner Core interfaces.
Returns number
getScreenHeight
Returns number
Screen height in units.
getScreenRelativeHeight
Same as UI.getScreenHeight.
Returns number
parseColor
playSound
- since: 3.1.1b127
Plays client sound designed for interfaces, can be stopped as ordinal client sound, will be played even in menu.
Parameters
sound: string
resource pack sound name
optionalvolume: number
default
1.0optionalpitch: number
default
1.0
Returns void
Object containing binding names as keys and string values as gui textures names.