Namespace UI

Classes

Functions

Interfaces

Type Aliases

Functions

  • 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.

    Returns android.app.Activity

    It is not recommended to use it if it is possible to find a replacement in the presented Inner Core API.

  • Determines the overall size of game interface, which can vary depending on specific settings that are in place.

    Returns number

    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

    2.3.1b115

  • Returns number

    Screen height in units.

Type Aliases

BindingSet: {
    [key: string]: string;
}

Object containing binding names as keys and string values as gui textures names.

BitmapTypes:
    | string
    | string[]
    | android.graphics.Bitmap
    | android.graphics.Bitmap[]

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:
    | ColorDrawing
    | CustomDrawing
    | FrameDrawing
    | ImageDrawing
    | LineDrawing
    | TextDrawing
DrawingSet: DrawingElements[]
Element: UIElement

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:
    | UICustomElement
    | UIButtonElement
    | UICloseButtonElement
    | UIFrameElement
    | UIImageElement
    | UIScaleElement
    | UIScrollElement
    | UISlotElement
    | UISwitchElement
    | UITabElement
    | UITextElement
    | UIFPSTextElement
    | UIInvSlotElement

Object containing ui elements with key as the name and value as the UI.UIElement instance to be used.

FontParams: FontDescription

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: OnOpenCloseListener
TouchEventType:
    | "DOWN"
    | "UP"
    | "MOVE"
    | "CLICK"
    | "LONG_CLICK"
    | "CANCEL"
UICloseButtonElement: UIButtonElement
WindowLocationParams: WindowLocationDescription

Object representing window location used in window content object and UI.WindowLocation constructor.

Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.