github carenalgas/popochiu v2.2.1

3 hours ago

Popochiu v2.2.1

Popochiu 2.2.0 was a big and pretty stable release: nothing came back to bite us, which left us free to spend this release doing what we should have done right after it: clearing the backlog that had been sitting in the tracker since the 2.1.x line. 2.2.1 is made of fixes, and mostly of the quiet kind: music that refused to play the second time you asked for it, a tap on a touchscreen that advanced a dialog twice or not at all, the editor that fell over the moment you opened a sub-resource menu.

Apparently boring stuff unless you have been affected by them. Well, all of them are gone. On top of that we have retired the methods that have been sitting deprecated since 2.1, which is the one part of this release that can break a project: if you are still on 2.1.x, read the Final Notes before you upgrade. The bug tracker is empty as we write this; if something new turns up, we will not sit on it until the next feature release, as we did the last time.

Fixes

Documentation

The cross-links between documentation pages have been rebuilt to point at their Markdown source,
which is the only form MkDocs rewrites. Every internal link now resolves whatever base path the
site is served from, be it /popochiu/ on GitHub Pages or a local preview (thanks @cidneyhamilton).
Dead targets and stale anchors were retargeted along the way, and the rules for writing those links
are written down in the contributing conventions, so the next broken one is easier to avoid. The
theme images came out of it lighter (and correct!) too: a few hundred kilobytes of editor detritus
shaved off the logo, the mascot and the home banner. By the way, thanks to @drbbgh for noticing
an issue with the font in the very docs homepage!

Final Notes

  1. Coming from 2.2.0? There is nothing to do. No migrations to run, no changes to the save
    format or to the GUI templates. Copy the addon over and carry on.
  2. Coming from 2.1.x? You must upgrade to 2.2.0 first. 2.2.1 removes the methods that have been
    deprecated since 2.1: a script still calling one of them will fail to load so migrations would not
    run and this will leave you with a broken project. The migration scripts in 2.2.0 rewrite your scripts to call the new methods, that is why you must upgrade to 2.2.0 first.
  3. Touchscreen projects: keep Emulate Mouse From Touch enabled. Popochiu now reads mouse
    events only, and lets Godot or the OS normalise touch into them. Leave the setting on (the
    default) on touch devices: with it off, touch does nothing at all and Popochiu says so in the
    output panel. On desktop, the setting can stay off exactly as before. A new Touchscreen support
    page in the game setup chapter explains all of this out; the feature remains tagged experimental,
    and device testing of the fix is still the one thing we would like help with.
  4. Audio workarounds can be retired. If music that would not replay was patched over with timers,
    polling, or a forced restart somewhere else in your code, that code is no longer doing anything.
    Drop it and let the finished signal do its job.
  5. One deprecation, no breakage. If you extended a GUI template and called
    PopochiuUtils.is_click_or_touch_pressed(), is_click_or_touch(), is_double_click_or_double_tap()
    or get_click_or_touch_index(), know that they no longer account for touch at all.
    The old names still work and warn once in the output; the replacements are is_click_pressed(),
    is_click(), is_double_click() and get_click_button_index(). The proxies will be gone in 2.3.

Don't miss a new popochiu release

NewReleases is sending notifications on new releases.