A downloadable asset pack

Download NowName your own price

Greetings everyone!
Perhaps while working on your game or application, you’ve encountered a situation where the user needed to enter some data, but the implementation wasn’t ideal (no native text selection, no proper input area, and missing other features players are used to when entering text).

This extension allows you to create any native text input field — convenient and practical.

How does it work?

android_show_input(xPct, yPct, wPct, hPct, hint, multiline, maxLen, inputType)

Creates an input field on the screen where:

  • xPct (number, 0 to 1) — horizontal position of the field as a percentage of screen width.

  • yPct (number, 0 to 1) — vertical position of the field as a percentage of screen height.

  • wPct (number, 0 to 1) — width of the field as a percentage of screen width.

  • hPct (number, 0 to 1) — height of the field as a percentage of screen height.

  • hint (string) — placeholder text shown while the field is empty.

  • multiline (number, 0 or 1, no/yes) — allow multi-line input.

    • 0 = single-line field (Enter will close the input).

    • 1 = multi-line field (multiple lines allowed).

  • maxLen (number) — maximum text length.

    • If <= 0, no limit.

    • If > 0, for example, 64 = max 64 characters.

  • inputType (number) — input type:

    • 0 = plain text

    • 1 = number

    • 2 = email

    • 3 = password (characters replaced with asterisks)



    Getting the result
    Later, in the async → social event:

    var t = async_load[? "type"]; if (t == "GM_NATIVE_INPUT_DONE")
    {
    var txt = string(async_load[? "value"]);
    show_debug_message("Native input: " + txt);
    // use the text as needed
    }
Updated 16 days ago
StatusReleased
CategoryAssets
AuthorteamB

Download

Download NowName your own price

Click download now to get access to the following files:

NativeInput.yymps 4.4 kB

Comments

Log in with itch.io to leave a comment.

A video demo will be great!

Okay, I'll do it.