#FaeLib - General-Purpose Utility Library

1 messages · Page 1 of 1 (latest)

shell marsh
#
  • Minecraft-Style Tags
  • Colour Management
  • Hover-Tooltip Management
  • InfoQueue Tooltip Management
  • Events
  • Card Buttons (buy, sell)
  • Godot-Style Tweening
  • Card Movement
stuck trench
#

I like the sound of this, I'll look at this again some other day :3

shell marsh
#

+ Data-driven tags mymod/faelib/tags/my_tag.json and mymod/faelib/tags/my_tag.lua

sturdy horizon
#

This is sweet, excellent work. I like the data-oriented stuff.

shell marsh
#
  • Fade-in-out text rendering
  • FaeLib.FrameTask merged into FaeLib.Task chains
  • mouse press/release functions
  • rendering pre/post events
  • mouse events
#

FaeLib.Builtin.Events.RenderPost:register(function()
    love.graphics.setShader(nil)
    local width, height = love.graphics.getDimensions()
    local fishing_area = HimejoshiMod.fishing_minigame.fishing_area
    local catching_area = HimejoshiMod.fishing_minigame.catching_area
    love.graphics.setColor(0, 0, 0, 0.5)
    love.graphics.rectangle("fill", width/2-(128+32),height/2-(256+32), (128+32)*2,(256+32)*2, 16, 16, 2)
    love.graphics.setColor(0.5, 0.5, 0.5, 1)
    love.graphics.rectangle("fill", width/2-(128+28),height/2-(256+28), (128+28)*2,(256+28)*2, 16, 16, 1)
    love.graphics.draw(fishing_area.background_image, fishing_area.background_image_quad, width/2-(128+28), height/2-(256+28), 0, fishing_area.scale,fishing_area.scale)
end)
FaeLib.Builtin.Events.MousePressed:register(function(x,y,button)
    local width, height = love.graphics.getDimensions()
    FaeLib.APIs.Drawing.text_ease_alpha_centered("Clicked!", width/2, height/2, HEX("db7991"), 0.1, 1, 0.5)
end)