Raygui wrapper library is now object based.
This commit is contained in:
@@ -5,7 +5,7 @@ end
|
||||
|
||||
local Vector3 = require( "vector3" )
|
||||
|
||||
Color = {}
|
||||
local Color = {}
|
||||
Color.meta = {
|
||||
__index = Color,
|
||||
__tostring = function( c )
|
||||
|
||||
@@ -1,19 +1,9 @@
|
||||
Util = require( "utillib" )
|
||||
Rect = require( "rectangle" )
|
||||
Vec2 = require( "vector2" )
|
||||
Color = require( "color" )
|
||||
local Util = require( "utillib" )
|
||||
local Rect = require( "rectangle" )
|
||||
local Vec2 = require( "vector2" )
|
||||
local Color = require( "color" )
|
||||
|
||||
--[[
|
||||
To add repeat inputs to the keys pressed buffer, you could add GLFW_REPEAT in railib rcore.c in function "KeyCallback" by changing:
|
||||
|
||||
if ((CORE.Input.Keyboard.keyPressedQueueCount < MAX_KEY_PRESSED_QUEUE) && (action == GLFW_PRESS))
|
||||
To
|
||||
if ((CORE.Input.Keyboard.keyPressedQueueCount < MAX_KEY_PRESSED_QUEUE) && (action == GLFW_PRESS || action == GLFW_REPEAT))
|
||||
|
||||
Now GLFW_REPEAT can be read by "RL.GetKeyPressed".
|
||||
]]
|
||||
|
||||
Gui = {
|
||||
local Gui = {
|
||||
ALING = {
|
||||
NONE = 0,
|
||||
LEFT = 1,
|
||||
|
||||
@@ -22,7 +22,7 @@ local function deepCopy( orig )
|
||||
return copy
|
||||
end
|
||||
|
||||
Matrix = {}
|
||||
local Matrix = {}
|
||||
Matrix.meta = {
|
||||
__index = Matrix,
|
||||
__tostring = function( m )
|
||||
|
||||
@@ -6,7 +6,7 @@ end
|
||||
local Vector3 = require( "vector3" )
|
||||
local Matrix = require( "matrix" )
|
||||
|
||||
Quaternion = {}
|
||||
local Quaternion = {}
|
||||
Quaternion.meta = {
|
||||
__index = Quaternion,
|
||||
__tostring = function( q )
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -5,8 +5,7 @@ end
|
||||
|
||||
local Vector2 = require( "vector2" )
|
||||
|
||||
Rectangle = {}
|
||||
|
||||
local Rectangle = {}
|
||||
Rectangle.meta = {
|
||||
__index = Rectangle,
|
||||
__tostring = function( r )
|
||||
|
||||
@@ -3,7 +3,7 @@ if table.unpack == nil then
|
||||
table.unpack = unpack
|
||||
end
|
||||
|
||||
Vector2 = {}
|
||||
local Vector2 = {}
|
||||
Vector2.meta = {
|
||||
__index = Vector2,
|
||||
__tostring = function( v )
|
||||
|
||||
@@ -5,7 +5,7 @@ end
|
||||
|
||||
local Vector2 = require( "vector2" )
|
||||
|
||||
Vector3 = {}
|
||||
local Vector3 = {}
|
||||
Vector3.meta = {
|
||||
__index = Vector3,
|
||||
__tostring = function( v )
|
||||
|
||||
Reference in New Issue
Block a user