public void setCenterPosition(int x, int y, GUISkin skin) { currentSkin = skin; config.centerX = x; config.centerY = y; setStyle(skin,config.picButtonStyleName,out config.picButtonStyle); setStyle(skin,config.iconButtonStyleName,out config.iconButtonStyle); if (PropertiesSingleton.instance.guiStampList == null) Debug.LogError("guiStampList in prop singleton is empty please fix it"); config.albums = PropertiesSingleton.instance.albums; recalculatePositions(); window.setProperties( windowRect, new GUIContent(config.windowCaption.Localized()), skin, doMyWindow, WorkspaceEventManager.instance.onExitFromPicChooserWindow, WorkspaceEventManager.instance.onExitFromPicChooserWindow); autocloser = new ScrollviewAutocloser(config.scrollAreaPadding, config.picButtonHeight + config.picButtonMargin); }
public void setCenterPosition(int x, int y, GUISkin skin) { currentSkin = skin; config.centerX = x; config.centerY = y; setStyle(skin, config.picButtonStyleName, out config.picButtonStyle); setStyle(skin, config.iconButtonStyleName, out config.iconButtonStyle); if (PropertiesSingleton.instance.guiStampList == null) { Debug.LogError("guiStampList in prop singleton is empty please fix it"); } config.albums = PropertiesSingleton.instance.albums; recalculatePositions(); window.setProperties(windowRect, new GUIContent(config.windowCaption.Localized()), skin, doMyWindow, WorkspaceEventManager.instance.onExitFromPicChooserWindow, WorkspaceEventManager.instance.onExitFromPicChooserWindow); autocloser = new ScrollviewAutocloser(config.scrollAreaPadding, config.picButtonHeight + config.picButtonMargin); }