TextBox problem

0 favourites
  • 7 posts
From the Asset Store
Forget about default textbox restrictions, you can create sprites atop of the textbox
  • I've got a layout of a map and certain places on the map have a text box over it. These TB's are enabled, background set to transparent and border set to dashed to indicate 'clickable' locations on the map.

    I can not get anything to trigger via:

    mouse - cursor is over TBmap and condition left mouse clicked

    mouse - click on object TBmap

    it works with a sprite instead of a TB, but it is much harder to make a border on a sprite than a TB

    I believe it is because of the inherent properties that a TB once clicked is supposed to let you type. Can I get past this?

    My main goal is to just have a nice highlighted border that can easily be resized to show where you can click. Suggestions?

    Thanks

  • You may need to use

    For each Textbox

    If Mouse is overlapping Textbox >>> Do something

    Have you a CAPX I can play with, and see if I can fix ?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I think you'd be better off using nine-patch to create a border.

    If you'd give me the css settings you use for the border I could create teh nine-patch object in 10 seconds. (just making a screenshot, deleting th bg-colour and cropping it)

  • I haven't gotten a dropbox yet. Thanks for the replies :)

    9 patch huh? The border is something like "3px dashed black".

    Would that resize for different areas, boxes, rectangles?

  • 9-patch

  • Ahh yes, that does work very well actually. I couldn't figure out how to make a dashed line easily so used a black border and the picking with mouse works now. Figured out the middle to transparent and looks good.

    Thank you!

  • Here's a dashed line example:

    <img src="https://dl.dropboxusercontent.com/u/48563442/9patchdash.png" border="0" />

    and settings:

    <img src="https://dl.dropboxusercontent.com/u/48563442/9patchdashproperties.png" border="0" />

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)