Login / Registrieren
DE EN FR ES IT CZ
Zurück Nach oben

Update 5.3.7 1251 released

  • #1, by SimonS 11 hours ago Zitieren
    Changelog :
    - TextFXs can now have hoverable and clickable text, use the h tag to implement this:
    <h#f00>test</h#f00>
    </div>
    Tag can be anything except transitions, they might not look as expected.
    With hl you can add a lua callback on over or hc on click. Example:
    <hc clickText><hl hoverText>test</hl></hc>
    </div>
    You can then e.g. show tooltips, example code:
    local tpos, ttext
    function hoverText(pos, text, hover)
      if hover then
        tpos = pos
        ttext = "Tooltip"
      else
        tpos = nil
      end
    end
    function clickText(pos, text)
      print(text)
    end
    function tooltipDraw()
      if tpos ~= nil then
        graphics.font = Fonts[1]
        local dim = graphics.fontDimension(ttext)
        local x = tpos.x + tpos.width / 2 - dim.x / 2 - 5
        local y = tpos.y - dim.y - 10
        local w = dim.x + 15
        local h = dim.y + 10
        graphics.drawBox(math.floor(x),y,w,h,0,0.7)
        graphics.drawFont(ttext,math.floor(x)+5,y + 5,1)
      end
    end
    graphics.addDrawFunc("tooltipDraw()", 1)

    - The option to render ttfs at fullsize now shows the text at the correct position and the kerning is identical, also works now for movie subtitles
    - Language option in config.ini: the setting is now restored on savegame load, so be careful if you have a different system for setting language, once you use the lua function or have Language in your config.ini this is activated
    Also there is now SpeechLanguage for the audio language.
    Example:
    system.configSet("Language","DE|DE")
    system.configSet("SpeechLanguage","DE|DE")

    - Recompiled ffmpeg with libvpx and libdav1d, so av1 should now work and alpha vp9 is available on all platforms
    - Also added ass and srt for subtitles
    - Reworked the plugin area and added some of the published plugins there, if you want your plugin there ping me
    - Updated the Masking plugin, which can now be used for particle systems on objects
    - Added a FFD Plugin there based on the rotateanim script in the luadocs
    - Folder open status for scenes is now saved
    - Select object dialog fixed and search added
    - Fix: Config get fullscreen is inverted
    - Fix: TextFX is sometimes cut off if at the end of the line
    - Fix: Character doesn't turn if destination position is already reached
    - Fix: Mac player increases size on every run and stops working
    - Fix: Spine removed check for 3.8.75
    - Disabled animation mixing for spine, because it was not working anymore
    - Mac Ctrl+Click now right clicks
    - Added Action Text Offset field
    - Added Selectable field for characters to disable mouse interaction for a character:
    Characters["name"].Selectable = false
    - Added Random Bus blend mode, which means the current sound will be faded out over the length of the delay
    - Windows Export from Mac and Linux can now change the icon and manifest
    - Mac Export from Linux now works