For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 8 replies, 4 voices, and was last updated 13 years, 12 months ago by
Max87.
-
AuthorPosts
-
Max87MemberHi 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.August 7, 2012 at 6:53 pm #328880
support-octavioMemberHi 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?August 7, 2012 at 9:29 pm #328884
DavidPhillipsMemberty
August 8, 2012 at 8:19 am #328899
Max87MemberHi Octavio,
I figured out how to animate widgets(by using jquery’s .animate({“left”: “+=300px”}, “fast”);)I sent you email with my project.
Thanks.August 8, 2012 at 1:55 pm #328918
Unknown AuthorParticipantI 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
August 8, 2012 at 4:33 pm #328926
Max87MemberHi 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.August 8, 2012 at 5:43 pm #328929
support-octavioMemberHi Max,
Yes, I’ve received your files and have it in my todo list. Will follow up tomorrow with my findings.
August 14, 2012 at 6:51 pm #329187
support-octavioMemberHi 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#p9427I’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.
August 14, 2012 at 7:08 pm #329188
Max87MemberHi 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. -
AuthorPosts
