@@ -135,37 +135,6 @@ on updateSettings
135135 storeSetting "icon" , empty
136136 end if
137137
138- if tSettings ["ios,splash" ] is not empty then
139- local tSplash
140- put stripSuffix(tSettings ["ios,splash" ], ".png,-@2x.png,-Landscape.png,-Portrait" ) into tSplash
141- if not (tSplash begins with slash) then
142- put utilityTargetStackPath() & slash before tSplash
143- end if
144-
145- get tSplash & ".png"
146- if there is a file it and getImageDimensions(it ) is "320,480" then
147- put it into tSettings ["ios,iphone splash" ]
148- storeSetting("iphone splash" , utilityMakePathRelative(it , utilityTargetStackPath()))
149- end if
150- get tSplash & "@2x.png"
151- if there is a file it and getImageDimensions(it ) is "640,960" then
152- put it into tSettings ["ios,retina splash" ]
153- storeSetting("retina splash" , utilityMakePathRelative(it , utilityTargetStackPath()))
154- end if
155- get tSplash & "-Portrait.png"
156- if there is a file it and getImageDimensions(it ) is "768,1024" then
157- put it into tSettings ["ios,ipad landscape splash" ]
158- storeSetting("ipad landscape splash" , utilityMakePathRelative(it , utilityTargetStackPath()))
159- end if
160- get tSplash & "-Landscape.png"
161- if there is a file it and getImageDimensions(it ) is "1024,768" then
162- put it into tSettings ["ios,ipad portrait splash" ]
163- storeSetting("ipad portrait splash" , utilityMakePathRelative(it , utilityTargetStackPath()))
164- end if
165-
166- storeSetting "splash" , empty
167- end if
168-
169138 -- MM-2011-09-28: Sepearate out the icons and splash screens so the user can specify the values per device.
170139 --
171140 put computeDefault(tSettings ["ios,AppStore icon" ], empty ) into field "AppStore Icon"
@@ -180,26 +149,11 @@ on updateSettings
180149 put computeDefault(tSettings ["ios,iOS 7 ipad retina icon" ], empty ) into field "iOS 7 iPad Retina Icon"
181150 put computeDefault(tSettings ["ios,iPad Pro 12.9 icon" ], empty ) into field "iPad Pro 12.9 Icon"
182151 put computeDefault(tSettings ["ios,iPad Pro 11 icon" ], empty ) into field "iPad Pro 11 Icon"
183- put computeDefault(tSettings ["ios,iphone splash" ], empty ) into field "iPhone Splash"
184- put computeDefault(tSettings ["ios,retina splash" ], empty ) into field "Retina Splash"
185- put computeDefault(tSettings ["ios,iphone 4inch splash" ], empty ) into field "iPhone 4Inch Splash"
186- put computeDefault(tSettings ["ios,iPhone 6 splash" ], empty ) into field "iPhone 6 Splash"
187- put computeDefault(tSettings ["ios,iPhone 6 Plus Portrait splash" ], empty ) into field "iPhone 6 Plus Portrait Splash"
188- put computeDefault(tSettings ["ios,iPhone 6 Plus Landscape splash" ], empty ) into field "iPhone 6 Plus Landscape Splash"
189- put computeDefault(tSettings ["ios,iPhone X Portrait splash" ], empty ) into field "iPhone X Portrait Splash"
190- put computeDefault(tSettings ["ios,iPhone X Landscape splash" ], empty ) into field "iPhone X Landscape Splash"
191- put computeDefault(tSettings ["ios,iPhone XR Portrait splash" ], empty ) into field "iPhone XR Portrait Splash"
192- put computeDefault(tSettings ["ios,iPhone XR Landscape splash" ], empty ) into field "iPhone XR Landscape Splash"
193- put computeDefault(tSettings ["ios,iPhone XSMAX Portrait splash" ], empty ) into field "iPhone XSMAX Portrait Splash"
194- put computeDefault(tSettings ["ios,iPhone XSMAX Landscape splash" ], empty ) into field "iPhone XSMAX Landscape Splash"
195- put computeDefault(tSettings ["ios,ipad portrait splash" ], empty ) into field "iPad Portrait Splash"
196- put computeDefault(tSettings ["ios,ipad landscape splash" ], empty ) into field "iPad Landscape Splash"
197- put computeDefault(tSettings ["ios,ipad retina portrait splash" ], empty ) into field "iPad Retina Portrait Splash"
198- put computeDefault(tSettings ["ios,ipad retina landscape splash" ], empty ) into field "iPad Retina Landscape Splash"
199- put computeDefault(tSettings ["ios,ipad pro 12.9 portrait splash" ], empty ) into field "iPad Pro 12.9 Portrait Splash"
200- put computeDefault(tSettings ["ios,ipad pro 12.9 landscape splash" ], empty ) into field "iPad Pro 12.9 Landscape Splash"
201- put computeDefault(tSettings ["ios,ipad pro 11 portrait splash" ], empty ) into field "iPad Pro 11 Portrait Splash"
202- put computeDefault(tSettings ["ios,ipad pro 11 landscape splash" ], empty ) into field "iPad Pro 11 Landscape Splash"
152+
153+ put computeDefault(tSettings ["ios,launch-image-1x" ], empty ) into field "launch-image-1x"
154+ put computeDefault(tSettings ["ios,launch-image-2x" ], empty ) into field "launch-image-2x"
155+ put computeDefault(tSettings ["ios,launch-image-3x" ], empty ) into field "launch-image-3x"
156+ set the backColor of graphic "launch-backcolor" to computeDefault(tSettings ["ios,launch-backcolor" ], "0,0,0" )
203157
204158 local tProfiles , tProfileIndex
205159 put empty into tProfileIndex
@@ -353,31 +307,6 @@ command updateOrientationSettings
353307 set the hilite of button i of group "iPad Initial Orientations" to \
354308 it is among the items of tSupportedOrientations
355309 end repeat
356-
357- -- Set the enabled of the iPad splash screens selectors based on the orientations set.
358- -- Possibly turn this off, might be quite annoying.
359- --
360- if the enabled of group "iPad Initial Orientations" then
361- set the enabled of group "iPad Portrait Splash" to (tSupportedOrientations contains "portrait" )
362- set the enabled of group "iPad Landscape Splash" to (tSupportedOrientations contains "landscape" )
363- set the enabled of group "iPad Retina Portrait Splash" to (tSupportedOrientations contains "portrait" )
364- set the enabled of group "iPad Retina Landscape Splash" to (tSupportedOrientations contains "landscape" )
365- set the enabled of group "iPad Pro 12.9 Portrait Splash" to (tSupportedOrientations contains "portrait" )
366- set the enabled of group "iPad Pro 12.9 Landscape Splash" to (tSupportedOrientations contains "landscape" )
367- set the enabled of group "iPad Pro 11 Portrait Splash" to (tSupportedOrientations contains "portrait" )
368- set the enabled of group "iPad Pro 11 Landscape Splash" to (tSupportedOrientations contains "landscape" )
369- end if
370-
371- if the enabled of button "iPhone Intial Orientation" then
372- set the enabled of group "iPhone 6 Plus Portrait Splash" to tInitialOrientation contains "portrait"
373- set the enabled of group "iPhone 6 Plus Landscape Splash" to tInitialOrientation contains "landscape"
374- set the enabled of group "iPhone X Portrait Splash" to tInitialOrientation contains "portrait"
375- set the enabled of group "iPhone X Landscape Splash" to tInitialOrientation contains "landscape"
376- set the enabled of group "iPhone XR Portrait Splash" to tInitialOrientation contains "portrait"
377- set the enabled of group "iPhone XR Landscape Splash" to tInitialOrientation contains "landscape"
378- set the enabled of group "iPhone XSMAX Portrait Splash" to tInitialOrientation contains "portrait"
379- set the enabled of group "iPhone XSMAX Landscape Splash" to tInitialOrientation contains "landscape"
380- end if
381310end updateOrientationSettings
382311
383312-- MM-2011-09-28: Enable/disable setting device specif settings based on the currently selected device list.
@@ -397,26 +326,6 @@ command enableDeviceSpecificSettings pDevices
397326 set the enabled of group "iOS 7 iPad Retina Icon" to (2 is among the items of pDevices )
398327 set the enabled of group "iPad Pro 12.9 Icon" to (2 is among the items of pDevices )
399328 set the enabled of group "iPad Pro 11 Icon" to (2 is among the items of pDevices )
400- set the enabled of group "iPhone Splash" to (1 is among the items of pDevices )
401- set the enabled of group "Retina Splash" to (1 is among the items of pDevices )
402- set the enabled of group "iPhone 4Inch Splash" to (1 is among the items of pDevices )
403- set the enabled of group "iPhone 6 Splash" to (1 is among the items of pDevices )
404- set the enabled of group "iPhone 6 Plus Portrait Splash" to (1 is among the items of pDevices )
405- set the enabled of group "iPhone 6 Plus Landscape Splash" to (1 is among the items of pDevices )
406- set the enabled of group "iPhone X Portrait Splash" to (1 is among the items of pDevices )
407- set the enabled of group "iPhone X Landscape Splash" to (1 is among the items of pDevices )
408- set the enabled of group "iPhone XR Portrait Splash" to (1 is among the items of pDevices )
409- set the enabled of group "iPhone XR Landscape Splash" to (1 is among the items of pDevices )
410- set the enabled of group "iPhone XSMAX Portrait Splash" to (1 is among the items of pDevices )
411- set the enabled of group "iPhone XSMAX Landscape Splash" to (1 is among the items of pDevices )
412- set the enabled of group "iPad Portrait Splash" to (2 is among the items of pDevices )
413- set the enabled of group "iPad Landscape Splash" to (2 is among the items of pDevices )
414- set the enabled of group "iPad Retina Portrait Splash" to (2 is among the items of pDevices )
415- set the enabled of group "iPad Retina Landscape Splash" to (2 is among the items of pDevices )
416- set the enabled of group "iPad Pro 12.9 Portrait Splash" to (2 is among the items of pDevices )
417- set the enabled of group "iPad Pro 12.9 Landscape Splash" to (2 is among the items of pDevices )
418- set the enabled of group "iPad Pro 11 Portrait Splash" to (2 is among the items of pDevices )
419- set the enabled of group "iPad Pro 11 Landscape Splash" to (2 is among the items of pDevices )
420329 set the enabled of button "iPhone Intial Orientation" to (1 is among the items of pDevices )
421330 set the enabled of group "iPad Initial Orientations" to (2 is among the items of pDevices )
422331
0 commit comments