public void initialise(ASPTextureEdit textureEdit, int count) { _windowID = _nextID; ++_nextID; _textureEdit = textureEdit; _windowPosition = new Rect(700, 200 -((count) * 100), 400, 400); _locked = false; _remakePreview = true; _imageModifiers = _textureEdit.cloneImageModifiers(); _baseTexture = _textureEdit.cloneBaseTexture(); _baseTexture.gui().initialise(this); _imageModifiers.guiInit(this); _boundingBox = _textureEdit.cloneBoundingBox(); _bbXselector = new ValueSelector<int, IntField>(_boundingBox.x, 0, 999999, 1, "Bottom Left X", Color.white); _bbYselector = new ValueSelector<int, IntField>(_boundingBox.y, 0, 999999, 1, "Bottom Left Y", Color.white); _bbWselector = new ValueSelector<int, IntField>(_boundingBox.w, 0, 999999, 1, "Width", Color.white); _bbHselector = new ValueSelector<int, IntField>(_boundingBox.h, 0, 999999, 1, "Height", Color.white); _selectedModifier = -2; Global.LastButtonPress = 0f; Global.AutoRepeatGap = 0.4f; }