Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Image Links Question (Sugarcane)

edited April 2015 in Help! with 1.x
So I've been messing around with my UI stuff lately and I have another issue where I want to make my image a link.
I'm using this to display my image:

<img id="HomeUI" src="Images/UI/Home.png"="39px" height="39px">

BUT I'm not sure how I can use it as a link since the documentation only mentions:

[img[image name][Passage name]]

Which doesn't work with the above (or I just don't know how to do it so that it does lol). Thanks in advance for any help :)

Comments

  • I assume you're referring to a passage link.  Also, your HTML markup is erroneous (i.e. this bit: src=&quot;Images/UI/Home.png&quot;=&quot;39px&quot;).

    Wiki image markup w/ passage link:
    [img[image_url][passage_title]]
    HTML image markup w/ passage link:
    <a data-passage="passage_title"><img src="image_url"></a>
    The latter gives you the option to specify other attributes, obviously.  So, something akin to your example would look like (I've assumed the extra =&quot;39px&quot; was supposed to be width):
    <a data-passage="passage_title"><img id="HomeUI" src="Images/UI/Home.png" width="39px" height="39px"></a>
    Additionally, I believe that the vanilla story formats (of which Sugarcane is one) should also allow you to do the following (though I dislike directly mixing markup languages):
    [[<img id="HomeUI" src="Images/UI/Home.png" width="39px" height="39px">|passage_title]]
  • TheMadExile wrote:

    snip

    Yeah I saw that error the moment I posted that lol, should've edited it here but I didn't think it mattered too much to the question at hand. Sorry about that tho lol. Moving on, what you suggested worked ([[<img id="HomeUI" src="Images/UI/Home.png" width="39px" height="39px">|passage_title]]).

    Really didn't think it would allow that, but I guess you learn something new every day. Thanks for the help!  8)
Sign In or Register to comment.