User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13

Thread: How to do a text database to be read in while e.g. mouse is over a button?

  1. #1
    Clicker Fusion 2.5Fusion 2.5 Mac
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    zip2kx's Avatar
    Join Date
    Jun 2015
    Posts
    845
    Mentioned
    18 Post(s)
    Tagged
    0 Thread(s)

    How to do a text database to be read in while e.g. mouse is over a button?

    Hello!

    I want to show text when the mouse is hovering certain active objects. First I thought i could store text in an array file and read in different cells depending on the active object and make a string object show that next. But i dont know how to fill it with text or even if that logic works.

    is there any other object i should be using or am i just missing something?

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    Chrille's Avatar
    Join Date
    Jul 2006
    Posts
    389
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Was it something like this you had in mind?


    File: exampleArray2String.mfa

  3. #3
    Clicker Fusion 2.5Fusion 2.5 Mac
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    zip2kx's Avatar
    Join Date
    Jun 2015
    Posts
    845
    Mentioned
    18 Post(s)
    Tagged
    0 Thread(s)
    Thank you!
    That's what i had in mind. Two follow up questions:

    a) is there anyway to change text outside fusion? e.g. if you want to write and paste text outside the app, sort of like an ini file i guess?
    b) I would also like to show an active object behind the text (like a box to make the text easier to read), is there a way to make the box scale to the text width?

  4. #4
    Clicker Fusion 2.5Fusion 2.5 Mac
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    zip2kx's Avatar
    Join Date
    Jun 2015
    Posts
    845
    Mentioned
    18 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Chrille View Post
    Was it something like this you had in mind?


    File: exampleArray2String.mfa
    Thank you!
    That's what i had in mind. Two follow up questions:

    a) is there anyway to change text outside fusion? e.g. if you want to write and paste text outside the app, sort of like an ini file i guess?
    b) I would also like to show an active object behind the text (like a box to make the text easier to read), is there a way to make the box scale to the text width?

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    Chrille's Avatar
    Join Date
    Jul 2006
    Posts
    389
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    a) Well, some objects support reading from regular text files. The INI object for example, as mentioned, and also the Edit Box Object and the List Object. The array object uses its own format, if you want to manage array data/content it's best to make your own array editor in fusion.

    b) Sure, but since the string object measures its width based on its bounding box rather than the length of the actual text, you'll need to calculate that yourself. I included an updated example:

    File: exampleArray2String II.mfa


    Now that think about it though, you could probably use the Active System Box Object as a text box. That way you'd get even better control over its appearance.

  6. #6
    Clicker Fusion 2.5Fusion 2.5 Mac
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    zip2kx's Avatar
    Join Date
    Jun 2015
    Posts
    845
    Mentioned
    18 Post(s)
    Tagged
    0 Thread(s)
    wow! Thank you so much man!

    I havent tried active system box, i'll try it but your example is great!

    edit: weirdly when i try to copy you it fills out the entire X scale instead of going the string edge.

  7. #7
    Clicker Fusion 2.5Fusion 2.5 Mac
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    zip2kx's Avatar
    Join Date
    Jun 2015
    Posts
    845
    Mentioned
    18 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Chrille View Post
    a) Well, some objects support reading from regular text files. The INI object for example, as mentioned, and also the Edit Box Object and the List Object. The array object uses its own format, if you want to manage array data/content it's best to make your own array editor in fusion.

    b) Sure, but since the string object measures its width based on its bounding box rather than the length of the actual text, you'll need to calculate that yourself. I included an updated example:

    File: exampleArray2String II.mfa


    Now that think about it though, you could probably use the Active System Box Object as a text box. That way you'd get even better control over its appearance.
    I attached my file, maybe you can see why the background box gets stuck at the edge?
    Attached files Attached files

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    Chrille's Avatar
    Join Date
    Jul 2006
    Posts
    389
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmm. Hard to say what might be wrong without seeing your code. If you can upload the file I could take a look at it tomorrow.

  9. #9
    Clicker Fusion 2.5Fusion 2.5 Mac
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    zip2kx's Avatar
    Join Date
    Jun 2015
    Posts
    845
    Mentioned
    18 Post(s)
    Tagged
    0 Thread(s)
    thank you, i uploaded it in the previous post if you want to check

  10. #10
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    Chrille's Avatar
    Join Date
    Jul 2006
    Posts
    389
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I had a look at it this morning and I see the problem. It's because there are multiple lines in the string. I'll have another look when I get home later today to try and adjust it.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. How to use Read Button State?
    By MasochisticGamer in forum Android Export Module 2.5
    Replies: 1
    Last Post: 1st December 2015, 12:54 PM
  2. Replies: 2
    Last Post: 2nd July 2015, 05:48 AM
  3. Read text from URL
    By GamesterX23 in forum HTML5 Export Module 2.5
    Replies: 8
    Last Post: 29th April 2014, 05:53 AM
  4. Beta 33 [Crash] when using a 'read button state' event in the first frame
    By colej_uk in forum Android Export Module Version 2.0
    Replies: 1
    Last Post: 28th August 2012, 11:54 AM
  5. Read-Along Text
    By astrospoon in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 1st August 2008, 04:25 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
  •