User Tag List

Results 1 to 6 of 6

Thread: String ontop of Bitmap Button

  1. #1
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)iOS Export Module (Steam)

    Join Date
    Jan 2015
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    String ontop of Bitmap Button

    Dear folks,

    I'm trying to display a String ontop of a Bitmap button, but when I run (or compile) the frame, the string is always behind the bitmap button.

    I tried to make 2 Layers, but even with the string in the top layer it will not be displayed. I also tried to move the string to top and the bitmap button to bottom at frame start (or always), but it's not working.

    Any suggestions on this? Help would be greatly appreciated.

    Regards
    Kurt

  2. #2
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    3,016
    Mentioned
    21 Post(s)
    Tagged
    2 Thread(s)
    Hi Kurt,

    The button object is a windows-object so it is always drawn on a kind of separate 'draw' routine if you will. Windows Objects like Button/Lists etc. will always be drawn to the top.

    N.B You can change the button string from inside the events at runtime...
    Want to learn Clickteam Fusion 2.5?




  3. #3
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)iOS Export Module (Steam)

    Join Date
    Jan 2015
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Dear Danny,

    thank you for your quick answer.

    I'm not quite sure, if I completely understand what you mean with "You can change the button string from inside the events at runtime..." --> I'm rather new to CTF 2.5 and didn't use former versions.

    I've attached an example of what I mean --> maybe you can show me, how I can achieve what I need. Or shorter, if it's possible, or not.

    As background info: I'd like to use a lot of bitmap push buttons and I'm reading the text out of an array. It should be multi-lingual, so when you change language in-game all the button texts change to the selected language.

    Thank you in advance!

    Regards
    Kurt


    example.mfa

  4. #4
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module

    Join Date
    Dec 2013
    Posts
    156
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could make the center area of the button transparent with the help of the alpha channel and have a backdrop below the button of the same color. Then add the string on top of that backdrop. If done right, it will look like the text is right on the button.

    However there are two restrictions:

    1. The regular button does not work this way and it will be rendered as black, you have to use the "Button CS" extension.
    2. This extension does not work in Direct3D mode and you will need to switch to standard runtime.

    See example: alpha channel button.mfa

    Will this help?

  5. #5
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)iOS Export Module (Steam)

    Join Date
    Jan 2015
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Dear Vaxx,

    thank you alot for your help! Anyway I found a way around, better said, after sniffing deeper into the forums, I found someone, who found a possible way around.

    I made my button an active object with changing frames on mouse button press. It works for me and the rest should be easy.

    Thank you for your help, I attached the example, if ever someone other stumbles over this thing.

    Case closed, roger and out!

    Regards
    Kurt

    example_solved.mfa

  6. #6
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module

    Join Date
    Dec 2013
    Posts
    156
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Fine for me, doing this for ages but using active picture object and external files. I thought you needed to rely on the button object for your project.

    Cheers

Similar Threads

  1. Bitmap Push Button
    By Allrounder in forum HTML5 Export Module 2.5
    Replies: 2
    Last Post: 22nd June 2014, 05:27 AM
  2. Beta 23 - Bitmap Button and others
    By Fernando in forum Android Export Module Version 2.0
    Replies: 0
    Last Post: 16th March 2012, 02:17 PM
  3. Bitmap Button Display Issues
    By StingRay in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 24th January 2012, 08:27 AM
  4. Bitmap Button Issue
    By Hawanna in forum SWF/Flash Export Module Version 2.0
    Replies: 2
    Last Post: 20th January 2012, 11:51 AM
  5. Bitmap push button glitches
    By pikzilla in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 15th April 2010, 01:02 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •