mirror of
https://github.com/DKJone/DKWechatHelper.git
synced 2026-07-29 06:12:07 +08:00
[v1.0.7](https://github.com/DKWechatHelper/DKWechatHelper/releases/tag/1.0.7) / 2021-01-29
what's new * 动态启动图 * 动态聊天背景 * 支持8.0.1 * 更新越狱包8.0.1 * 更新已注入助手的8.0.1未签名包 * 更新越狱源安装包
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -479,8 +479,60 @@
|
||||
|
||||
%end
|
||||
|
||||
//%hook ScanQRCodeResultsMgr
|
||||
//- (void)retryRequetScanResult:(id)arg1 viewController:(id)arg2{
|
||||
// %orig;
|
||||
//}
|
||||
//%end
|
||||
|
||||
@interface BaseMsgContentViewController:UIViewController
|
||||
- (id)getMsgTableView;
|
||||
- (id)getParentTableView;
|
||||
@end
|
||||
|
||||
%hook BaseMsgContentViewController
|
||||
- (void)viewDidLoad{
|
||||
%orig;
|
||||
}
|
||||
|
||||
- (void)viewWillAppear:(BOOL)animated{
|
||||
%orig;
|
||||
UIView * annimView = [self.view viewWithTag:66666];
|
||||
if (!DKHelperConfig.dkChatBgEnable){
|
||||
[annimView removeFromSuperview];
|
||||
[annimView stopHWDMP4];
|
||||
return;
|
||||
}
|
||||
if (annimView == nil){
|
||||
annimView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, UIScreen.mainScreen.bounds.size.width, UIScreen.mainScreen.bounds.size.width *16/9)];
|
||||
annimView.tag = 66666;
|
||||
annimView.backgroundColor = UIColor.clearColor;
|
||||
[self.view insertSubview:annimView belowSubview:[self getMsgTableView]];
|
||||
}
|
||||
|
||||
annimView.center = self.view.center;
|
||||
NSString *animaName = DKLaunchHelper.animaNames[DKHelperConfig.dkChatBGIndex.intValue][@"name"];
|
||||
NSString* path = [NSBundle.mainBundle pathForResource:[NSString stringWithFormat:@"%@Vap", animaName] ofType:@"mp4"];
|
||||
[annimView playHWDMP4:path repeatCount:-1 delegate:nil];
|
||||
|
||||
}
|
||||
|
||||
%end
|
||||
|
||||
@interface MicroMessengerAppDelegate
|
||||
+ (id)GlobalInstance;
|
||||
@property(retain, nonatomic) UIWindow *window;
|
||||
@property (nonatomic, retain) UIWindow *launchWindow;
|
||||
@end
|
||||
|
||||
%hook MicroMessengerAppDelegate
|
||||
%property (nonatomic, retain) UIWindow *launchWindow;
|
||||
|
||||
- (_Bool)application:(id)arg1 didFinishLaunchingWithOptions:(id)arg2{
|
||||
if (!DKHelperConfig.dkLaunchEnable){return %orig; }
|
||||
BOOL end = %orig;
|
||||
DKLaunchViewController * launchVC = [[DKLaunchViewController alloc] init];
|
||||
UIWindow *launchWindow = [[UIWindow alloc] initWithFrame:UIScreen.mainScreen.bounds];
|
||||
self.launchWindow = launchWindow;
|
||||
launchWindow.windowLevel = UIWindowLevelAlert + 1;
|
||||
launchWindow.rootViewController = launchVC;
|
||||
[launchWindow makeKeyAndVisible];
|
||||
return end;
|
||||
|
||||
}
|
||||
%end
|
||||
|
||||
Reference in New Issue
Block a user