Merchant released

Just released my second game in Twine. It can be played here: Merchant by Stephen Big

It’s set in an alternate 1950s USA and follows a traveling merchant couple who try to make enough money to buy a house in Los Angeles.

Big thanks to @DeusIrae , @HAL9000 , and @FriendlyGhost for the help back when I was writing it.

4 Likes

I clicked on it to try it out, after after the “Begin” link, I do get the first page, in English, but the dialog appears to be Hungarian. Am I doing something wrong? Is this expected?

You can hover over it and get an English translation.

1 Like

Got it. It might be helpful to give people a heads-up on this; I had assumed there was some setting for “language you want the game in” and that I had missed it.

Yeah, sorry ‘bout that, I didn’t realise I should’ve mentioned it in the technical details.

1 Like

I tried playing on mobile, and there was no way of displaying the translation. Would be nice if clicking/tapping opened it as well.

3 Likes

Yeah, I agree. Unfortunately the tooltip thing I used only had the hovering possibility, from what I remember…

Something like this should work:
(It could probably use some styling and possibly being made more robust)

<<set _c = _contents>>
<span @title="_args[0]" style="border-bottom: 1px dotted #ccc; 
cursor: help; position: relative;"><<linkreplace _c>>_args[0]<</linkreplace>></span>
<</widget>>
1 Like

If it helps, I used Nijiokun’s simple tooltip from the SugarCube Widgets:

<<widget "tip" container>>
   <span @title="_args[0]" style="border-bottom: 1px dotted #ccc; cursor: help; position: relative;">_contents</span>
<</widget>>

Seems to match your code suggestion, but I dunno if there’s a command that can make it tappable/clickable as well?

Check it again. My version is based on yours but adds a <<linkreplace>> that does that.

You’re right, thanks a lot! I ended up adding that to the code and reuploading the .zip. :slight_smile:

2 Likes

I checked on mobile and it can now be played. Thank you, and thanks to Amber!

2 Likes