|
|
@@ -90,10 +90,12 @@ CGRect originalBattery; |
|
|
|
setFrame = YES; |
|
|
|
batteryWidget = self; |
|
|
|
} |
|
|
|
[self KaiUpdate]; |
|
|
|
} |
|
|
|
|
|
|
|
%new |
|
|
|
-(void)KaiUpdate { |
|
|
|
[UIView animateWithDuration:0.3 animations:^{ |
|
|
|
self.frame = CGRectMake( |
|
|
|
original.origin.x, |
|
|
|
original.origin.y + (self.battery.number * 85), |
|
|
@@ -101,12 +103,14 @@ CGRect originalBattery; |
|
|
|
original.size.height |
|
|
|
); |
|
|
|
|
|
|
|
/*self.battery.frame = CGRectMake( |
|
|
|
self.battery.frame = CGRectMake( |
|
|
|
originalBattery.origin.x, |
|
|
|
originalBattery.origin.y - (self.battery.number * 85) + 85, |
|
|
|
originalBattery.size.width, |
|
|
|
originalBattery.size.height |
|
|
|
);*/ |
|
|
|
); |
|
|
|
|
|
|
|
}]; |
|
|
|
} |
|
|
|
%end |
|
|
|
|
|
|
@@ -128,4 +132,9 @@ CGRect originalBattery; |
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
%end |
|
|
|
|
|
|
|
%hook CSScrollView |
|
|
|
|
|
|
|
|
|
|
|
%end |