Skip to content

Commit f89ccd9

Browse files
committed
Change wording and update version
1 parent 00b8ab6 commit f89ccd9

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

EZGUI.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--[[
2-
EZGUI v0.1.1
2+
EZGUI v0.1.4
33
]]
44

55
local _ModTextFileGetContent = ModTextFileGetContent

changelog.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
v0.1.4:
12
- Improve Slider text display to keep the Slider at constant width, which is now set by its style.width instead of as an attribute
2-
The Slider will now always keep the size specified by style.width.
3-
- Slider: Added 'precision' attribute that controls how many digits after the period are shown.
3+
- Slider: Added 'precision' attribute that controls how many digits after the period are shown (value is still saved untruncated)
44
- Add CSS properties 'align_self_horizontal' and 'align_self_vertical'
5-
- Add CSS property 'color'
5+
- Add CSS property 'color', for setting text color for instance
66
- Add 'if' conditional rendering of elements: <Layout if="render_layout">
77
- Add 'show' conditional rendering of elements: <Layout show="layout_visible">
88

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ezgui",
3-
"version": "0.1.3",
3+
"version": "0.1.4",
44
"description": "You make an XML file that contains your GUI definition, just like single file components in Vue.js.\r A root Layout element is mandatory.\r ```xml\r <Layout>\r <Button @click=\"a_method('with a string arg')\">Click me!</Button>\r <Text forEach=\"element in collection\">{{ element }}</Text>\r </Layout>\r <Style>\r Layout {\r direction: vertical;\r padding: 2;\r }\r Layout > Button {\r margin: [button_margin]; // Can also databind to CSS properties!\r }\r </Style>\r ```\r Then in your init.lua you can render this GUI:\r ```lua\r -- Dofiling EZGUI.lua returns a table with an init function that you need to call and pass in the path to the library, which in turn will return a render function you can call to render a GUI\r local render_gui = dofile_once(\"mods/your_mod_id/lib/EZGUI/EZGUI.lua\").init(\"mods/your_mod_id/lib/EZGUI\")\r -- This is the data context table, here lives your data that you can bind to\r local data = {\r collection = { \"Bloo\", \"Blaa\", \"Blee\" },\r button_margin = 5,\r -- Methods defined here can be used in @click, arg1 is the data_context itself, arg2 the element that was clicked, arg3 the first custom arg\r a_method = function(data, element, arg1)\r print(arg1)\r end,\r }",
55
"main": "build.js",
66
"directories": {

0 commit comments

Comments
 (0)