- Added 'World Edge' flag for Scheme Settings ios-revival
authorantonc27 <antonc27@mail.ru>
Wed, 04 Nov 2015 06:39:04 +0100
branchios-revival
changeset 11296 83738cdd750d
parent 11295 6b6d96077395
child 11297 d1d66d1f6c8a
- Added 'World Edge' flag for Scheme Settings
project_files/HedgewarsMobile/Classes/SingleSchemeViewController.m
project_files/HedgewarsMobile/Locale/English.lproj/Localizable.strings
project_files/HedgewarsMobile/Locale/English.lproj/Scheme.strings
project_files/HedgewarsMobile/Locale/ru.lproj/Localizable.strings
project_files/HedgewarsMobile/Locale/ru.lproj/Scheme.strings
project_files/HedgewarsMobile/Resources/basicFlags.plist
--- a/project_files/HedgewarsMobile/Classes/SingleSchemeViewController.m	Wed Nov 04 06:17:31 2015 +0100
+++ b/project_files/HedgewarsMobile/Classes/SingleSchemeViewController.m	Wed Nov 04 06:39:04 2015 +0100
@@ -349,6 +349,24 @@
         return NSLocalizedString(@"Nvr", @"Short for 'Never'");
     else if ([keyString isEqualToString:@"Mines Time"] && sliderValue == -1)
         return NSLocalizedString(@"Rnd", @"Short for 'Random'");
+    else if ([keyString isEqualToString:@"World Edge"])
+        switch (sliderValue)
+        {
+            case 0:
+                return NSLocalizedString(@"None", nil);
+            
+            case 1:
+                return NSLocalizedString(@"Wrap", nil);
+                
+            case 2:
+                return NSLocalizedString(@"Bounce", nil);
+                
+            case 3:
+                return NSLocalizedString(@"Sea", nil);
+                
+            default:
+                return @"";
+        }
     else
         return [NSString stringWithFormat:@"%ld", (long)sliderValue];
 }
Binary file project_files/HedgewarsMobile/Locale/English.lproj/Localizable.strings has changed
Binary file project_files/HedgewarsMobile/Locale/English.lproj/Scheme.strings has changed
Binary file project_files/HedgewarsMobile/Locale/ru.lproj/Localizable.strings has changed
Binary file project_files/HedgewarsMobile/Locale/ru.lproj/Scheme.strings has changed
--- a/project_files/HedgewarsMobile/Resources/basicFlags.plist	Wed Nov 04 06:17:31 2015 +0100
+++ b/project_files/HedgewarsMobile/Resources/basicFlags.plist	Wed Nov 04 06:39:04 2015 +0100
@@ -284,5 +284,23 @@
 		<key>title</key>
 		<string>Air Mines</string>
 	</dict>
+	<dict>
+		<key>checkOverMax</key>
+		<false/>
+		<key>times1000</key>
+		<false/>
+		<key>command</key>
+		<string>e$worldedge</string>
+		<key>default</key>
+		<integer>0</integer>
+		<key>image</key>
+		<string>Earth</string>
+		<key>max</key>
+		<integer>3</integer>
+		<key>min</key>
+		<integer>0</integer>
+		<key>title</key>
+		<string>World Edge</string>
+	</dict>
 </array>
 </plist>