minetest-flow/elements.md

7.2 KiB

Auto-generated elements list

This is probably broken.

gui.AnimatedImage

Equivalent to Minetest's animated_image[] element.

Example

gui.AnimatedImage {
    w = 1, -- Optional
    h = 2, -- Optional
    name = "my_animated_image", -- Optional
    texture_name = "Hello world!",
    frame_count = 3,
    frame_duration = 4,
    frame_start = 5, -- Optional
    middle_x = 6, -- Optional
    middle_y = 7, -- Optional
    middle_x2 = 8, -- Optional
    middle_y2 = 9, -- Optional
}

gui.Background

Equivalent to Minetest's background[] element.

Example

gui.Background {
    w = 1, -- Optional
    h = 2, -- Optional
    texture_name = "Hello world!",
    auto_clip = false, -- Optional
}

gui.Background9

Equivalent to Minetest's background9[] element.

Example

gui.Background9 {
    w = 1, -- Optional
    h = 2, -- Optional
    texture_name = "Hello world!",
    auto_clip = false,
    middle_x = 3,
    middle_y = 4, -- Optional
    middle_x2 = 5, -- Optional
    middle_y2 = 6, -- Optional
}

gui.Box

Equivalent to Minetest's box[] element.

Example

gui.Box {
    w = 1, -- Optional
    h = 2, -- Optional
    color = "#FF0000",
}

gui.Button

Equivalent to Minetest's button[] element.

Example

gui.Button {
    w = 1, -- Optional
    h = 2, -- Optional
    name = "my_button", -- Optional
    label = "Hello world!",
}

gui.ButtonExit

Equivalent to Minetest's button_exit[] element.

Example

gui.ButtonExit {
    w = 1, -- Optional
    h = 2, -- Optional
    name = "my_button_exit", -- Optional
    label = "Hello world!",
}

gui.Checkbox

Equivalent to Minetest's checkbox[] element.

Example

gui.Checkbox {
    name = "my_checkbox", -- Optional
    label = "Hello world!",
    selected = false, -- Optional
}

gui.Dropdown

Equivalent to Minetest's dropdown[] element.

Example

gui.Dropdown {
    w = 1, -- Optional
    h = 2, -- Optional
    name = "my_dropdown", -- Optional
    items = "Hello world!",
    selected_idx = 3,
    index_event = false, -- Optional
}

gui.Field

Equivalent to Minetest's field[] element.

Example

gui.Field {
    w = 1, -- Optional
    h = 2, -- Optional
    name = "my_field", -- Optional
    label = "Hello world!",
    default = "Hello world!",
}

gui.Hypertext

Equivalent to Minetest's hypertext[] element.

Example

gui.Hypertext {
    w = 1, -- Optional
    h = 2, -- Optional
    name = "my_hypertext", -- Optional
    text = "Hello world!",
}

gui.Image

Equivalent to Minetest's image[] element.

Example

gui.Image {
    w = 1, -- Optional
    h = 2, -- Optional
    texture_name = "Hello world!",
    middle_x = 3, -- Optional
    middle_y = 4, -- Optional
    middle_x2 = 5, -- Optional
    middle_y2 = 6, -- Optional
}

gui.ImageButton

Equivalent to Minetest's image_button[] element.

Example

gui.ImageButton {
    w = 1, -- Optional
    h = 2, -- Optional
    texture_name = "Hello world!",
    name = "my_image_button", -- Optional
    label = "Hello world!",
    noclip = false, -- Optional
    drawborder = false, -- Optional
    pressed_texture_name = "Hello world!", -- Optional
}

gui.ImageButtonExit

Equivalent to Minetest's image_button_exit[] element.

Example

gui.ImageButtonExit {
    w = 1, -- Optional
    h = 2, -- Optional
    texture_name = "Hello world!",
    name = "my_image_button_exit", -- Optional
    label = "Hello world!",
    noclip = false, -- Optional
    drawborder = false, -- Optional
    pressed_texture_name = "Hello world!", -- Optional
}

