mirror of
https://github.com/nucular/sfxrlua.git
synced 2024-12-24 18:44:20 +00:00
LoveFrames doesn't support 0.10.0
This commit is contained in:
parent
66cae33975
commit
0593330ebe
@ -13,13 +13,15 @@ To run the demo application you first need to download
|
|||||||
git submodule update --init
|
git submodule update --init
|
||||||
love demo
|
love demo
|
||||||
```
|
```
|
||||||
|
Note: Due to LoveFrames only supporting LÖVE 0.9.x, this dependency is inherited
|
||||||
|
by the demo. A move to a new GUI framework is pending.
|
||||||
|
|
||||||
Example usage
|
Example usage
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
These examples should play a randomly generated sound.
|
These examples should play a randomly generated sound.
|
||||||
|
|
||||||
With [LÖVE](http://love2d.org) 0.9.x:
|
With [LÖVE](http://love2d.org):
|
||||||
```lua
|
```lua
|
||||||
local sfxr = require("sfxr")
|
local sfxr = require("sfxr")
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
function love.conf(t)
|
function love.conf(t)
|
||||||
t.version = "0.9.0"
|
t.version = love._version:match("0%.9%.%d+") or "0.9.x"
|
||||||
t.window.width = 640
|
t.window.width = 640
|
||||||
t.window.height = 600
|
t.window.height = 600
|
||||||
t.window.title = "sfxr.lua Demo"
|
t.window.title = "sfxr.lua Demo"
|
||||||
end
|
end
|
||||||
|
@ -372,7 +372,7 @@ function createActionButtons()
|
|||||||
:Center()
|
:Center()
|
||||||
:SetVisible(false)
|
:SetVisible(false)
|
||||||
:SetModal(false)
|
:SetModal(false)
|
||||||
|
|
||||||
local frl = lf.Create("columnlist", fr)
|
local frl = lf.Create("columnlist", fr)
|
||||||
:SetPos(5, 30)
|
:SetPos(5, 30)
|
||||||
:SetSize(390, 235)
|
:SetSize(390, 235)
|
||||||
@ -647,7 +647,7 @@ function love.load()
|
|||||||
require("loveframes")
|
require("loveframes")
|
||||||
lf = loveframes
|
lf = loveframes
|
||||||
lf.util.SetActiveSkin("Orange")
|
lf.util.SetActiveSkin("Orange")
|
||||||
|
|
||||||
love.graphics.setBackgroundColor(200, 200, 200)
|
love.graphics.setBackgroundColor(200, 200, 200)
|
||||||
|
|
||||||
if not love.filesystem.isDirectory("sounds") then
|
if not love.filesystem.isDirectory("sounds") then
|
||||||
|
Loading…
Reference in New Issue
Block a user