Skip to content

Commit

Permalink
Change wording and update version
Browse files Browse the repository at this point in the history
  • Loading branch information
TheHorscht committed May 23, 2022
1 parent 00b8ab6 commit f89ccd9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion EZGUI.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--[[
EZGUI v0.1.1
EZGUI v0.1.4
]]

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

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ezgui",
"version": "0.1.3",
"version": "0.1.4",
"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 }",
"main": "build.js",
"directories": {
Expand Down

0 comments on commit f89ccd9

Please sign in to comment.