-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New Grid and Notification component and several styling and alignment…
… bugfixes
- Loading branch information
Showing
19 changed files
with
1,484 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
local grid = UI.Grid({ | ||
id = "grid" | ||
align = "top_center" | ||
move = { down = "15%"} | ||
rows =2 | ||
columns =4 | ||
margin = 5 | ||
cellWidth = 80 | ||
cellHeight = 80 | ||
borderStyle = { | ||
color =::Colour(255,0,0) | ||
size = 2 | ||
} | ||
onHoverOverCell = function(cell){ | ||
cell.Colour = ::Colour(150,200,150); | ||
} | ||
onHoverOutCell = function(cell){ | ||
cell.Colour = ::Colour(0,0,0,0); | ||
} | ||
onCellClick = function(cell){ | ||
cell.Colour = ::Colour(150,150,200); | ||
} | ||
|
||
}); | ||
|
||
//adds components to the grid row by row | ||
grid.add( | ||
UI.Canvas({ | ||
id = "c" | ||
Color = ::Colour(230,231,92,100) | ||
}) | ||
) | ||
grid.add( | ||
UI.Canvas({ | ||
id = "c2" | ||
Color = ::Colour(230,231,92,100) | ||
}) | ||
) | ||
|
||
//adds components to the grid in a specific cell | ||
grid.put( | ||
UI.Canvas({ | ||
id = "c3" | ||
Color = ::Colour(10,231,92,100) | ||
}), | ||
1, //row | ||
3 //column | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
UI.Notification({ | ||
id="not" | ||
type = "info" | ||
title = "INFORMATION" | ||
time = 10 //seconds before it disappears | ||
Size = VectorScreen(200, 90) | ||
text = "HELLO" | ||
autoSize = true | ||
}) | ||
UI.Notification({ | ||
id="not2" | ||
type = "success" | ||
title = "SUCCESS" | ||
time = 5 | ||
text = "HELLO" | ||
}) | ||
UI.Notification({ | ||
id="not3" | ||
type = "warning" | ||
title = "WARNING" | ||
time = 10 | ||
Size = VectorScreen(200, 90) | ||
text = "HELLO" | ||
}) | ||
UI.Notification({ | ||
id="not4" | ||
type = "error" | ||
title = "ERROR" | ||
time = 10 | ||
Size = VectorScreen(200, 90) | ||
text = "HELLO" | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.