Many improvements.

This commit is contained in:
Vortrex
2020-12-04 02:48:16 -06:00
parent a7cc0bce7c
commit 33f8c4615a
110 changed files with 3680 additions and 923 deletions

View File

@@ -9,7 +9,7 @@ mexui.util.extend(mexui.Entity.Component, mexui.Entity.StyleableEntity);
// input
mexui.Entity.Component.prototype.onMouseDown = function(e)
{
if(this.moveable && this.isCursorOverComponent())
if(e.button == 0 && this.moveable && this.isCursorOverComponent())
{
this.moving = true;
e.used = true;
@@ -18,7 +18,7 @@ mexui.Entity.Component.prototype.onMouseDown = function(e)
mexui.Entity.Component.prototype.onMouseUp = function(e)
{
if(this.moving)
if(e.button == 0 && this.moving)
{
this.moving = false;
e.used = true;

View File

@@ -53,6 +53,14 @@ mexui.Entity.StyleableEntity.defaultStyles = mexui.util.linkGlobalStyles(mexui.E
textColour: toColour(0, 0, 0, 255)
}
*/
},
focused:
{
borderColour: toColour(28, 119, 198, 255)
},
invalidValue:
{
borderColour: toColour(250, 5, 5, 255)
}
});