Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
This repository was archived by the owner on May 15, 2023. It is now read-only.

Context Menu, based on meta-tables.

License

NotificationsYou must be signed in to change notification settings

smokingplaya/contitexmenu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Contitex Menu - is a new way to create your own Context Menu.We create buttons and other objects using meta-tables, which makes the code more beautiful and interesting, as well as clearer.

Also, you can edit colors, or fonts of Context Menu on 20-25 lines.

If you wanna create object, create it on 123 line.You also can delete already created objects.

How to create button?

ContitexMenu:New()  :SetButton(true)  :SetName("Write there text of button")  :SetIcon(Path to icon) -- Optional  :SetOnClick(function() print("Sure bro, that's work") end)  :SetVisible(function()    return LocalPlayer():isMayor()  end)

How to create spacer?

ContitexMenu:New()  :SetSpacer(true)  :SetVisible(function()    return LocalPlayer():isMayor()  end)

How to create SubMenu?

ContitexMenu:New()    :SetSubMenu(true)    :SetName("Write there text of group")    :SetIcon(Path to icon)    :SetSubMenuTable({        [(Key; may be int, or string, and if key is a string, key = icon] = "Write there text of button" -- Key = path to icon, value = text    })    :SetOnClick(function(text) print("Sure bro, that's work. Text: " .. text) end)    :SetVisible(function()        return LocalPlayer():isMayor()    end)

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp