Giter VIP home page Giter VIP logo

defaultuilibary's Introduction

DefaultDermaLibrary

Simplest UI with animations for Garry's Mod.

How i can use this?

You can create anything with my UI, from F4 to Admin System.

Example

CreateClientConVar("CheckBox", "false", true, true)
CreateClientConVar("Switch", "false", true, true)
CreateClientConVar("BinderKey", "NONE", true, true)
CreateClientConVar("SliderNum", 30, true, true)

concommand.Add("Test", function()
	local frame = DLib.Frame(-1, -1, 600, 400, "Default GUI")
	
	local button = DLib.Button(frame, 5, 15, 120, 22, DLib.RoundingPower, DLib.Color.Top, "Button")
	function button:DoClick()
		LocalPlayer():ChatPrint("Why do you click this?")
		DLib.Sound("buttons/button9.wav", 0.4)
	end

	DLib.CheckBox(frame, 15, 50, "CheckBox")
	DLib.Switch(frame, 15, 80, "Switch")
	DLib.Binder(frame, 15, 110, "BinderKey")
	DLib.Slider(frame, 15, 140, 250, 40, 1, 255, "SliderNum")
	DLib.ColorPicker(frame, 15, 260)
end)

Result

alt-text

Usage

Main Window

DLib.Frame(coordinate x, coordinate y, width, height, title) (Result)

Button

DLib.Button(mainframe, coordinate x, coordinate y, width, height, rounding, color, text) (Result)

Checkbox

DLib.CheckBox(mainframe, coordinate x, coordinate y, convar) (Result)

Switch (Checkbox with another style)

DLib.Switch(mainframe, coordinate x, coordinate y, convar) (Result)

Key Binder

DLib.Binder(mainframe, coordinate x, coordinate y, convar) (Result)

Slider

DLib.Slider(mainframe, coordinate x, coordinate y, width, height, minValue, maxValue, convar) (Result)

Color Picker

DLib.ColorPicker(mainframe, coordinate x, coordinate y) (Result)

Credits

Default#7736 - Main work

crester#2077 - Help with DColorMixer

Artemking4#5024 - Help with fix lua shit

defaultuilibary's People

Contributors

defaultik avatar rorkh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

dansingcombine

defaultuilibary's Issues

Styles system

Maybe, styles system must be implemented to change main colors, and, maybe, fonts?
Like

DLib.RegisterSkin("dark-one", {
   TitleText = Color(...),
   ...
}
DLib.ApplySkin("dark-one")

I can do this tomorrow.
P.S: Library, а не libary

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.