Skip to content

Releases: blurymind/Yarn

hotfixes and img tags for relative local files

04 Feb 19:05
e59a770
Compare
Choose a tag to compare

This releases a number of regressions that were introduced with the slew of new features, affecting some files with specific connection syntax. For that reason, if you are on 0.3.5 it is highly recommended to upgrade to this, as it fixes:
InfiniteAmmoInc#91
InfiniteAmmoInc#92
InfiniteAmmoInc#93

There is also a new feature! Img tags now not only work, but they also work with local files - relative paths of local files! Yarn will automatically detect if the text between img tags is a file that exists relative to where your yarn file is and if so - it will load it!

So for example if you have myEditedYarnFile.json and myImage.png in the same folder, yarn will render it in the bbcode previewer when you write [img]myImage.png[/img]. If it can't find the file there - it will try to render it as a http link. So online files also work!
To top it all up, a new command will appear in the context menu, whenever you call it between img tags- allowing you to just select the image from your folder - no need to type.
yarn-localimages-choose

Whenever the images are rendered in nodes, they will off course be shrunk to maximum size of 128px
ezgif-1-e90c462274a2

0.3.5 - electron - rich text styling toolbar, spellchecking, autocompletion and more!

21 Jan 19:32
Compare
Choose a tag to compare

This is a particularly big release as it adds a number of very useful features to aid the writing process.
From:
InfiniteAmmoInc#80

50045609-b646e900-008d-11e9-9f17-2ac6b01908f6

  • Updated bondage.js to its newest version, adding new features to the story tester/debugger
  • bbcode open/close tag and "[[" autocompletion in text editor
  • preview of bbcode tag effects and goto in trimmed nodes
  • optional spell checking
  • optional autocompletion
  • optional preview bbcode in editor mode
  • a color picker (using spectrum.js) to set font color in bbcode
  • bbcode toolbar and refactor of the counter
  • new context menu
  • word autocompletion now works
  • misspelled word suggestions in the new context menu - if you have selected a misspelled word
  • common word suggestions as you type
  • nodelink suggestions as you type in the right places
  • Night mode - Toggling it will invert all the light colors which the editor currently uses
  • Added a context menu command to visit other nodes via their links in the editor and even create new ones
  • Added a command to go back to the previous edited node. If there is no previous - save and close the current one
  • the toolbar is now more compact and the counter can be collapsed
  • nspell is now used for spellchecking and suggestions and typo.js has been removed

This also adds the feature of showing tags and title of active nodes:
bondagejsnodedata2

As well as fixes some code that can make easier to embed in other electron software

Tags and node titles can be used to trigger events in game, such as change of avatars or animations during cutscenes

Also updating bondage.js after I made some changes:
hylyh/bondage.js#39 (comment)
hylyh/bondage.js#40
hylyh/bondage.js#41

Mac builds kindly contributed by @julsam