1. AngryPIG's Avatar
    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/
    2011-06-15 04:21 PM
  2. PhanaticD's Avatar
    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
    2011-06-15 06:37 PM
  3. AngryPIG's Avatar
    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
    i just made it a button, after respring it hid the statusbar,
    locked the phone, unlocked it was back, fair enough.
    pressed the button again statusbar did not hide.
    is that the bug?
    cydia.myrepospace.com/Real-AngryPIG/
    2011-06-15 06:43 PM
  4. PhanaticD's Avatar
    it should take place immediately, make sure in ur buttons actions its just

    <string>hidestatusbar</string>
    2011-06-15 06:45 PM
  5. AngryPIG's Avatar
    so the button can only be used for that? cant have anything else to it?
    cydia.myrepospace.com/Real-AngryPIG/
    2011-06-15 06:46 PM
  6. PhanaticD's Avatar
    you can make it do whatever you want, im just saying thats the action to hide the status bar
    2011-06-15 06:48 PM
  7. AngryPIG's Avatar
    i see, yes thats have i have, no spaces.
    =/
    cydia.myrepospace.com/Real-AngryPIG/
    2011-06-15 06:50 PM
  8. PhanaticD's Avatar
    do any other buttons work? because now someitmes if u have a bug dreamboard will stop all buttons from doing anything
    2011-06-15 06:51 PM
  9. AngryPIG's Avatar
    the all work fine. the button i have it one also does other stuff and its it all but no hide statusbar
    cydia.myrepospace.com/Real-AngryPIG/
    2011-06-15 06:53 PM
  10. Lopeard's Avatar
    here's a short demo of some extreme DreamBoarding
    making dragable objects magnetic

    2011-06-15 07:18 PM
  11. guimenez's Avatar
    U need to use views.viewname.alpha = 0.0 to hide it And views.viename.alpha = 1.0 to show it. To start off hidden or showing add an alpha key to ur views properties <key>Alpha</key><real>0.0</real>

    Pig u hafta have that action run. Did u ever get my email? I know its not wat u wanted but its some kinda start
    Thanks PhanaticD

    But i just need to put this code in action button? or a need to use if and else
    views.viename.alpha = 1.0
    views.viewname.alpha = 0.0

    thanks
    2011-06-15 07:46 PM
  12. Lopeard's Avatar
    i just made it a button, after respring it hid the statusbar,
    locked the phone, unlocked it was back, fair enough.
    pressed the button again statusbar did not hide.
    is that the bug?
    you need to make the button actions like this
    (the statusbar is still set to hidden even if it reappears so you need to show it before you can hide it again)
    HTML Code:
    <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>
    2011-06-15 07:56 PM
  13. Lopeard's Avatar
    you need to make the button actions like this
    (the statusbar is still set to hidden even if it reappears so you need to show it before you can hide it again)
    HTML Code:
    <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>
    btw ... this also counts for views..
    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
    2011-06-16 12:48 AM
  14. PhanaticD's Avatar
    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)
    2011-06-16 03:54 AM
  15. kakadua's Avatar
    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?


    EDIT
    Managed to stop it from "going down"
    But to make it to do like in my first question would be much cooler :P

    EDIT2
    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; 2011-06-16 at 08:54 AM.
    2011-06-16 07:23 AM
  16. Lopeard's Avatar
    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?


    EDIT
    Managed to stop it from "going down"
    But to make it to do like in my first question would be much cooler :P

    EDIT2
    I'm also trying to put a twitter widget on page 1 and a google widget on page 3 without success help please?
    HTML Code:
    <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>
    so if you want the dock to move down on page 3 too you would integrate another action and calculate the position of the Dock when you go there.
    Lopeard the best OS X Snow Leopard theme for your iPhone
    Click here for more info
    2011-06-16 09:24 AM
  17. kooris's Avatar
    here's a short demo of some extreme DreamBoarding
    making dragable objects magnetic

    WOW, how did you do it?
    2011-06-16 09:31 AM
  18. kakadua's Avatar
    I think I understand (kind of, lol). I'll give it a try. Thank you Lopeard

    EDIT:
    Lol, I'm really failing xD >.<
    Last edited by kakadua; 2011-06-16 at 10:23 AM.
    2011-06-16 09:32 AM
  19. Lopeard's Avatar
    WOW, how did you do it?
    look here for the source code: 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.

    HTML Code:
              <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>
    Lopeard the best OS X Snow Leopard theme for your iPhone
    Click here for more info
    2011-06-16 09:42 AM
  20. kooris's Avatar
    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?
    2011-06-16 10:00 AM
2,599 ... 2028293031324080 ...
LINK TO POST COPIED TO CLIPBOARD