Jump to content

[REL] Interfaz de confirmación simple (dx)


Recommended Posts

INTERFAZ DE CONFIRMACION SIMPLE

Tal y como lo explica su título, este sistema muestra una interfaz simple para confirmar cualquier acción que se requiera. Utilizando funciones dxDraw para ello, con una animación de entrada y salida simple.

SYNTAX

dxConfirm(string title, string description, function funcYes, ...)

-- title string - El titulo que tendrá la interfaz de confirmacion (default: Confirmación)
-- description string - El mensaje de confirmacion que desee mostrar (default: ¿Estás seguro de que quieres hacer esto?)
-- funcYes function - La funcion que se ejecutará una vez se presione el boton 'Si'.
-- (...) vars - Las variables que contiene la funcion que se ejecutará al presionar el botón 'Si'.

EJEMPLO PRACTICO

function myFunction(var1, var2)
    outputChatBox("¡Haz presionado que si!")
    outputChatBox("var1: "..var1)
    outputChatBox("var2: "..var2)
end
dxConfirm("Confirmacion", "¿Estas seguro?", myFunction, "hola mundo!", 15);

IMAGEN DE LA INTERFAZ

Spoiler

ERHthpa.png

 

ENLACE DE DESCARGA: CLICK AQUÍ

¡No olvides dejar tu estrellita!

  • Thanks 1
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...