mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-05 05:07:48 +00:00
65 lines
1.6 KiB
Objective-C
65 lines
1.6 KiB
Objective-C
//
|
|
// GameSearchResultsScreenController.m
|
|
// RobloxMobile
|
|
//
|
|
// Created by Ariel Lichtin on 6/11/14.
|
|
// Copyright (c) 2014 ROBLOX. All rights reserved.
|
|
//
|
|
|
|
#import "GameSearchResultsScreenController.h"
|
|
#import "RBWebGamePreviewScreenController.h"
|
|
#import "GamesCollectionView.h"
|
|
#import "RobloxNotifications.h"
|
|
#import "RobloxData.h"
|
|
#import "RobloxTheme.h"
|
|
#import "UIViewController+Helpers.h"
|
|
#import "Flurry.h"
|
|
|
|
//---METRICS---
|
|
#define GSRSC_showGameDetails @"GAME SEARCH RESULTS SCREEN - Show Game Details"
|
|
#define GSRSC_showSearchResults @"GAME SEARCH RESULTS SCREEN - Show Search Results"
|
|
|
|
@interface GameSearchResultsScreenController ()
|
|
|
|
@end
|
|
|
|
@implementation GameSearchResultsScreenController
|
|
{
|
|
GamesCollectionView* _collectionView;
|
|
}
|
|
|
|
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
|
|
{
|
|
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
|
|
if (self) {
|
|
// Custom initialization
|
|
}
|
|
return self;
|
|
}
|
|
|
|
- (void)viewDidLoad
|
|
{
|
|
[super viewDidLoad];
|
|
|
|
self.view.backgroundColor = [RobloxTheme lightBackground];
|
|
self.navigationItem.title = NSLocalizedString(@"SearchResultsPhrase", nil);
|
|
|
|
self.edgesForExtendedLayout = UIRectEdgeNone;
|
|
|
|
[self addSearchIconWithSearchType:SearchResultGames andFlurryEvent:nil];
|
|
|
|
_collectionView = [[GamesCollectionView alloc] init];
|
|
[self.view addSubview:_collectionView];
|
|
|
|
[_collectionView loadGamesForKeywords:_keywords];
|
|
}
|
|
|
|
- (void)viewDidLayoutSubviews
|
|
{
|
|
[super viewDidLayoutSubviews];
|
|
|
|
_collectionView.frame = self.view.bounds;
|
|
}
|
|
|
|
@end
|