Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.
Thread: Creating Themes With Dreamboard
06-15-2011, 09:21 AM #581
ok so i understand putting that in. but but here do i put all that,
and yes i got it. but i have canceled that theme, doing a new one.cydia.myrepospace.com/Real-AngryPIG/
06-15-2011, 11:37 AM #582
ah okay, uhm if u want it all the time, put it in ur OnLoad, but its a bug the statusbar reappers after locking or opening an app so u might want to add a button somewhere that hides the status bar
06-15-2011, 11:43 AM #583
06-15-2011, 11:45 AM #584
06-15-2011, 11:46 AM #585
so the button can only be used for that? cant have anything else to it?cydia.myrepospace.com/Real-AngryPIG/
06-15-2011, 11:48 AM #586
06-15-2011, 11:50 AM #587
i see, yes thats have i have, no spaces.
06-15-2011, 11:51 AM #588
06-15-2011, 11:53 AM #589
the all work fine. the button i have it one also does other stuff and its it all but no hide statusbarcydia.myrepospace.com/Real-AngryPIG/
06-15-2011, 12:18 PM #590
here's a short demo of some extreme DreamBoarding
making dragable objects magnetic
06-15-2011, 12:46 PM #591
06-15-2011, 12:56 PM #592
(the statusbar is still set to hidden even if it reappears so you need to show it before you can hide it again)
<dict> <key>Actions</key> <array> <string>showstatusbar</string> <string>hidestatusbar</string> </array> <key>FrameHeight</key> <integer>60</integer> <key>FrameWidth</key> <integer>60</integer> <key>FrameX</key> <integer>0</integer> <key>FrameY</key> <integer>0</integer> <key>Image</key> <string>$ROOT/Images/statusbarhide.png</string> <key>ViewType</key> <string>Button</string> <key>id</key> <string>statusBarHide</string> </dict>
06-15-2011, 05:48 PM #593
say you insert a scrollview. In that view you load a dynamicview.
Then you save it and remove the scrollview.
if you open the scrollview and insert the dynamic view again it will not appear because it has not been removed.
so fist remove the subviews then remove the scrollview...
I use this pretty often in Lopeard
06-15-2011, 08:54 PM #594
lopeard i hope u post in this thread more thanks for helpin.
@guimenez it depends, if you want the same button to hide and to show it then yea it would be a if/else with a another variable. so make a variable called myvar and set it equal to 0 and then this would be ur buttons action
<string>get.vars.myvar = 0 ? views.myview.alpha = 1.0, vars.myvar = 1 : views.myview.alpha = 0.0, vars.myvar = 0</string>
so basically this says that every time u run this action it will hide the view if the variable myvar is 1 and show it if its 0. this is useful if u want to use something else besides just the one button, say if u wanted another view to pop up but also to close this one if it was open, u'd just run the function (you should put it in a function if different buttons use the same commands)
06-16-2011, 12:23 AM #595
In the endroid theme, how can I make it so that the dock will go down on page 3 as it does on page 1?
Or how do I stop it from "going down" on page 1?
Managed to stop it from "going down"
But to make it to do like in my first question would be much cooler :P
I'm also trying to put a twitter widget on page 1 and a google widget on page 3 without success help please?
Last edited by kakadua; 06-16-2011 at 01:54 AM.
06-16-2011, 02:24 AM #596
<dict> <!-- this checks the coordinate of the scrollview if it is greater than 320 or equal it does the first action greater than 320 or equal means anything starting from page two up. --> <key>if</key><array><string>get.views.ScrollView.contentOffsetX gt= 320</string></array> <!-- this is what should happen if the coordinate of the ScrollView is 320px or higher in this case it moves the clock wrapper to the same coordinate as the offset of the Scrollview is --> <key>then</key><array><string>views.Clock_Wrapper.x = get.views.ScrollView.contentOffsetX</string></array> <!-- if the coordinate is lower than 320 we need a different action. Lower than 320 means we are on page 1. --> <key>else</key><array> <!-- the dock will move according to the offset of the scrollview. as soon as you go to page 1 it will move down. some math is used to make it animate while scrolling. --> <string>views.dock.y = get.views.ScrollView.contentOffsetX / 320 * -65 + 480</string> <string>views.Clock_Wrapper.x = 320</string> </array> </dict>
06-16-2011, 02:31 AM #597
06-16-2011, 02:32 AM #598
I think I understand (kind of, lol). I'll give it a try. Thank you Lopeard
Lol, I'm really failing xD >.<
Last edited by kakadua; 06-16-2011 at 03:23 AM.
06-16-2011, 02:42 AM #599
dragable objects and magnetism | Snow Lopeard OS IV
I basically made 3 buttons. and a scrollview
the scrollview moves one button (magnet) the second button is the steel cup.
the third button (lopeard icon) is just a dreamboard link.
if coordinate y of the magnet is coordinate y of the cup plus 80 (strength of the magnet.. if you take 100 it will be harder to pull the two apart and the cup will stick to the magnet from a further distance) then the coordinate y of the cup will be the same as the coordinate of the magnet minus 64 (height of the cup)
.. so this is actually magnetism.
You can also make a minus and plus pole to make objects move away from a magnet.
you can make strong or soft magnets.
<key>Actions</key> <array> <string>views.button1.x = get.views.button1Mover.contentOffsetX / -1 + 320</string> <string>views.button1.y = get.views.button1Mover.contentOffsetY / -1 + 400</string> <string>views.button1Mover.x = get.views.button1Mover.contentOffsetX / -1 + 320</string> <string>views.button1Mover.y = get.views.button1Mover.contentOffsetY / -1 + 400</string> <dict> <key>if</key><array><string>get.views.button1.y lt= get.views.button2.y + 80</string><string>get.views.button1.y gt= get.views.button2.y - 20</string><string>get.views.button1.x lt= get.views.button2.x + 80</string><string>get.views.button1.x gt= get.views.button2.x - 20</string></array> <key>then</key><array><string>views.button2.x = get.views.button1.x</string><string>views.button2.y = get.views.button1.y - 64 animated:2.0</string></array> <key>else</key><array></array> </dict> </array>
06-16-2011, 03:00 AM #600
Hey Lopeard, for the lockscreen:
Heres my idea:
You enter your password through the normal keyboard, function savepass (somehow save digits to passvar)savevar.
if passvar = 1234 (example password)
then function unload lockscreen (unload LockView)
else function wrongpass (insertview wrongpass)
Is my logic correct?