Skip to content

cauahzz/mtasa-editbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

mtasa-editbox

Framework which allows you to create custom dx editbox.

Functions & Events

Functions

new

Create a new instance and a editbox.
dxEditBox.new(x, y, w, h, name, type, maxCharacters, mask, visible)

destroy

Destroy the instance.
dxEditBox:destroy()

destroyAll

This function destroy all instance.
dxEditBox:destroyAll()

setText

This function set new text in editbox.
dxEditBox:setText(text)

getText

This function get the text in editbox.
dxEditBox:getText()

setVisible

It makes the dxEditBox visible or not.
dxEditBox:setVisible(bool)

resetAllText

This function resets all dxEditBox text.
dxEditBox:resetAllText()

Usage

local editbox

local screenW, screenH = guiGetScreenSize()

local function togglePanel()
    if not editbox then 
        editbox = dxEditBox.new(0, 0, screenW / 2, screenH / 2, "teste", "text", 100, false, true) --// Create an instance
    else
        editbox:destroy() --// Destroy instance
    end
end

License

You can use this framework in all your projects. Feel free to edit aswell!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages