Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Weapons Grade Garry's Mod development library, primarily for UI development

License

Notifications You must be signed in to change notification settings

melonstuff/melonlib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

305 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo

MelonLib is a multipurpose Garry's Mod development library that includes a plethora of different utilities.

Documentation can be found above the function declarations, formal documentation is coming soon:tm:

Includes

  • Tons of development utilities
    • Panel Debugger
    • Meta-File Interfacing
    • Function Attribute System
    • Message Logger
  • Advanced String Formatting with Filters
  • Font System
  • Color Manipulation Functions
  • Image/Material Caching and Downloading Handler
  • Complete Module Loading System
  • Many third-party libraries
  • And lots more little utilities!

Examples

String Formatting System:

melon.string.print("Did you know that {name | capitalize()} are {adjective}?", {
    name = "you",
    adjective = "bald"
})
-- Did you know that You are bald?

melon.string.print("you are {1}, {2} and {3.1}", 
"fat", 
"weird", 
{
    "smelly"
})
-- you are fat, weird and smelly

melon.string.print("Blah blah blah {1:Nick|call($1)}", LocalPlayer())
-- Blah blah blah Melon

Font System:

draw.Text({
    text = "Some Text",
    pos = {},

    -- Creates and returns a 25px font
    font = melon.Font(25)
})

Image/Material System:

surface.SetMaterial(
    -- Caches material automatically
    melon.Material("icon16/user.png", "smooth") 
)

surface.SetMaterial(
    -- Downloads and returns inline
    melon.Image("https://i.imgur.com/xYWFeyG.jpg")
)

About

Weapons Grade Garry's Mod development library, primarily for UI development

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages