Skip to content

Commit e3122fa

Browse files
committed
Added metadata to penguingui.lua
1 parent 18be171 commit e3122fa

5 files changed

Lines changed: 10 additions & 4 deletions

File tree

PenguinGUI.modinfo

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"metadata": {
77
"author": "PenguinToast",
88
"version": "0.2",
9-
"description": "Extensible object-oriented GUI library in LUA for canvases"
9+
"description": "Extensible object-oriented GUI library in LUA for canvases",
10+
"support_url": "http://penguintoast.github.io/PenguinGUI"
1011
}
1112
}

hooks/pre-commit

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ BEGIN {inLibrary=0;}
2222
}
2323
}' penguingui/Util.lua)
2424

25-
echo -e "-- This script contains all the scripts in this library, so you only need to\n-- include this script for production purposes." > penguingui.lua
25+
grep "author\|version\|support" PenguinGUI.modinfo | sed 's/^\s*\(.*\),*$/-- \1/' > penguingui.lua
26+
echo -e "-- This script contains all the scripts in this library, so you only need to\n-- include this script for production purposes." >> penguingui.lua
2627
for filename in $scripts; do
2728
printf "\n" >> penguingui.lua
2829
for i in {1..80}; do printf "-" >> penguingui.lua; done

penguingui.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
-- "version": "Beta v. Enraged Koala",
2+
-- "author": "PenguinToast",
3+
-- "version": "0.2",
4+
-- "support_url": "http://penguintoast.github.io/PenguinGUI"
15
-- This script contains all the scripts in this library, so you only need to
26
-- include this script for production purposes.
37

penguingui/testobject/ptguitestobject.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ end
1111

1212
function onInteraction(args)
1313
local interactionConfig = entity.configParameter("interactionConfig")
14-
14+
1515
local development = true
1616
if development then
1717
local consoleScripts = PtUtil.library()

penguingui/testobject/ptguitestobject.object

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
}
2121
],
2222

23-
"scripts" : [ "/penguingui/Util.lua", "ptguitestobject.lua" ],
23+
"scripts" : ["/lib/inspect.lua", "/penguingui/Util.lua", "ptguitestobject.lua"],
2424
"scriptDelta" : 15,
2525

2626
"animation" : "/objects/wired/switch/switchtoggle.animation",

0 commit comments

Comments
 (0)