/mahlib

Primary LanguageLuaGNU General Public License v3.0GPL-3.0

MahLib

Usage

loadstring(exports["MahLib"]:getFunctions())()

There is a some optional arguments in getFunctions function

  "guiCreateWindow","guiCreateButton","guiCreateGridList","guiCreateEdit","guiCreateTabPanel","guilist"

You can use only "guiCreateWindow" like this:

loadstring(exports["MahLib"]:getFunctions("guiCreateWindow"))()

or you can use only "guiCreateWindow" and "guiCreateButton" like this:

loadstring(exports["MahLib"]:getFunctions("guiCreateWindow","guiCreateButton"))()

"guilist" only using with arguments. not loading without arguments

-- for using guilist
loadstring(exports["MahLib"]:getFunctions("guilist","guiCreateButton"))()

Extra Functions

-- if not hex then auto setting defaulthex.
guiWindowSetHeaderColor( window, hex)

-- set visible X button in window
guiWindowSetCloseVisible(window,bool)

-- you can change line colors with this function
guiSetLineColor(element,hex)

-- you can change the horizontal alignment of tabs
guiTabSetHorizontalAlign(tabpanel,align)

"gui move element

guiMoveTo(elm,200,100,true,"Linear",1500,500)
guiMoveTo(elm,x,y,relative,easing,duration,delay)

"gui size element

guiSizeTo(elm,200,100,true,"Linear",1500,500)
guiSizeTo(elm,w,h,relative,easing,duration,delay)

"gui set alpha element

guiAlphaTo(elm,200,100,true,"Linear",1500)
guiAlphaTo(elm,alpha,relative,easing,duration,delay)

"gui alert anim

guiAlertAnim(elm,false)
guiAlertAnim(elm,relative)

"gui stop anim

guiStopAnim(elm)
guiStopAnim(elm)

"gui add tooltip

guiAddTooltio(elm,"hi\nhello","#ff00ff")
guiAddTooltip(elm,text,hexcolor)

Extra Events

-- triggered when a window closed with X button. source is window
"MahLib:PencereKapatıldı" 

Preview

https://streamable.com/sfiear