gui.ItemImage

Equivalent to Minetest's item_image[] element.

Example

gui.ItemImage {
    w = 1, -- Optional
    h = 2, -- Optional
    item_name = "Hello world!",
}

gui.ItemImageButton

Equivalent to Minetest's item_image_button[] element.

Example

gui.ItemImageButton {
    w = 1, -- Optional
    h = 2, -- Optional
    item_name = "Hello world!",
    name = "my_item_image_button", -- Optional
    label = "Hello world!",
}

gui.Label

Equivalent to Minetest's label[] element.

Example

gui.Label {
    label = "Hello world!",
}

gui.List

Equivalent to Minetest's list[] element.

Example

gui.List {
    inventory_location = "Hello world!",
    list_name = "Hello world!",
    w = 1,
    h = 2,
    starting_item_index = 3, -- Optional
}

gui.Model

Equivalent to Minetest's model[] element.

Example

gui.Model {
    w = 1, -- Optional
    h = 2, -- Optional
    name = "my_model", -- Optional
    mesh = "Hello world!",
    textures = "Hello world!",
    rotation_x = 3, -- Optional
    rotation_y = 4, -- Optional
    continuous = false, -- Optional
    mouse_control = false, -- Optional
    frame_loop_begin = 5, -- Optional
    frame_loop_end = 6, -- Optional
    animation_speed = 7, -- Optional
}

gui.Pwdfield

Equivalent to Minetest's pwdfield[] element.

Example

gui.Pwdfield {
    w = 1, -- Optional
    h = 2, -- Optional
    name = "my_pwdfield", -- Optional
    label = "Hello world!",
}

gui.ScrollContainer

Equivalent to Minetest's scroll_container[] element.

Example

gui.ScrollContainer {
    w = 1, -- Optional
    h = 2, -- Optional
    scrollbar_name = "Hello world!",
    orientation = "vertical",
    scroll_factor = 3, -- Optional
}

gui.Scrollbar

Equivalent to Minetest's scrollbar[] element.

Example

gui.Scrollbar {
    w = 1, -- Optional
    h = 2, -- Optional
    orientation = "vertical",
    name = "my_scrollbar", -- Optional
    value = 3,
}

gui.Tabheader

Equivalent to Minetest's tabheader[] element.

Example

gui.Tabheader {
    h = 1, -- Optional
    name = "my_tabheader", -- Optional
    captions = "Hello world!",
    current_tab = "Hello world!",
    transparent = false, -- Optional
    draw_border = false, -- Optional
    w = 2, -- Optional
}

gui.Table

Equivalent to Minetest's table[] element.

Example

gui.Table {
    w = 1, -- Optional
    h = 2, -- Optional
    name = "my_table", -- Optional
    cells = "Hello world!",
    selected_idx = 3,
}

gui.Textarea

Equivalent to Minetest's textarea[] element.

Example

gui.Textarea {
    w = 1, -- Optional
    h = 2, -- Optional
    name = "my_textarea", -- Optional
    label = "Hello world!",
    default = "Hello world!",
}

gui.Textlist

Equivalent to Minetest's textlist[] element.

Example

gui.Textlist {
    w = 1, -- Optional
    h = 2, -- Optional
    name = "my_textlist", -- Optional
    listelems = "Hello world!",
    selected_idx = 3, -- Optional
    transparent = false, -- Optional
}

gui.Tooltip

Equivalent to Minetest's tooltip[] element.

Example

gui.Tooltip {
    w = 1, -- Optional
    h = 2, -- Optional
    tooltip_text = "Hello world!",
    bgcolor = "#FF0000", -- Optional
    fontcolor = "#FF0000", -- Optional
    gui_element_name = "Hello world!", -- Optional
}

gui.Vertlabel

Equivalent to Minetest's vertlabel[] element.

Example

gui.Vertlabel {
    label = "Hello world!",
}