project_files/HedgewarsMobile/Classes/SquareButtonView.m
changeset 3917 4c243b1eac97
parent 3829 81db3c85784b
child 4976 088d40d8aba2
--- a/project_files/HedgewarsMobile/Classes/SquareButtonView.m	Wed Sep 29 23:50:46 2010 +0200
+++ b/project_files/HedgewarsMobile/Classes/SquareButtonView.m	Thu Sep 30 01:34:12 2010 +0200
@@ -32,16 +32,7 @@
         colorIndex = -1;
         selectedColor = 0;
 
-        // list of allowed colors
-        NSArray *colors = [[NSArray alloc] initWithObjects: [NSNumber numberWithUnsignedInt:4421353],    // bluette
-                                                            [NSNumber numberWithUnsignedInt:4100897],    // greeeen
-                                                            [NSNumber numberWithUnsignedInt:10632635],   // violett
-                                                            [NSNumber numberWithUnsignedInt:16749353],   // oranngy
-                                                            [NSNumber numberWithUnsignedInt:14483456],   // reddish
-                                                            [NSNumber numberWithUnsignedInt:7566195],    // graaaay
-                                                            nil];
-        self.colorArray = colors;
-        [colors release];
+        self.colorArray = getAvailableColors();
 
         // set the color to the first available one
         [self nextColor];