Permalink
Browse files

init commit

  • Loading branch information...
1 parent 4812ae2 commit 7703a20dba0b5ba0da4066f3f74be63af04da9e5 @hackfrag committed Jul 4, 2013
View
@@ -0,0 +1,18 @@
+# Xcode
+.DS_Store
+build/
+*.pbxuser
+!default.pbxuser
+*.mode1v3
+!default.mode1v3
+*.mode2v3
+!default.mode2v3
+*.perspectivev3
+!default.perspectivev3
+*.xcworkspace
+!default.xcworkspace
+xcuserdata
+profile
+*.moved-aside
+DerivedData
+.idea/
View
@@ -0,0 +1,9 @@
+[submodule "Lodestone/libs/AFNetworking"]
+ path = Lodestone/libs/AFNetworking
+ url = https://github.com/AFNetworking/AFNetworking.git
+[submodule "Lodestone/libs/hpple"]
+ path = Lodestone/libs/hpple
+ url = https://github.com/topfunky/hpple.git
+[submodule "Lodestone/libs/SDWebImage"]
+ path = Lodestone/libs/SDWebImage
+ url = https://github.com/rs/SDWebImage.git
Oops, something went wrong.
@@ -7,12 +7,14 @@
//
#import "AppDelegate.h"
+#import "FFLodestone.h"
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Override point for customization after application launch.
+
return YES;
}
@@ -1,21 +1,63 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="4451" systemVersion="13A461" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="vXZ-lx-hvc">
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="4457.6" systemVersion="12D78" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="KDG-wX-QYa">
<dependencies>
- <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3676"/>
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3682.6"/>
</dependencies>
<scenes>
- <!--class Prefix:identifier View Controller-->
+ <!--View Controller-->
<scene sceneID="ufC-wZ-h7g">
<objects>
<viewController id="vXZ-lx-hvc" customClass="ViewController" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="kh9-bI-dsS">
- <rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
+ <rect key="frame" x="0.0" y="64" width="320" height="504"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
+ <subviews>
+ <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="Hackfrag Greiver" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="qc1-io-92e">
+ <rect key="frame" x="78" y="20" width="229" height="21"/>
+ <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
+ <fontDescription key="fontDescription" style="UICTFontTextStyleHeadline1"/>
+ <nil key="highlightedColor"/>
+ </label>
+ <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="Odin" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Y4k-z1-aKK">
+ <rect key="frame" x="78" y="49" width="229" height="21"/>
+ <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
+ <fontDescription key="fontDescription" style="UICTFontTextStyleSubhead1"/>
+ <nil key="highlightedColor"/>
+ </label>
+ <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="ERC-aX-Gl2">
+ <rect key="frame" x="20" y="20" width="50" height="50"/>
+ <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
+ </imageView>
+ </subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
</view>
+ <extendedEdge key="edgesForExtendedLayout"/>
+ <navigationItem key="navigationItem" id="xbg-Ya-7zQ"/>
+ <connections>
+ <outlet property="nameLabel" destination="qc1-io-92e" id="StK-ou-khj"/>
+ <outlet property="serverLabel" destination="Y4k-z1-aKK" id="rRr-g4-zyf"/>
+ <outlet property="thumbnailImage" destination="ERC-aX-Gl2" id="doN-18-qsA"/>
+ </connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="x5A-6p-PRh" sceneMemberID="firstResponder"/>
</objects>
+ <point key="canvasLocation" x="853" y="-364"/>
+ </scene>
+ <!--Navigation Controller-->
+ <scene sceneID="MLG-YS-Lfs">
+ <objects>
+ <navigationController definesPresentationContext="YES" id="KDG-wX-QYa" sceneMemberID="viewController">
+ <extendedEdge key="edgesForExtendedLayout"/>
+ <navigationBar key="navigationBar" contentMode="scaleToFill" id="6Mk-yn-eIz">
+ <autoresizingMask key="autoresizingMask"/>
+ </navigationBar>
+ <connections>
+ <segue destination="vXZ-lx-hvc" kind="relationship" relationship="rootViewController" id="Kij-5v-PUp"/>
+ </connections>
+ </navigationController>
+ <placeholder placeholderIdentifier="IBFirstResponder" id="RZZ-Hk-xM9" userLabel="First Responder" sceneMemberID="firstResponder"/>
+ </objects>
+ <point key="canvasLocation" x="127" y="-364"/>
</scene>
</scenes>
<simulatedMetricsContainer key="defaultSimulatedMetrics">
@@ -0,0 +1,29 @@
+//
+// DDProgressView.h
+// DDProgressView
+//
+// Created by Damien DeVille on 3/13/11.
+// Copyright 2011 Snappy Code. All rights reserved.
+//
+
+#if TARGET_OS_IPHONE
+#import <UIKit/UIKit.h>
+#elif TARGET_OS_MAC
+#import "AppKitCompatibility.h"
+#endif
+
+@interface DDProgressView : UIView
+{
+@private
+ float progress ;
+ UIColor *innerColor ;
+ UIColor *outerColor ;
+ UIColor *emptyColor ;
+}
+
+@property (nonatomic,retain) UIColor *innerColor ;
+@property (nonatomic,retain) UIColor *outerColor ;
+@property (nonatomic,retain) UIColor *emptyColor ;
+@property (nonatomic,assign) float progress ;
+
+@end
@@ -0,0 +1,139 @@
+//
+// DDProgressView.m
+// DDProgressView
+//
+// Created by Damien DeVille on 3/13/11.
+// Copyright 2011 Snappy Code. All rights reserved.
+//
+
+#import "DDProgressView.h"
+
+#define kProgressBarHeight 22.0f
+#define kProgressBarWidth 160.0f
+
+@implementation DDProgressView
+
+@synthesize innerColor ;
+@synthesize outerColor ;
+@synthesize emptyColor ;
+@synthesize progress ;
+
+- (id)init
+{
+ return [self initWithFrame: CGRectZero] ;
+}
+
+- (id)initWithFrame:(CGRect)frame
+{
+ self = [super initWithFrame: frame] ;
+ if (self)
+ {
+ self.backgroundColor = [UIColor clearColor] ;
+ self.innerColor = [UIColor lightGrayColor] ;
+ self.outerColor = [UIColor lightGrayColor] ;
+ self.emptyColor = [UIColor clearColor] ;
+ if (frame.size.width == 0.0f)
+ frame.size.width = kProgressBarWidth ;
+ }
+ return self ;
+}
+
+- (void)dealloc
+{
+ innerColor = nil ;
+ outerColor = nil ;
+ emptyColor = nil ;
+
+}
+
+- (void)setProgress:(float)theProgress
+{
+ // make sure the user does not try to set the progress outside of the bounds
+ if (theProgress > 1.0f)
+ theProgress = 1.0f ;
+ if (theProgress < 0.0f)
+ theProgress = 0.0f ;
+
+ progress = theProgress ;
+ [self setNeedsDisplay] ;
+}
+
+- (void)setFrame:(CGRect)frame
+{
+ // we set the height ourselves since it is fixed
+ frame.size.height = kProgressBarHeight ;
+ [super setFrame: frame] ;
+}
+
+- (void)setBounds:(CGRect)bounds
+{
+ // we set the height ourselves since it is fixed
+ bounds.size.height = kProgressBarHeight ;
+ [super setBounds: bounds] ;
+}
+
+- (void)drawRect:(CGRect)rect
+{
+ CGContextRef context = UIGraphicsGetCurrentContext() ;
+
+ // save the context
+ CGContextSaveGState(context) ;
+
+ // allow antialiasing
+ CGContextSetAllowsAntialiasing(context, TRUE) ;
+
+ // we first draw the outter rounded rectangle
+ rect = CGRectInset(rect, 1.0f, 1.0f) ;
+ CGFloat radius = 0.5f * rect.size.height ;
+
+ [outerColor setStroke] ;
+ CGContextSetLineWidth(context, 2.0f) ;
+
+ CGContextBeginPath(context) ;
+ CGContextMoveToPoint(context, CGRectGetMinX(rect), CGRectGetMidY(rect)) ;
+ CGContextAddArcToPoint(context, CGRectGetMinX(rect), CGRectGetMinY(rect), CGRectGetMidX(rect), CGRectGetMinY(rect), radius) ;
+ CGContextAddArcToPoint(context, CGRectGetMaxX(rect), CGRectGetMinY(rect), CGRectGetMaxX(rect), CGRectGetMidY(rect), radius) ;
+ CGContextAddArcToPoint(context, CGRectGetMaxX(rect), CGRectGetMaxY(rect), CGRectGetMidX(rect), CGRectGetMaxY(rect), radius) ;
+ CGContextAddArcToPoint(context, CGRectGetMinX(rect), CGRectGetMaxY(rect), CGRectGetMinX(rect), CGRectGetMidY(rect), radius) ;
+ CGContextClosePath(context) ;
+ CGContextDrawPath(context, kCGPathStroke) ;
+
+ // draw the empty rounded rectangle (shown for the "unfilled" portions of the progress
+ rect = CGRectInset(rect, 3.0f, 3.0f) ;
+ radius = 0.5f * rect.size.height ;
+
+ [emptyColor setFill] ;
+
+ CGContextBeginPath(context) ;
+ CGContextMoveToPoint(context, CGRectGetMinX(rect), CGRectGetMidY(rect)) ;
+ CGContextAddArcToPoint(context, CGRectGetMinX(rect), CGRectGetMinY(rect), CGRectGetMidX(rect), CGRectGetMinY(rect), radius) ;
+ CGContextAddArcToPoint(context, CGRectGetMaxX(rect), CGRectGetMinY(rect), CGRectGetMaxX(rect), CGRectGetMidY(rect), radius) ;
+ CGContextAddArcToPoint(context, CGRectGetMaxX(rect), CGRectGetMaxY(rect), CGRectGetMidX(rect), CGRectGetMaxY(rect), radius) ;
+ CGContextAddArcToPoint(context, CGRectGetMinX(rect), CGRectGetMaxY(rect), CGRectGetMinX(rect), CGRectGetMidY(rect), radius) ;
+ CGContextClosePath(context) ;
+ CGContextFillPath(context) ;
+
+ // draw the inside moving filled rounded rectangle
+ radius = 0.5f * rect.size.height ;
+
+ // make sure the filled rounded rectangle is not smaller than 2 times the radius
+ rect.size.width *= progress ;
+ if (rect.size.width < 2 * radius)
+ rect.size.width = 2 * radius ;
+
+ [innerColor setFill] ;
+
+ CGContextBeginPath(context) ;
+ CGContextMoveToPoint(context, CGRectGetMinX(rect), CGRectGetMidY(rect)) ;
+ CGContextAddArcToPoint(context, CGRectGetMinX(rect), CGRectGetMinY(rect), CGRectGetMidX(rect), CGRectGetMinY(rect), radius) ;
+ CGContextAddArcToPoint(context, CGRectGetMaxX(rect), CGRectGetMinY(rect), CGRectGetMaxX(rect), CGRectGetMidY(rect), radius) ;
+ CGContextAddArcToPoint(context, CGRectGetMaxX(rect), CGRectGetMaxY(rect), CGRectGetMidX(rect), CGRectGetMaxY(rect), radius) ;
+ CGContextAddArcToPoint(context, CGRectGetMinX(rect), CGRectGetMaxY(rect), CGRectGetMinX(rect), CGRectGetMidY(rect), radius) ;
+ CGContextClosePath(context) ;
+ CGContextFillPath(context) ;
+
+ // restore the context
+ CGContextRestoreGState(context) ;
+}
+
+@end
@@ -0,0 +1,40 @@
+//
+// FFCharacter.h
+// FFXIV
+//
+// Created by Florian Strauss on 03.07.13.
+// Copyright (c) 2013 Orlyapps Janzen & Strauß GbR. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+
+#define kFFCharacterClassesKeyIcon @"icon"
+#define kFFCharacterClassesKeyLevel @"lvl"
+#define kFFCharacterClassesKeyExp @"exp"
+
+@interface FFCharacter : NSObject
+
+@property (nonatomic, strong) NSString *name;
+@property (nonatomic, strong) NSString *server;
+@property (nonatomic, strong) NSString *mainLVL;
+@property (nonatomic, strong) NSString *race;
+@property (nonatomic, strong) NSString *nameday;
+@property (nonatomic, strong) NSString *guardian;
+@property (nonatomic, strong) NSString *cityState;
+@property (nonatomic, strong) NSString *grandCompany; // TODO
+@property (nonatomic, strong) NSString *gcRank; // TODO
+@property (nonatomic, strong) NSString *freeCompany; // TODO
+
+@property (nonatomic, strong) NSURL *picture;
+@property (nonatomic, strong) NSURL *thumbnail;
+
+@property (nonatomic, strong) NSDictionary *stats;
+@property (nonatomic, strong) NSDictionary *attributes;
+@property (nonatomic, strong) NSDictionary *elements;
+@property (nonatomic, strong) NSDictionary *properties;
+@property (nonatomic, strong) NSDictionary *classes;
+
+
++ (id)characterWithData:(NSData *)data;
+
+@end
Oops, something went wrong.

0 comments on commit 7703a20

Please sign in to comment.