public static void OpenPopup(PWGUISettings guiSettings) { var popup = Popup.OpenPopup <BiomeMapSettingsPopup>(guiSettings.GetHashCode()); popup.name = "Biome map settings"; popup.debug = guiSettings.debug; }
public static void OpenPopup(Color color, PWGUISettings guiSettings) { var popup = Popup.OpenPopup <ColorPickerPopup>(guiSettings.GetHashCode(), new Vector2(windowSize.x, 340)); popup.currentColor = color; popup.name = "Cheap color picker"; popup.thumbPosition = guiSettings.thumbPosition; }
public static void OpenPopup(PWGUISettings guiSettings) { var popup = Popup.OpenPopup <SamplerSettingsPopup>(guiSettings.GetHashCode()); popup.name = "Sampler settings"; popup.gradient = guiSettings.gradient; popup.filterMode = guiSettings.filterMode; popup.texture = guiSettings.texture; popup.debug = guiSettings.debug; }
public static void OpenPopup(PWGUISettings guiSettings) { var popup = Popup.OpenPopup <TextureSettingsPopup>(guiSettings.GetHashCode()); popup.name = "Texture settings"; popup.filterMode = guiSettings.filterMode; popup.scaleMode = guiSettings.scaleMode; popup.material = guiSettings.material; popup.scaleAspect = guiSettings.scaleAspect; popup.debug = guiSettings.debug; }