Lide Shell is a project that allow us to install libraries, execute scripts and create or search repositories of lua libraries.
git branch: master |
build status 0.2.0 |
---|---|
Tests executed with Windows 10 x86 binaries | |
Tests executed with Ubuntu 14.04 x64 binaries |
First install lide shell from github:
Note: Lide shell is a command line interpreter that makes sure that you have installed the correct versions of each library.
$ mkdir lide && cd lide
$ git clone https://github.com/lidesdk/shell.git --recursive
$ export LIDE_PATH=$PWD
- If you prefer automatic install on your system you can download the last stable version of lide shell installer: from here.
- Create a file
main.lua
.
lide = require 'lide.widgets.init'
local Form = lide.classes.widgets.form
local Button = lide.classes.widgets.button
local MessageBox = lide.widgets.messagebox
form1 = Form:new { Name = 'form1',
Title = 'Window Caption'
};
button1 = Button:new { Name = 'button1', Parent = form1,
PosX = 10, PosY = 30, Text = 'Click me!',
};
button1.onClick : setHandler ( function ( event )
lide.widgets.messagebox 'Hello world!'
end );
form1:show(true);
With the above code we are creating a new form and putting a button inside it at position (10, 30), clicking inside the button a message "Hello World" is displayed.
- Run the file
main.lua
with the following command:
$ lide main.lua
This is all you need to start building applications, should be noted that these instructions work similarly to Windows or GNU/Linux.
If you want to know more please read our official framework's documentation:
- Lide Framework 0.2 on Read the docs
Lide Shell is a project founded in 2016 by Hernán Darío Cano (@dcanoh) for private purposes, today is accessible to the public.
Lide Shell is currently active and developing, today is maintained by (@dcanoh).
Lide is licensed under (The GNU General Public License).
Copyright © 2018 Hernán Dario Cano.