facebook

Buttons hiding

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #328850 Reply

    Max87
    Member

    Hi guys,
    I was wondering, that if I put in Design center button over button, and in JS I hide the first button(bottom), that when I use .show(“slow”), sometimes it shows the button moved from original possition.
    F.e I want to show upper button for all the time when player plays my game, but when he answers last question, trigger hides current button and shows bottom button. But bottom button is moved.
    Also, is there any ways how to animate widgets?(f.e checkboxes and texts flies into screen)
    Thanks for help.

    #328880

    Hi Max,

    Could you share a design file where we can view this behavior?

    >Also, is there any ways how to animate widgets?(f.e checkboxes and texts flies into screen)
    Can you give us more details about this?

    #328884

    ty

    #328899

    Max87
    Member

    Hi Octavio,
    I figured out how to animate widgets(by using jquery’s .animate({“left”: “+=300px”}, “fast”);)

    I sent you email with my project.
    Thanks.

    #328918

    Unknown Author
    Participant

    I use the same technique to make it appear that the text in a button is changing.

    I think nothing’s moving, you just don’t have your buttons lined up exactly.

    -1TC

    #328926

    Max87
    Member

    Hi 1thinchip,
    I’m almost sure, that both buttons are on same place, I sent guys from support my files and they can confirm my design.
    Anyway, thanks for reply.

    Octavio, have you received my email?
    Thanks.

    #328929

    Hi Max,

    Yes, I’ve received your files and have it in my todo list. Will follow up tomorrow with my findings.

    #329187

    Hi Max87,

    As far I could see, the buttons are in the same place. But please see this reply to a similar issue:
    http://www.genuitec.com/support-genuitec/viewtopic.php?p=9427#p9427

    I’ve talked with dev team, and they suggest to avoid the use of hide/show functions because you can achieve undesired results using them. As I said I couldn’t replicate your issue, I had similar results but no the expected, they are looking into the problem and a workaround while we have a fix is use single button and change its text based on the state of global flag.

    #329188

    Max87
    Member

    Hi Octavio,
    thanks for help, but I can’t rewrite only text in buttons – I use hide() and show(), because buttons calls different functions and can’t be visible at the same time.
    When you answer the questions, visible button checks your answer and gives you next question. If all questions is answered, buttons change and new visible buttons transfers you to results page.
    Similar function is with other two buttons – reset button deletes data in cache, stops the time, etc and button under it runs window.reload function.
    Is there an option how to rewrite assigned action to onClick for button? For example when I have condition A, onClick runs Function A, if I have condition B, I rewrite button text and it’s onClick action, so it runs Function B?
    Thanks.

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: Buttons hiding

You must be logged in to post in the forum log in