+ Reply
Page 1 of 8 123 ... LastLast
Results 1 to 20 of 154

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: SBAnimatedWeather [Release]

is a discussion within the

iPhone 4|4S New Skins / Themes Launches

forums, a part of the

New Skins / Themes Launches

section;
SBAnimatedWeather Since there are a lot of animated weather widgets floating around, I decided to make a simple plugin that displays an html file on top of the icons .
...
  1. #1
    Theme Creator wyndwarrior's Avatar
    Join Date
    Jun 2009
    Location
    com.apple.springboard
    Posts
    677
    Thanks
    74
    Thanked 3,288 Times in 361 Posts

    Default SBAnimatedWeather [Release]
    SBAnimatedWeather

    Since there are a lot of animated weather widgets floating around, I decided to make a simple plugin that displays an html file on top of the icons. Having clouds displayed behind your icons just didn't feel right; there's a loss of depth and focus on the weather. By putting weather in front of everything, you can get a better feel of what condition it's really like outside.



    [Download]

    Feel free to use this plugin with other widgets. It's designed to work with any existing winterboard widget as well as other springboard widgets.

    Source code:

    Code:
    #import <UIKit/UIKit.h>
    #import <UIKit/UIKit/UIWebDocumentView.h>
    #import <Foundation/Foundation.h>
    #import <SpringBoard/SBUIController.h>
    #import <objc/runtime.h>
    #import "substrate.h"
    
    @protocol SBAWproto
    
    - (id)_origUICont_init;
    
    @end
    
    static id _SBUIController_init(SBUIController<SBAWproto> *self, SEL _cmd){
    	[self _origUICont_init];
    	UIWebDocumentView *docView = [[[UIWebDocumentView alloc] initWithFrame:CGRectMake(0, 0, 320, 480)] autorelease];
    	[docView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:@"/var/mobile/Library/SBAnimatedWeather/Widget.html"]]];
    	[docView setUserInteractionEnabled:NO];
    	[docView setBackgroundColor:[UIColor clearColor]];
    	[docView setDrawsBackground:NO];
    	[[self window] addSubview:docView];
    	return self;
    }
    
    extern "C" void SBAWInit() {
    	NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
    	MSHookMessage(objc_getClass("SBUIController"), @selector(init), (IMP)_SBUIController_init, "_origUICont_");
    	[pool release];
    }
    Attached Thumbnails Attached Thumbnails SBAnimatedWeather [Release]-img_0033.png  
    Attached Images Attached Images  
    Last edited by wyndwarrior; 01-04-2011 at 03:49 PM.

  2. The Following 83 Users Say Thank You to wyndwarrior For This Useful Post:

    ALIEN1974 (01-04-2011), AnthonyGiola (02-11-2011), AWSUM (03-03-2011), Blue (01-24-2011), Boardwalkbarber (05-16-2011), byron686 (01-07-2011), chris85e (05-11-2011), Cristianol3 (03-11-2011), cukhiem (03-21-2011), DaEliminator (01-05-2011), dakkota (01-04-2011), Dansco (01-28-2011), Dark_Ninja (03-07-2011), Dazlin2 (01-04-2011), DeCoy (01-11-2011), Dexy88 (01-07-2011), Doreen (01-04-2011), dude jacobson (01-06-2011), Ecko666 (01-04-2011), edel_hert (01-07-2011), eonC4PDA (01-05-2011), EventHorizn (01-04-2011), falcon212 (05-03-2011), fdw1 (01-05-2011), FiVe5tArPlAy3r (01-04-2011), GaN-MaN (02-16-2011), Geekbro (01-07-2011), henftling (01-04-2011), Ian Nicoll (01-04-2011), ibrokeit (01-07-2011), It's Mi (01-04-2011), JDean2 (01-20-2011), jima6636 (01-04-2011), jokerg7 (01-05-2011), Joshuawilde (01-17-2011), k.nitsua (01-04-2011), Kaospassageraren (04-04-2011), kevin.e.white (03-04-2011), kimvy (01-04-2011), Kr0NiK (03-06-2011), kruzzit (02-14-2012), loopweb (01-05-2011), lostinthemes (01-05-2011), Maarten16 (01-04-2011), MadonnaFan (01-12-2011), Major Herbie (03-03-2011), MaudmyiPhone (01-08-2011), medic88 (01-04-2011), mic_888 (01-04-2011), MindGem (01-04-2011), Mr G (01-30-2011), phillyeaglesfan (03-08-2011), PinkTissue (01-18-2011), Raaj FX was banned (01-04-2011), rameses09 (01-04-2011), Ramses2 (01-04-2011), ReBourne (01-17-2011), redzz (01-08-2011), rine5 (01-07-2011), river_9x (09-26-2012), RKO1195 (01-19-2012), shitaki (01-04-2011), showstopper (01-06-2011), skiptowncat (01-07-2011), SkyGuy5 (01-07-2011), slap690 (01-04-2011), SnowLeo (01-07-2011), SphinxUMR (03-18-2011), sucram6791 (01-04-2011), testrun505 (01-04-2011), The_13th_Plague (01-06-2011), The_Durben (01-07-2011), Truckinlow (01-04-2011), ufcsean (01-06-2011), UmarAllAroundYou (02-13-2011), unoimkll (01-26-2011), vinni30 (01-14-2011), Waverley73 (01-07-2011), wim66 (01-04-2011), wizek (05-16-2011), Xenontac (01-05-2011), zausser (01-04-2011), ziggy7 (01-04-2011)

  3. #2
    Failing means yer playin! ziggy7's Avatar
    Join Date
    Mar 2010
    Location
    Scotland
    Posts
    2,750
    Thanks
    4,008
    Thanked 2,315 Times in 1,245 Posts

    Thanks Wyndwarrior...Awesome!!

    EDIT: works..perfectly...

    Last edited by ziggy7; 01-04-2011 at 11:46 AM.

  4. #3
    Troll Ramses2's Avatar
    Join Date
    May 2008
    Location
    Nancy, France
    Posts
    2,005
    Thanks
    1,779
    Thanked 1,429 Times in 697 Posts

    Many thank's

  5. #4
    Master Theme Creator ALIEN1974's Avatar
    Join Date
    Feb 2010
    Location
    var/stash/Themes
    Posts
    2,833
    Thanks
    1,715
    Thanked 5,972 Times in 1,579 Posts


    How...how...how??????
    Dam...
    I have a surprise for you soon...
    How about all the animations,but in HD (retina resolution)...
    I finally got them,will take more ram (about 5mb)...but it work.

  6. The Following 6 Users Say Thank You to ALIEN1974 For This Useful Post:

    DA_GHOST (01-04-2011), fdw1 (01-05-2011), lostinthemes (01-16-2011), Raaj FX was banned (01-04-2011), rameses09 (01-04-2011), SkyGuy5 (01-07-2011)

  7. #5
    iPhoneaholic rameses09's Avatar
    Join Date
    Oct 2010
    Location
    Chizilla
    Posts
    420
    Thanks
    116
    Thanked 75 Times in 54 Posts

    Quote Originally Posted by ALIEN1974 View Post

    How...how...how??????
    Dam...
    I have a surprise for you soon...
    How about all the animations,but in HD (retina resolution)...:
    I finally got them,will take more ram (about 5mb)...but it work.
    HD sounds very nice.

  8. #6
    Banned DA_GHOST's Avatar
    Join Date
    Jul 2010
    Posts
    3,563
    Thanks
    1,911
    Thanked 2,886 Times in 1,461 Posts

    pretty f'n kool bro thanks but its not in hd??

  9. #7
    "The Chuck Bass of Theming" k.nitsua's Avatar
    Join Date
    Mar 2009
    Location
    Merced, CA
    Posts
    4,422
    Thanks
    1,761
    Thanked 19,214 Times in 2,596 Posts

    Holy crap. How did you do this? I'm gonna test it now and HD it as well if need be ^_^
    #eli7e revived me

  10. The Following 4 Users Say Thank You to k.nitsua For This Useful Post:

    ALIEN1974 (01-04-2011), lostinthemes (01-16-2011), Raaj FX was banned (01-04-2011), SkyGuy5 (01-07-2011)

  11. #8
    Banned DA_GHOST's Avatar
    Join Date
    Jul 2010
    Posts
    3,563
    Thanks
    1,911
    Thanked 2,886 Times in 1,461 Posts

    the snowflakes arent in front of my icons??is it because im on i4?
    Last edited by DA_GHOST; 01-04-2011 at 12:58 PM.

  12. #9
    iPhoneaholic
    Join Date
    Nov 2009
    Posts
    444
    Thanks
    13
    Thanked 54 Times in 48 Posts

    awesome wynd.

    is this the same as the one from endroid?

  13. #10
    What's Jailbreak?
    Join Date
    Dec 2010
    Posts
    7
    Thanks
    2
    Thanked 1 Time in 1 Post
    Excellent mate thank you very much except i live in the UK and the Yahoo weather code doesnt work why ?
    Last edited by TeMpO v; 01-04-2011 at 01:31 PM.

  14. #11
    Theme Creator Doreen's Avatar
    Join Date
    Jul 2007
    Location
    Southern California
    Posts
    2,572
    Thanks
    2,687
    Thanked 2,449 Times in 1,156 Posts

    Wynd is there anyway to get the animated weather "On Top" of LockInfo's Clocks that you know of? Is there some script to write the Z order so it forces LockInfo to stay behind while the weather rides on top?

    Or is this just impossible to accomplish w/ LockInfo? I wanted to ask you but you had so many ppl making demands of you in that other thread I did not want to be yet another "Help me!" Help me!" on your plate. hehe =)

    Thank you for allllll your hard work you and Alien are our teachers!

  15. #12
    iPhoneaholic
    Join Date
    Nov 2009
    Posts
    444
    Thanks
    13
    Thanked 54 Times in 48 Posts

    I must be a moron. I've setup so many complex themes yet I can't get this to work lol. Disabled all other themes. Tried with default zip code and doesn't work. Anyone else having any issues or am I the idiot of the day lol.

    .
    EDIT NM

    i used ifile and missed the instructions!
    Last edited by aimetti; 01-04-2011 at 05:57 PM.

  16. #13
    Master "Z" zausser's Avatar
    Join Date
    Sep 2007
    Location
    Sin City
    Posts
    6,283
    Thanks
    9,003
    Thanked 25,618 Times in 4,065 Posts

    LOL...WOW! The Talent in this place astounds me! NICE!

  17. #14
    What's Jailbreak?
    Join Date
    Oct 2009
    Location
    London
    Posts
    18
    Thanks
    12
    Thanked 6 Times in 6 Posts

    Awesome, works great thank you

  18. #15
    The Gem of your Mind MindGem's Avatar
    Join Date
    May 2010
    Posts
    1,307
    Thanks
    229
    Thanked 198 Times in 154 Posts

    I'm the only one that wants to hump him?

  19. #16
    perma-banned for life
    Join Date
    Mar 2009
    Location
    Photoshop CS5
    Posts
    8,424
    Thanks
    10,454
    Thanked 7,049 Times in 3,590 Posts

    Me too ^ LOL

    But seriously genius !!!

  20. #17
    Resident Artist TheEnigma's Avatar
    Join Date
    Aug 2010
    Location
    Canada
    Posts
    621
    Thanks
    227
    Thanked 399 Times in 227 Posts

    sweet weather widget! Never seen anything like it! This is really original

    It's still so Betty.

  21. #18
    Troll Ramses2's Avatar
    Join Date
    May 2008
    Location
    Nancy, France
    Posts
    2,005
    Thanks
    1,779
    Thanked 1,429 Times in 697 Posts

    I am surprised to see that 7 descriptions of weather in the repertory Animations, while in other events, we find much more (20 for example)

  22. #19
    Theme Creator wyndwarrior's Avatar
    Join Date
    Jun 2009
    Location
    com.apple.springboard
    Posts
    677
    Thanks
    74
    Thanked 3,288 Times in 361 Posts

    Source code:

    Code:
    #import <UIKit/UIKit.h>
    #import <UIKit/UIKit/UIWebDocumentView.h>
    #import <Foundation/Foundation.h>
    #import <SpringBoard/SBUIController.h>
    #import <objc/runtime.h>
    #import "substrate.h"
    
    @protocol SBAWproto
    
    - (id)_origUICont_init;
    
    @end
    
    static id _SBUIController_init(SBUIController<SBAWproto> *self, SEL _cmd){
    	[self _origUICont_init];
    	UIWebDocumentView *docView = [[[UIWebDocumentView alloc] initWithFrame:CGRectMake(0, 0, 320, 480)] autorelease];
    	[docView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:@"/var/mobile/Library/SBAnimatedWeather/Widget.html"]]];
    	[docView setUserInteractionEnabled:NO];
    	[docView setBackgroundColor:[UIColor clearColor]];
    	[docView setDrawsBackground:NO];
    	[[self window] addSubview:docView];
    	return self;
    }
    
    extern "C" void SBAWInit() {
    	NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
    	MSHookMessage(objc_getClass("SBUIController"), @selector(init), (IMP)_SBUIController_init, "_origUICont_");
    	[pool release];
    }

  23. The Following 4 Users Say Thank You to wyndwarrior For This Useful Post:

    byron686 (01-07-2011), Doreen (01-04-2011), Raaj FX was banned (01-04-2011), tw1st3d (01-05-2011)

  24. #20
    wanna-be Themer/Modder jima6636's Avatar
    Join Date
    Dec 2008
    Location
    In your Head
    Posts
    1,090
    Thanks
    1,491
    Thanked 4,194 Times in 831 Posts

    very cool thanks a bunch =]

+ Reply
Page 1 of 8 123 ... LastLast
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts