+ Reply
Page 79 of 130 FirstFirst ... 29 697778798081 89 129 ... LastLast
Results 1,561 to 1,580 of 2599

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


Thread: Creating Themes With Dreamboard

is a discussion within the

iPhone 4|4S New Skins / Themes Launches

forums, a part of the

New Skins / Themes Launches

section;
it might be a problem with ur widget coding then, u gotta remeber if u have a widget in a 60x100 area thats like ahving ur browser window resized to
...
  1. #1561
    Theme Creator PhanaticD's Avatar
    Join Date
    Oct 2009
    Location
    NJ
    Posts
    2,152
    Thanks
    209
    Thanked 574 Times in 337 Posts

    it might be a problem with ur widget coding then, u gotta remeber if u have a widget in a 60x100 area thats like ahving ur browser window resized to 60x200 and the webpage in there

  2. #1562
    My iPhone is a Part of Me korbyn8495's Avatar
    Join Date
    Sep 2010
    Location
    New Mexico
    Posts
    657
    Thanks
    186
    Thanked 245 Times in 144 Posts

    Ok, so quick question: I have 3 widgets. I have a button for each widget (for a total of 3 buttons) that shows the widget for that button, and sets the Alphas for the other two widgets to 0. I can't get the savevar action to work for the life of me, so what should I do? Should I make seperate function for each one, instead of what I have there? I realize the savevar action isn't there too, I took it out because I got tired of it creating a Current.plist for no reason.

    Code:
    <dict>
    							<key>Actions</key>
    							<array>
    								<string>views.Analog.alpha = 1</string>
    								<string>views.LCD.alpha = 0</string>
    								<string>views.BlueLCD.alpha = 0</string>
    							</array>
    							<key>FrameHeight</key>
    							<integer>73</integer>
    							<key>FrameWidth</key>
    							<integer>320</integer>
    							<key>FrameX</key>
    							<integer>0</integer>
    							<key>FrameY</key>
    							<integer>0</integer>
    							<key>Image</key>
    							<string>$ROOT/Images/Apps/Analog Clock.png</string>
    							<key>ViewType</key>
    							<string>Button</string>
    						</dict>
    						<dict>
    							<key>Actions</key>
    							<array>
    								<string>views.Analog.alpha = 0</string>
    								<string>views.LCD.x = animated:0.5</string>
    								<string>views.BlueLCD.alpha = 0</string>
    							</array>
    							<key>FrameHeight</key>
    							<integer>73</integer>
    							<key>FrameWidth</key>
    							<integer>320</integer>
    							<key>FrameX</key>
    							<integer>0</integer>
    							<key>FrameY</key>
    							<integer>73</integer>
    							<key>Image</key>
    							<string>$ROOT/Images/Apps/LCD Clock.png</string>
    							<key>ViewType</key>
    							<string>Button</string>
    						</dict>
    						<dict>
    							<key>Actions</key>
    							<array>
    								<string>views.Analog.alpha = 0</string>
    								<string>views.LCD.alpha = 0</string>
    								<string>views.BlueLCD.alpha = 1</string>
    							</array>
    							<key>FrameHeight</key>
    							<integer>73</integer>
    							<key>FrameWidth</key>
    							<integer>320</integer>
    							<key>FrameX</key>
    							<integer>0</integer>
    							<key>FrameY</key>
    							<integer>146</integer>
    							<key>Image</key>
    							<string>$ROOT/Images/Apps/Blue LCD Clock.png</string>
    							<key>ViewType</key>
    							<string>Button</string>
    						</dict>

  3. #1563
    Theme Creator PhanaticD's Avatar
    Join Date
    Oct 2009
    Location
    NJ
    Posts
    2,152
    Thanks
    209
    Thanked 574 Times in 337 Posts

    well you have to have a variable in order to save the variable

  4. #1564
    My iPhone is a Part of Me korbyn8495's Avatar
    Join Date
    Sep 2010
    Location
    New Mexico
    Posts
    657
    Thanks
    186
    Thanked 245 Times in 144 Posts

    Quote Originally Posted by PhanaticD View Post
    well you have to have a variable in order to save the variable
    Yeah, I have one for each view, but it's still not doing anything but creating a worthless Current.plist
    So this code should be working, right?
    Last edited by korbyn8495; 08-21-2011 at 09:04 PM.

  5. #1565
    Theme Creator PhanaticD's Avatar
    Join Date
    Oct 2009
    Location
    NJ
    Posts
    2,152
    Thanks
    209
    Thanked 574 Times in 337 Posts

    yea but its not going to save anything.. what you ahve to do is at the end of each of those actions set the variable for whichever one is open and do savevar, and then in the onload function check which one and then perform that command

    this variable will be changed and each time written into the current plist, but for now u set default as 1, so first use will be analog view showing
    Code:
    <key>Variables</key>
    <dict>
        <key>switchervar</key>
        <integer>1</integer>
    </dict>
    this is ur function that executes when u press a button, if u have problems following what happens here let me kno
    Code:
    <key>Functions</key>
    <dict>
         <key>switcher</key>
         <array>
              <string>vars.switchervar = 1 ? views.Analog.alpha = 1.0 : views.Analog.alpha = 0.0</string>
              <string>vars.switchervar = 2 ? views.LCD.alpha = 1.0 : views.LCD.alpha = 0.0</string>
              <string>vars.switchervar = 3 ? views.BlueLCD.alpha = 1.0 : views.BlueLCD.alpha = 0.0</string>
    
             <!--important-->
             <string>savevar</string>
         </array>
    </dict>

    this here is the whole reason u have the savevar, so the next time u respring or open the theme is has the view showing that u had last time from those three
    Code:
    <key>Onload</key>
    <array>
            <string>function switcher</string>
    </array>

    and here are your three buttons
    Code:
    <dict>
    	<key>Actions</key>
    	<array>
                    <string>vars.switchervar = 1</string>
    		<string>function switcher</string>
    	</array>
            <key>Frame</key>
            <string>0,0,320,73</string>
    	<key>Image</key>
    	<string>$ROOT/Images/Apps/Analog Clock.png</string>
    	<key>ViewType</key>
    	<string>Button</string>
    </dict>
    <dict>
    	<key>Actions</key>
    	<array>
    		<string>vars.switchervar = 2</string>
    		<string>function switcher</string>
    	</array>
            <key>Frame</key>
            <string>0,73,320,73</string>
    	<key>Image</key>
    	<string>$ROOT/Images/Apps/LCD Clock.png</string>
    	<key>ViewType</key>
    	<string>Button</string>
    </dict>
    <dict>
    	<key>Actions</key>
    	<array>
    		<string>vars.switchervar = 3</string>
    		<string>function switcher</string>
    	</array>
            <key>Frame</key>
            <string>0,146,320,73</string>
    	<key>Image</key>
    	<string>$ROOT/Images/Apps/Blue LCD Clock.png</string>
    	<key>ViewType</key>
    	<string>Button</string>
    </dict>

  6. The Following User Says Thank You to PhanaticD For This Useful Post:

    korbyn8495 (08-21-2011)

  7. #1566
    My iPhone is a Part of Me korbyn8495's Avatar
    Join Date
    Sep 2010
    Location
    New Mexico
    Posts
    657
    Thanks
    186
    Thanked 245 Times in 144 Posts

    Quote Originally Posted by PhanaticD View Post
    yea but its not going to save anything.. what you ahve to do is at the end of each of those actions set the variable for whichever one is open and do savevar, and then in the onload function check which one and then perform that command

    this variable will be changed and each time written into the current plist, but for now u set default as 1, so first use will be analog view showing
    Code:
    <key>Variables</key>
    <dict>
        <key>switchervar</key>
        <integer>1</integer>
    </dict>
    this is ur function that executes when u press a button, if u have problems following what happens here let me kno
    Code:
    <key>Functions</key>
    <dict>
         <key>switcher</key>
         <array>
              <string>vars.switchervar = 1 ? views.Analog.alpha = 1.0 : views.Analog.alpha = 0.0</string>
              <string>vars.switchervar = 2 ? views.LCD.alpha = 1.0 : views.LCD.alpha = 0.0</string>
              <string>vars.switchervar = 3 ? views.BlueLCD.alpha = 1.0 : views.BlueLCD.alpha = 0.0</string>
    
             <!--important-->
             <string>savevar</string>
         </array>
    </dict>

    this here is the whole reason u have the savevar, so the next time u respring or open the theme is has the view showing that u had last time from those three
    Code:
    <key>Onload</key>
    <array>
            <string>function switcher</string>
    </array>

    and here are your three buttons
    Code:
    <dict>
    	<key>Actions</key>
    	<array>
                    <string>vars.switchervar = 1</string>
    		<string>function switcher</string>
    	</array>
            <key>Frame</key>
            <string>0,0,320,73</string>
    	<key>Image</key>
    	<string>$ROOT/Images/Apps/Analog Clock.png</string>
    	<key>ViewType</key>
    	<string>Button</string>
    </dict>
    <dict>
    	<key>Actions</key>
    	<array>
    		<string>vars.switchervar = 2</string>
    		<string>function switcher</string>
    	</array>
            <key>Frame</key>
            <string>0,73,320,73</string>
    	<key>Image</key>
    	<string>$ROOT/Images/Apps/LCD Clock.png</string>
    	<key>ViewType</key>
    	<string>Button</string>
    </dict>
    <dict>
    	<key>Actions</key>
    	<array>
    		<string>vars.switchervar = 3</string>
    		<string>function switcher</string>
    	</array>
            <key>Frame</key>
            <string>0,146,320,73</string>
    	<key>Image</key>
    	<string>$ROOT/Images/Apps/Blue LCD Clock.png</string>
    	<key>ViewType</key>
    	<string>Button</string>
    </dict>
    Thanks, will try this tomorrow.

  8. #1567
    Dreamboard Porter/Themer/Coder FrightDealer's Avatar
    Join Date
    Jan 2011
    Location
    var/Library/Dreamboard
    Posts
    1,287
    Thanks
    952
    Thanked 750 Times in 442 Posts

    I need help with this. The theme i am porting uses PerPageHTML for the dock, and they are HTMLs. So, how would i do it so when you tap on a dock button, it changes the image or view on the dock. Same thing goes for all the other ones. Since each PPHTML image has a bookmark on the Apps, Games, Home, etc. buttons.

  9. #1568
    Theme Creator kuanyu's Avatar
    Join Date
    Feb 2011
    Posts
    2,446
    Thanks
    732
    Thanked 944 Times in 535 Posts

    @Fright
    Sorry bud, I'm so busy taking BlackAppleHD icon requests
    I'll send you the file ASAP

  10. The Following User Says Thank You to kuanyu For This Useful Post:

    FrightDealer (08-22-2011)

  11. #1569
    Dreamboard Porter/Themer/Coder FrightDealer's Avatar
    Join Date
    Jan 2011
    Location
    var/Library/Dreamboard
    Posts
    1,287
    Thanks
    952
    Thanked 750 Times in 442 Posts

    Quote Originally Posted by kuanyu View Post
    @Fright
    Sorry bud, I'm so busy taking BlackAppleHD icon requests
    I'll send you the file ASAP
    It's alright, i kno you are busy with your theme, so i didn't want to rush you. I wrote a type of code that might work, but i don't have my ipod to try it. This is what i have so the NavBar widget changes with the press of each button on the navbar:

    Code:
    <key>MainView</key>
    	<array>
    		<dict>
    			<key>Frame</key>
    			<string>0,0,320,480</string>
    			<key>Subviews</key>
    			<array>
    				<dict>
    					<key>Actions</key>
    					<array>
    						<string>vars.Page1var = 1</string>
    						<string>vars.Appsvar = 0</string>
    						<string>vars.Gamesvar = 0</string>
    						<string>vars.Mediavar = 0</string>
    						<string>vars.Webvar = 0</string>
    						<string>vars.Settingsvar = 0</string>
    						<string>function Foldering</string>
    					</array>
    					<key>Frame</key>
    					<string>12,421,28,35</string>
    					<key>ViewType</key>
    					<string>Button</string>
    				</dict>
    				<dict>
    					<key>Actions</key>
    					<array>
    						<string>vars.Page1var = 0</string>
    						<string>vars.Appsvar = 1</string>
    						<string>vars.Gamesvar = 0</string>
    						<string>vars.Mediavar = 0</string>
    						<string>vars.Webvar = 0</string>
    						<string>vars.Settingsvar = 0</string>
    						<string>function Foldering</string>
    					</array>
    					<key>Frame</key>
    					<string>61,424,37,28</string>
    					<key>ViewType</key>
    					<string>Button</string>
    				</dict>
    				<dict>
    					<key>Actions</key>
    					<array>
    						<string>vars.Page1var = 0</string>
    						<string>vars.Appsvar = 0</string>
    						<string>vars.Gamesvar = 1</string>
    						<string>vars.Mediavar = 0</string>
    						<string>vars.Webvar = 0</string>
    						<string>vars.Settingsvar = 0</string>
    						<string>function Foldering</string>
    					</array>
    					<key>Frame</key>
    					<string>116,425,36,29</string>
    					<key>ViewType</key>
    					<string>Button</string>
    				</dict>
    				<dict>
    					<key>Actions</key>
    					<array>
    						<string>vars.Page1var = 0</string>
    						<string>vars.Appsvar = 0</string>
    						<string>vars.Gamesvar = 0</string>
    						<string>vars.Mediavar = 1</string>
    						<string>vars.Webvar = 0</string>
    						<string>vars.Settingsvar = 0</string>
    						<string>function Foldering</string>
    					</array>
    					<key>Frame</key>
    					<string>170,422,35,35</string>
    					<key>ViewType</key>
    					<string>Button</string>
    				</dict>
    				<dict>
    					<key>Actions</key>
    					<array>
    						<string>vars.Page1var = 0</string>
    						<string>vars.Appsvar = 0</string>
    						<string>vars.Gamesvar = 0</string>
    						<string>vars.Mediavar = 0</string>
    						<string>vars.Webvar = 1</string>
    						<string>vars.Settingsvar = 0</string>
    						<string>function Foldering</string>
    					</array>
    					<key>Frame</key>
    					<string>222,422,38,35</string>
    					<key>ViewType</key>
    					<string>Button</string>
    				</dict>
    				<dict>
    					<key>Actions</key>
    					<array>
    						<string>vars.Page1var = 0</string>
    						<string>vars.Appsvar = 0</string>
    						<string>vars.Gamesvar = 0</string>
    						<string>vars.Mediavar = 0</string>
    						<string>vars.Webvar = 0</string>
    						<string>vars.Settingsvar = 1</string>
    						<string>function Foldering</string>
    					</array>
    					<key>Frame</key>
    					<string>274,424,32,34</string>
    					<key>ViewType</key>
    					<string>Button</string>
    				</dict>
    				<dict>
    					<key>Frame</key>
    					<string>0,0,320,480</string>
    					<key>URL</key>
    					<string>$ROOT/Widgets/Dock/DARKSTAR-PAGE1/Widget.html</string>
    					<key>UserInteraction</key>
    					<false/>
    					<key>ViewType</key>
    					<string>WebView</string>
    				</dict>
    			</array>
    			<key>ViewType</key>
    			<string>View</string>
    			<key>id</key>
    			<string>Home</string>
    		</dict>
    		<dict>
    			<key>Frame</key>
    			<string>0,0,320,480</string>
    			<key>Subviews</key>
    			<array>
    				<dict>
    					<key>Actions</key>
    					<array>
    						<string>vars.Page1var = 1</string>
    						<string>vars.Appsvar = 0</string>
    						<string>vars.Gamesvar = 0</string>
    						<string>vars.Mediavar = 0</string>
    						<string>vars.Webvar = 0</string>
    						<string>vars.Settingsvar = 0</string>
    						<string>function Foldering</string>
    					</array>
    					<key>Frame</key>
    					<string>12,421,28,35</string>
    					<key>ViewType</key>
    					<string>Button</string>
    				</dict>
    				<dict>
    					<key>Actions</key>
    					<array>
    						<string>vars.Page1var = 0</string>
    						<string>vars.Appsvar = 1</string>
    						<string>vars.Gamesvar = 0</string>
    						<string>vars.Mediavar = 0</string>
    						<string>vars.Webvar = 0</string>
    						<string>vars.Settingsvar = 0</string>
    						<string>function Foldering</string>
    					</array>
    					<key>Frame</key>
    					<string>61,424,37,28</string>
    					<key>ViewType</key>
    					<string>Button</string>
    				</dict>
    				<dict>
    					<key>Actions</key>
    					<array>
    						<string>vars.Page1var = 0</string>
    						<string>vars.Appsvar = 0</string>
    						<string>vars.Gamesvar = 1</string>
    						<string>vars.Mediavar = 0</string>
    						<string>vars.Webvar = 0</string>
    						<string>vars.Settingsvar = 0</string>
    						<string>function Foldering</string>
    					</array>
    					<key>Frame</key>
    					<string>116,425,36,29</string>
    					<key>ViewType</key>
    					<string>Button</string>
    				</dict>
    				<dict>
    					<key>Actions</key>
    					<array>
    						<string>vars.Page1var = 0</string>
    						<string>vars.Appsvar = 0</string>
    						<string>vars.Gamesvar = 0</string>
    						<string>vars.Mediavar = 1</string>
    						<string>vars.Webvar = 0</string>
    						<string>vars.Settingsvar = 0</string>
    						<string>function Foldering</string>
    					</array>
    					<key>Frame</key>
    					<string>170,422,35,35</string>
    					<key>ViewType</key>
    					<string>Button</string>
    				</dict>
    				<dict>
    					<key>Actions</key>
    					<array>
    						<string>vars.Page1var = 0</string>
    						<string>vars.Appsvar = 0</string>
    						<string>vars.Gamesvar = 0</string>
    						<string>vars.Mediavar = 0</string>
    						<string>vars.Webvar = 1</string>
    						<string>vars.Settingsvar = 0</string>
    						<string>function Foldering</string>
    					</array>
    					<key>Frame</key>
    					<string>222,422,38,35</string>
    					<key>ViewType</key>
    					<string>Button</string>
    				</dict>
    				<dict>
    					<key>Actions</key>
    					<array>
    						<string>vars.Page1var = 0</string>
    						<string>vars.Appsvar = 0</string>
    						<string>vars.Gamesvar = 0</string>
    						<string>vars.Mediavar = 0</string>
    						<string>vars.Webvar = 0</string>
    						<string>vars.Settingsvar = 1</string>
    						<string>function Foldering</string>
    					</array>
    					<key>Frame</key>
    					<string>274,424,32,34</string>
    					<key>ViewType</key>
    					<string>Button</string>
    				</dict>
    				<dict>
    					<key>Frame</key>
    					<string>0,0,320,480</string>
    					<key>URL</key>
    					<string>$ROOT/Widgets/Dock/DARKSTAR-PAGE2/Widget.html</string>
    					<key>UserInteraction</key>
    					<false/>
    					<key>ViewType</key>
    					<string>WebView</string>
    				</dict>
    			</array>
    			<key>ViewType</key>
    			<string>View</string>
    			<key>id</key>
    			<string>Apps</string>
    		</dict>
    		<dict>
    			<key>Frame</key>
    			<string>0,0,320,480</string>
    			<key>Subviews</key>
    			<array>
    				<dict>
    					<key>Actions</key>
    					<array>
    						<string>vars.Page1var = 1</string>
    						<string>vars.Appsvar = 0</string>
    						<string>vars.Gamesvar = 0</string>
    						<string>vars.Mediavar = 0</string>
    						<string>vars.Webvar = 0</string>
    						<string>vars.Settingsvar = 0</string>
    						<string>function Foldering</string>
    					</array>
    					<key>Frame</key>
    					<string>12,421,28,35</string>
    					<key>ViewType</key>
    					<string>Button</string>
    				</dict>
    				<dict>
    					<key>Actions</key>
    					<array>
    						<string>vars.Page1var = 0</string>
    						<string>vars.Appsvar = 1</string>
    						<string>vars.Gamesvar = 0</string>
    						<string>vars.Mediavar = 0</string>
    						<string>vars.Webvar = 0</string>
    						<string>vars.Settingsvar = 0</string>
    						<string>function Foldering</string>
    					</array>
    					<key>Frame</key>
    					<string>61,424,37,28</string>
    					<key>ViewType</key>
    					<string>Button</string>
    				</dict>
    				<dict>
    					<key>Actions</key>
    					<array>
    						<string>vars.Page1var = 0</string>
    						<string>vars.Appsvar = 0</string>
    						<string>vars.Gamesvar = 1</string>
    						<string>vars.Mediavar = 0</string>
    						<string>vars.Webvar = 0</string>
    						<string>vars.Settingsvar = 0</string>
    						<string>function Foldering</string>
    					</array>
    					<key>Frame</key>
    					<string>116,425,36,29</string>
    					<key>ViewType</key>
    					<string>Button</string>
    				</dict>
    				<dict>
    					<key>Actions</key>
    					<array>
    						<string>vars.Page1var = 0</string>
    						<string>vars.Appsvar = 0</string>
    						<string>vars.Gamesvar = 0</string>
    						<string>vars.Mediavar = 1</string>
    						<string>vars.Webvar = 0</string>
    						<string>vars.Settingsvar = 0</string>
    						<string>function Foldering</string>
    					</array>
    					<key>Frame</key>
    					<string>170,422,35,35</string>
    					<key>ViewType</key>
    					<string>Button</string>
    				</dict>
    				<dict>
    					<key>Actions</key>
    					<array>
    						<string>vars.Page1var = 0</string>
    						<string>vars.Appsvar = 0</string>
    						<string>vars.Gamesvar = 0</string>
    						<string>vars.Mediavar = 0</string>
    						<string>vars.Webvar = 1</string>
    						<string>vars.Settingsvar = 0</string>
    						<string>function Foldering</string>
    					</array>
    					<key>Frame</key>
    					<string>222,422,38,35</string>
    					<key>ViewType</key>
    					<string>Button</string>
    				</dict>
    				<dict>
    					<key>Actions</key>
    					<array>
    						<string>vars.Page1var = 0</string>
    						<string>vars.Appsvar = 0</string>
    						<string>vars.Gamesvar = 0</string>
    						<string>vars.Mediavar = 0</string>
    						<string>vars.Webvar = 0</string>
    						<string>vars.Settingsvar = 1</string>
    						<string>function Foldering</string>
    					</array>
    					<key>Frame</key>
    					<string>274,424,32,34</string>
    					<key>ViewType</key>
    					<string>Button</string>
    				</dict>
    				<dict>
    					<key>Frame</key>
    					<string>0,0,320,480</string>
    					<key>URL</key>
    					<string>$ROOT/Widgets/Dock/DARKSTAR-PAGE3/Widget.html</string>
    					<key>UserInteraction</key>
    					<false/>
    					<key>ViewType</key>
    					<string>WebView</string>
    				</dict>
    			</array>
    			<key>ViewType</key>
    			<string>View</string>
    			<key>id</key>
    			<string>Games</string>
    		</dict>
    		<dict>
    			<key>Frame</key>
    			<string>0,0,320,480</string>
    			<key>Subviews</key>
    			<array>
    				<dict>
    					<key>Actions</key>
    					<array>
    						<string>vars.Page1var = 1</string>
    						<string>vars.Appsvar = 0</string>
    						<string>vars.Gamesvar = 0</string>
    						<string>vars.Mediavar = 0</string>
    						<string>vars.Webvar = 0</string>
    						<string>vars.Settingsvar = 0</string>
    						<string>function Foldering</string>
    					</array>
    					<key>Frame</key>
    					<string>12,421,28,35</string>
    					<key>ViewType</key>
    					<string>Button</string>
    				</dict>
    				<dict>
    					<key>Actions</key>
    					<array>
    						<string>vars.Page1var = 0</string>
    						<string>vars.Appsvar = 1</string>
    						<string>vars.Gamesvar = 0</string>
    						<string>vars.Mediavar = 0</string>
    						<string>vars.Webvar = 0</string>
    						<string>vars.Settingsvar = 0</string>
    						<string>function Foldering</string>
    					</array>
    					<key>Frame</key>
    					<string>61,424,37,28</string>
    					<key>ViewType</key>
    					<string>Button</string>
    				</dict>
    				<dict>
    					<key>Actions</key>
    					<array>
    						<string>vars.Page1var = 0</string>
    						<string>vars.Appsvar = 0</string>
    						<string>vars.Gamesvar = 1</string>
    						<string>vars.Mediavar = 0</string>
    						<string>vars.Webvar = 0</string>
    						<string>vars.Settingsvar = 0</string>
    						<string>function Foldering</string>
    					</array>
    					<key>Frame</key>
    					<string>116,425,36,29</string>
    					<key>ViewType</key>
    					<string>Button</string>
    				</dict>
    				<dict>
    					<key>Actions</key>
    					<array>
    						<string>vars.Page1var = 0</string>
    						<string>vars.Appsvar = 0</string>
    						<string>vars.Gamesvar = 0</string>
    						<string>vars.Mediavar = 1</string>
    						<string>vars.Webvar = 0</string>
    						<string>vars.Settingsvar = 0</string>
    						<string>function Foldering</string>
    					</array>
    					<key>Frame</key>
    					<string>170,422,35,35</string>
    					<key>ViewType</key>
    					<string>Button</string>
    				</dict>
    				<dict>
    					<key>Actions</key>
    					<array>
    						<string>vars.Page1var = 0</string>
    						<string>vars.Appsvar = 0</string>
    						<string>vars.Gamesvar = 0</string>
    						<string>vars.Mediavar = 0</string>
    						<string>vars.Webvar = 1</string>
    						<string>vars.Settingsvar = 0</string>
    						<string>function Foldering</string>
    					</array>
    					<key>Frame</key>
    					<string>222,422,38,35</string>
    					<key>ViewType</key>
    					<string>Button</string>
    				</dict>
    				<dict>
    					<key>Actions</key>
    					<array>
    						<string>vars.Page1var = 0</string>
    						<string>vars.Appsvar = 0</string>
    						<string>vars.Gamesvar = 0</string>
    						<string>vars.Mediavar = 0</string>
    						<string>vars.Webvar = 0</string>
    						<string>vars.Settingsvar = 1</string>
    						<string>function Foldering</string>
    					</array>
    					<key>Frame</key>
    					<string>274,424,32,34</string>
    					<key>ViewType</key>
    					<string>Button</string>
    				</dict>
    				<dict>
    					<key>Frame</key>
    					<string>0,0,320,480</string>
    					<key>URL</key>
    					<string>$ROOT/Widgets/Dock/DARKSTAR-PAGE4/Widget.html</string>
    					<key>UserInteraction</key>
    					<false/>
    					<key>ViewType</key>
    					<string>WebView</string>
    				</dict>
    			</array>
    			<key>ViewType</key>
    			<string>View</string>
    			<key>id</key>
    			<string>Media</string>
    		</dict>
    		<dict>
    			<key>Frame</key>
    			<string>0,0,320,480</string>
    			<key>Subviews</key>
    			<array>
    				<dict>
    					<key>Actions</key>
    					<array>
    						<string>vars.Page1var = 1</string>
    						<string>vars.Appsvar = 0</string>
    						<string>vars.Gamesvar = 0</string>
    						<string>vars.Mediavar = 0</string>
    						<string>vars.Webvar = 0</string>
    						<string>vars.Settingsvar = 0</string>
    						<string>function Foldering</string>
    					</array>
    					<key>Frame</key>
    					<string>12,421,28,35</string>
    					<key>ViewType</key>
    					<string>Button</string>
    				</dict>
    				<dict>
    					<key>Actions</key>
    					<array>
    						<string>vars.Page1var = 0</string>
    						<string>vars.Appsvar = 1</string>
    						<string>vars.Gamesvar = 0</string>
    						<string>vars.Mediavar = 0</string>
    						<string>vars.Webvar = 0</string>
    						<string>vars.Settingsvar = 0</string>
    						<string>function Foldering</string>
    					</array>
    					<key>Frame</key>
    					<string>61,424,37,28</string>
    					<key>ViewType</key>
    					<string>Button</string>
    				</dict>
    				<dict>
    					<key>Actions</key>
    					<array>
    						<string>vars.Page1var = 0</string>
    						<string>vars.Appsvar = 0</string>
    						<string>vars.Gamesvar = 1</string>
    						<string>vars.Mediavar = 0</string>
    						<string>vars.Webvar = 0</string>
    						<string>vars.Settingsvar = 0</string>
    						<string>function Foldering</string>
    					</array>
    					<key>Frame</key>
    					<string>116,425,36,29</string>
    					<key>ViewType</key>
    					<string>Button</string>
    				</dict>
    				<dict>
    					<key>Actions</key>
    					<array>
    						<string>vars.Page1var = 0</string>
    						<string>vars.Appsvar = 0</string>
    						<string>vars.Gamesvar = 0</string>
    						<string>vars.Mediavar = 1</string>
    						<string>vars.Webvar = 0</string>
    						<string>vars.Settingsvar = 0</string>
    						<string>function Foldering</string>
    					</array>
    					<key>Frame</key>
    					<string>170,422,35,35</string>
    					<key>ViewType</key>
    					<string>Button</string>
    				</dict>
    				<dict>
    					<key>Actions</key>
    					<array>
    						<string>vars.Page1var = 0</string>
    						<string>vars.Appsvar = 0</string>
    						<string>vars.Gamesvar = 0</string>
    						<string>vars.Mediavar = 0</string>
    						<string>vars.Webvar = 1</string>
    						<string>vars.Settingsvar = 0</string>
    						<string>function Foldering</string>
    					</array>
    					<key>Frame</key>
    					<string>222,422,38,35</string>
    					<key>ViewType</key>
    					<string>Button</string>
    				</dict>
    				<dict>
    					<key>Actions</key>
    					<array>
    						<string>vars.Page1var = 0</string>
    						<string>vars.Appsvar = 0</string>
    						<string>vars.Gamesvar = 0</string>
    						<string>vars.Mediavar = 0</string>
    						<string>vars.Webvar = 0</string>
    						<string>vars.Settingsvar = 1</string>
    						<string>function Foldering</string>
    					</array>
    					<key>Frame</key>
    					<string>274,424,32,34</string>
    					<key>ViewType</key>
    					<string>Button</string>
    				</dict>
    				<dict>
    					<key>Frame</key>
    					<string>0,0,320,480</string>
    					<key>URL</key>
    					<string>$ROOT/Widgets/Dock/DARKSTAR-PAGE5/Widget.html</string>
    					<key>UserInteraction</key>
    					<false/>
    					<key>ViewType</key>
    					<string>WebView</string>
    				</dict>
    			</array>
    			<key>ViewType</key>
    			<string>View</string>
    			<key>id</key>
    			<string>Web</string>
    		</dict>
    		<dict>
    			<key>Frame</key>
    			<string>0,0,320,480</string>
    			<key>Subviews</key>
    			<array>
    				<dict>
    					<key>Actions</key>
    					<array>
    						<string>vars.Page1var = 1</string>
    						<string>vars.Appsvar = 0</string>
    						<string>vars.Gamesvar = 0</string>
    						<string>vars.Mediavar = 0</string>
    						<string>vars.Webvar = 0</string>
    						<string>vars.Settingsvar = 0</string>
    						<string>function Foldering</string>
    					</array>
    					<key>Frame</key>
    					<string>12,421,28,35</string>
    					<key>ViewType</key>
    					<string>Button</string>
    				</dict>
    				<dict>
    					<key>Actions</key>
    					<array>
    						<string>vars.Page1var = 0</string>
    						<string>vars.Appsvar = 1</string>
    						<string>vars.Gamesvar = 0</string>
    						<string>vars.Mediavar = 0</string>
    						<string>vars.Webvar = 0</string>
    						<string>vars.Settingsvar = 0</string>
    						<string>function Foldering</string>
    					</array>
    					<key>Frame</key>
    					<string>61,424,37,28</string>
    					<key>ViewType</key>
    					<string>Button</string>
    				</dict>
    				<dict>
    					<key>Actions</key>
    					<array>
    						<string>vars.Page1var = 0</string>
    						<string>vars.Appsvar = 0</string>
    						<string>vars.Gamesvar = 1</string>
    						<string>vars.Mediavar = 0</string>
    						<string>vars.Webvar = 0</string>
    						<string>vars.Settingsvar = 0</string>
    						<string>function Foldering</string>
    					</array>
    					<key>Frame</key>
    					<string>116,425,36,29</string>
    					<key>ViewType</key>
    					<string>Button</string>
    				</dict>
    				<dict>
    					<key>Actions</key>
    					<array>
    						<string>vars.Page1var = 0</string>
    						<string>vars.Appsvar = 0</string>
    						<string>vars.Gamesvar = 0</string>
    						<string>vars.Mediavar = 1</string>
    						<string>vars.Webvar = 0</string>
    						<string>vars.Settingsvar = 0</string>
    						<string>function Foldering</string>
    					</array>
    					<key>Frame</key>
    					<string>170,422,35,35</string>
    					<key>ViewType</key>
    					<string>Button</string>
    				</dict>
    				<dict>
    					<key>Actions</key>
    					<array>
    						<string>vars.Page1var = 0</string>
    						<string>vars.Appsvar = 0</string>
    						<string>vars.Gamesvar = 0</string>
    						<string>vars.Mediavar = 0</string>
    						<string>vars.Webvar = 1</string>
    						<string>vars.Settingsvar = 0</string>
    						<string>function Foldering</string>
    					</array>
    					<key>Frame</key>
    					<string>222,422,38,35</string>
    					<key>ViewType</key>
    					<string>Button</string>
    				</dict>
    				<dict>
    					<key>Actions</key>
    					<array>
    						<string>vars.Page1var = 0</string>
    						<string>vars.Appsvar = 0</string>
    						<string>vars.Gamesvar = 0</string>
    						<string>vars.Mediavar = 0</string>
    						<string>vars.Webvar = 0</string>
    						<string>vars.Settingsvar = 1</string>
    						<string>function Foldering</string>
    					</array>
    					<key>Frame</key>
    					<string>274,424,32,34</string>
    					<key>ViewType</key>
    					<string>Button</string>
    				</dict>
    				<dict>
    					<key>Frame</key>
    					<string>0,0,320,480</string>
    					<key>URL</key>
    					<string>$ROOT/Widgets/Dock/DARKSTAR-PAGE6/Widget.html</string>
    					<key>UserInteraction</key>
    					<false/>
    					<key>ViewType</key>
    					<string>WebView</string>
    				</dict>
    			</array>
    			<key>ViewType</key>
    			<string>View</string>
    			<key>id</key>
    			<string>Settings</string>
    		</dict>
    I thought it would work but i havnt tried it yet. Basically, there are invisible icons, but on the NavBar widget u see the image. So with each press it should change them. That's what came to my mind

  12. #1570
    Theme Creator PhanaticD's Avatar
    Join Date
    Oct 2009
    Location
    NJ
    Posts
    2,152
    Thanks
    209
    Thanked 574 Times in 337 Posts

    hey fright dealer all that code i posted above is the same principle as what i was trying to tell u

  13. The Following User Says Thank You to PhanaticD For This Useful Post:

    FrightDealer (08-22-2011)

  14. #1571
    Dreamboard Porter/Themer/Coder FrightDealer's Avatar
    Join Date
    Jan 2011
    Location
    var/Library/Dreamboard
    Posts
    1,287
    Thanks
    952
    Thanked 750 Times in 442 Posts

    Quote Originally Posted by PhanaticD View Post
    hey fright dealer all that code i posted above is the same principle as what i was trying to tell u
    OHHHH, i see what you are getting at now, so i wouldn't have to have all the 0's and all those lines. Makes sense, alright.

  15. #1572

  16. #1573
    Dreamboard Porter/Themer/Coder FrightDealer's Avatar
    Join Date
    Jan 2011
    Location
    var/Library/Dreamboard
    Posts
    1,287
    Thanks
    952
    Thanked 750 Times in 442 Posts

    Quote Originally Posted by christoforo View Post
    Is there any part of the wiki that explains current.plist files.
    No, and there is no need for them, its just a copy of the Theme.plist. You can just delete it

  17. #1574
    My iPhone is a Part of Me christoforo's Avatar
    Join Date
    Feb 2008
    Posts
    538
    Thanks
    52
    Thanked 37 Times in 27 Posts

    Then how do you get a theme to save it's settings even after it is closed.

  18. #1575
    Theme Creator PhanaticD's Avatar
    Join Date
    Oct 2009
    Location
    NJ
    Posts
    2,152
    Thanks
    209
    Thanked 574 Times in 337 Posts

    lol i will maybe add it to the FAQs. basically current.plist is generated by dreamboard with changes made to it such as changed icons or variables, this is to protect the integrity of the theme plist you created.

    the reason it is a ***** is because if you update your theme plist and dont manually update ur current.plist as well it will use the old current.plist instead of ur new theme plist with new code

  19. #1576
    My iPhone is a Part of Me christoforo's Avatar
    Join Date
    Feb 2008
    Posts
    538
    Thanks
    52
    Thanked 37 Times in 27 Posts

    Quote Originally Posted by PhanaticD View Post
    lol i will maybe add it to the FAQs. basically current.plist is generated by dreamboard with changes made to it such as changed icons or variables, this is to protect the integrity of the theme plist you created.

    the reason it is a ***** is because if you update your theme plist and dont manually update ur current.plist as well it will use the old current.plist instead of ur new theme plist with new code
    so does dreamboard make its own current.plist because mine never has. i have made my own current.plist but setting the theme file to mobile and the current.plist to mobile dosnt change anything.

  20. #1577
    Theme Creator PhanaticD's Avatar
    Join Date
    Oct 2009
    Location
    NJ
    Posts
    2,152
    Thanks
    209
    Thanked 574 Times in 337 Posts

    if you go into edit mode it makes one or if you change variables and do savevar.

    ur theme folder has to be mobile

  21. The Following User Says Thank You to PhanaticD For This Useful Post:

    christoforo (08-22-2011)

  22. #1578
    My iPhone is a Part of Me korbyn8495's Avatar
    Join Date
    Sep 2010
    Location
    New Mexico
    Posts
    657
    Thanks
    186
    Thanked 245 Times in 144 Posts

    Quote Originally Posted by PhanaticD View Post
    yea but its not going to save anything.. what you ahve to do is at the end of each of those actions set the variable for whichever one is open and do savevar, and then in the onload function check which one and then perform that command

    this variable will be changed and each time written into the current plist, but for now u set default as 1, so first use will be analog view showing
    Code:
    <key>Variables</key>
    <dict>
        <key>switchervar</key>
        <integer>1</integer>
    </dict>
    this is ur function that executes when u press a button, if u have problems following what happens here let me kno
    Code:
    <key>Functions</key>
    <dict>
         <key>switcher</key>
         <array>
              <string>vars.switchervar = 1 ? views.Analog.alpha = 1.0 : views.Analog.alpha = 0.0</string>
              <string>vars.switchervar = 2 ? views.LCD.alpha = 1.0 : views.LCD.alpha = 0.0</string>
              <string>vars.switchervar = 3 ? views.BlueLCD.alpha = 1.0 : views.BlueLCD.alpha = 0.0</string>
    
             <!--important-->
             <string>savevar</string>
         </array>
    </dict>

    this here is the whole reason u have the savevar, so the next time u respring or open the theme is has the view showing that u had last time from those three
    Code:
    <key>Onload</key>
    <array>
            <string>function switcher</string>
    </array>

    and here are your three buttons
    Code:
    <dict>
    	<key>Actions</key>
    	<array>
                    <string>vars.switchervar = 1</string>
    		<string>function switcher</string>
    	</array>
            <key>Frame</key>
            <string>0,0,320,73</string>
    	<key>Image</key>
    	<string>$ROOT/Images/Apps/Analog Clock.png</string>
    	<key>ViewType</key>
    	<string>Button</string>
    </dict>
    <dict>
    	<key>Actions</key>
    	<array>
    		<string>vars.switchervar = 2</string>
    		<string>function switcher</string>
    	</array>
            <key>Frame</key>
            <string>0,73,320,73</string>
    	<key>Image</key>
    	<string>$ROOT/Images/Apps/LCD Clock.png</string>
    	<key>ViewType</key>
    	<string>Button</string>
    </dict>
    <dict>
    	<key>Actions</key>
    	<array>
    		<string>vars.switchervar = 3</string>
    		<string>function switcher</string>
    	</array>
            <key>Frame</key>
            <string>0,146,320,73</string>
    	<key>Image</key>
    	<string>$ROOT/Images/Apps/Blue LCD Clock.png</string>
    	<key>ViewType</key>
    	<string>Button</string>
    </dict>
    Where are the if/then/elses?

  23. #1579
    Theme Creator PhanaticD's Avatar
    Join Date
    Oct 2009
    Location
    NJ
    Posts
    2,152
    Thanks
    209
    Thanked 574 Times in 337 Posts

    in the switcher function

  24. #1580
    My iPhone is a Part of Me korbyn8495's Avatar
    Join Date
    Sep 2010
    Location
    New Mexico
    Posts
    657
    Thanks
    186
    Thanked 245 Times in 144 Posts

    Quote Originally Posted by PhanaticD View Post
    in the switcher function
    Ok, going to try it now will let you know in about 5 minutes

    Quote Originally Posted by PhanaticD View Post
    in the switcher function
    I keep getting a black screen when I add the switcher function. I didn't the first line of it though because I already have other functions, can I not put it under those?

    Quote Originally Posted by korbyn8495 View Post
    Ok, going to try it now will let you know in about 5 minutes



    I keep getting a black screen when I add the switcher function. I didn't the first line of it though because I already have other functions, can I not put it under those?
    Never mind I fixed the black screen

    Alright, now the default widget doesnt load, and the buttons aren't doing anything.
    Posting my code now...

    OnLoad Actions
    Code:
    <key>Onload</key>
    	<array>
    		<string>function switcher</string>
    	</array>
    Switcher Function
    Code:
    <key>switcher</key>
    		<array>
    			<string>vars.switchervar = 1 ? views.Analog.alpha = 1.0 : views.Analog.alpha = 0.0</string>
    			<string>vars.switchervar = 2 ? views.LCD.alpha = 1.0 : views.LCD.alpha = 0.0</string>
    			<string>vars.switchervar = 3 ? views.BlueLCD.alpha = 1.0 : views.BlueLCD.alpha = 0.0</string>
    			<string>savevar</string>
    		</array>
    Widget Buttons
    Code:
    <dict>
    							<key>Actions</key>
    							<array>
    								<string>vars.switchervar = 1</string>
    								<string>function switcher</string>
    							</array>
    							<key>FrameHeight</key>
    							<integer>73</integer>
    							<key>FrameWidth</key>
    							<integer>320</integer>
    							<key>FrameX</key>
    							<integer>0</integer>
    							<key>FrameY</key>
    							<integer>0</integer>
    							<key>Image</key>
    							<string>$ROOT/Images/Apps/Analog Clock.png</string>
    							<key>ViewType</key>
    							<string>Button</string>
    						</dict>
    						<dict>
    							<key>Actions</key>
    							<array>
    								<string>vars.switchervar = 2</string>
    								<string>function switcher</string>
    							</array>
    							<key>FrameHeight</key>
    							<integer>73</integer>
    							<key>FrameWidth</key>
    							<integer>320</integer>
    							<key>FrameX</key>
    							<integer>0</integer>
    							<key>FrameY</key>
    							<integer>73</integer>
    							<key>Image</key>
    							<string>$ROOT/Images/Apps/LCD Clock.png</string>
    							<key>ViewType</key>
    							<string>Button</string>
    						</dict>
    						<dict>
    							<key>Actions</key>
    							<array>
    								<string>vars.switchervar = 3</string>
    								<string>function switcher</string>
    							</array>
    							<key>FrameHeight</key>
    							<integer>73</integer>
    							<key>FrameWidth</key>
    							<integer>320</integer>
    							<key>FrameX</key>
    							<integer>0</integer>
    							<key>FrameY</key>
    							<integer>146</integer>
    							<key>Image</key>
    							<string>$ROOT/Images/Apps/Blue LCD Clock.png</string>
    							<key>ViewType</key>
    							<string>Button</string>
    						</dict>
    Clock Widgets
    Code:
    <dict>
    			<key>Alpha</key>
    			<real>0</real>
    			<key>ClipToBounds</key>
    			<true/>
    			<key>FrameHeight</key>
    			<integer>480</integer>
    			<key>FrameWidth</key>
    			<integer>320</integer>
    			<key>FrameX</key>
    			<integer>0</integer>
    			<key>FrameY</key>
    			<integer>0</integer>
    			<key>HorizontalScrollBars</key>
    			<false/>
    			<key>Subviews</key>
    			<array>
    				<dict>
    					<key>FrameHeight</key>
    					<integer>480</integer>
    					<key>FrameWidth</key>
    					<integer>320</integer>
    					<key>FrameX</key>
    					<integer>0</integer>
    					<key>FrameY</key>
    					<integer>0</integer>
    					<key>URL</key>
    					<string>$ROOT/Widgets/English-Clock/Clock.html</string>
    					<key>ViewType</key>
    					<string>WebView</string>
    				</dict>
    			</array>
    			<key>Toggled</key>
    			<false/>
    			<key>ToggledInteraction</key>
    			<false/>
    			<key>UserInteraction</key>
    			<false/>
    			<key>id</key>
    			<string>Analog</string>
    		</dict>
    		<dict>
    			<key>Alpha</key>
    			<real>0</real>
    			<key>ClipToBounds</key>
    			<true/>
    			<key>FrameHeight</key>
    			<integer>480</integer>
    			<key>FrameWidth</key>
    			<integer>320</integer>
    			<key>FrameX</key>
    			<integer>0</integer>
    			<key>FrameY</key>
    			<integer>0</integer>
    			<key>HorizontalScrollBars</key>
    			<false/>
    			<key>Subviews</key>
    			<array>
    				<dict>
    					<key>FrameHeight</key>
    					<integer>480</integer>
    					<key>FrameWidth</key>
    					<integer>320</integer>
    					<key>FrameX</key>
    					<integer>0</integer>
    					<key>FrameY</key>
    					<integer>0</integer>
    					<key>URL</key>
    					<string>$ROOT/Widgets/English-Blue-LCD/Clock.html</string>
    					<key>ViewType</key>
    					<string>WebView</string>
    				</dict>
    			</array>
    			<key>Toggled</key>
    			<false/>
    			<key>ToggledInteraction</key>
    			<false/>
    			<key>UserInteraction</key>
    			<false/>
    			<key>id</key>
    			<string>BlueLCD</string>
    		</dict>
    		<dict>
    			<key>Alpha</key>
    			<real>0</real>
    			<key>ClipToBounds</key>
    			<true/>
    			<key>FrameHeight</key>
    			<integer>480</integer>
    			<key>FrameWidth</key>
    			<integer>320</integer>
    			<key>FrameX</key>
    			<integer>0</integer>
    			<key>FrameY</key>
    			<integer>0</integer>
    			<key>HorizontalScrollBars</key>
    			<false/>
    			<key>Subviews</key>
    			<array>
    				<dict>
    					<key>FrameHeight</key>
    					<integer>480</integer>
    					<key>FrameWidth</key>
    					<integer>320</integer>
    					<key>FrameX</key>
    					<integer>0</integer>
    					<key>FrameY</key>
    					<integer>0</integer>
    					<key>URL</key>
    					<string>$ROOT/Widgets/English-LCD/Clock.html</string>
    					<key>ViewType</key>
    					<string>WebView</string>
    				</dict>
    			</array>
    			<key>Toggled</key>
    			<false/>
    			<key>ToggledInteraction</key>
    			<false/>
    			<key>UserInteraction</key>
    			<false/>
    			<key>id</key>
    			<string>LCD</string>
    		</dict>
    Vars
    Code:
    <key>Variables</key>
    	<dict>
    		<key>switchervar</key>
    		<string>1</string>
    		<key>AppsGrid</key>
    		<string>0</string>
    		<key>AppsGridClose</key>
    		<string>0</string>
    		<key>EvoGrid</key>
    		<string>0</string>
    		<key>FavoriteGrid</key>
    		<string>0</string>
    		<key>GameGrid</key>
    		<string>0</string>
    	</dict>
    Last edited by korbyn8495; 08-22-2011 at 09:34 PM.

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts