Update xml

This commit is contained in:
Vortrex
2021-01-25 22:44:17 -06:00
parent 724ea9a774
commit 9b8d1f2257
190 changed files with 83 additions and 5046 deletions

View File

@@ -1,32 +0,0 @@
mexui.Component.Entry = function(control, axisIndex, text, styles)
{
mexui.Entity.Component.call(this, false);
mexui.Entity.StyleableEntity.call(this, this.linkComponentStyles('Entry', styles));
this.control = control;
this.axisIndex = axisIndex;
this.text = text;
};
mexui.util.extend(mexui.Component.Entry, mexui.Entity.Component);
// default styles
mexui.Component.Entry.defaultStyles = mexui.util.linkStyles(mexui.Entity.StyleableEntity.defaultStyles, {});
// model
mexui.Component.Entry.prototype.getEntryIndex = function()
{
return this.control.axis[this.getAxisKey()].entries.indexOf(this);
};
mexui.Component.Entry.prototype.getAxisKey = function()
{
return this.axisIndex == 0 ? 'x' : 'y';
};
// api
mexui.Component.Entry.prototype.remove = function()
{
this.control.axis[this.getAxisKey()].entries.splice(this.getEntryIndex(), 1);
this.control.checkToShowScrollBars();
};