Creating software processes using the Lae software development engine

Source: Internet
Author: User
Tags lua

Creating software processes using the Lae software development engine

First, the use of Lae production software interface

II. Preparation of business logic

Lae officially provides The LUA Editor as a tool for writing business logic (users can also write business logic using the C + + language).

The basic processes of the program include:

1. header file

The header file is a file that contains some of the standard interfaces that are provided by the official, calling it to be able to use these standard interfaces in the program.

Lae provides a number of standard interfaces, and the header file provides more convenient interfaces, and the purpose of using the header file is to invoke the official extension interfaces, simplifying the program and making it easier to understand.

Lae Official interface has the following major categories of features:

(1) Access, control, UI structure, controls, properties.

(2) Network interface

(3) Database interface (local sqlite database)

(4) Configuration file interface (text format)

(5) File system interface for accessing system directory files

(6) Sound interface for playing sound, sound function, etc.

(7) Animation interface, make it easier for users to achieve a variety of interface effects animation.

(8) Dynamic access to the system platform interface, such as access to the Android System program with user code provided by the function, play the role of the LUA language and users to extend the bridge between the code.

2. Binding Events

The "event" in Lae refers to the action or behavior entered by the user, including mouse clicks, keyboard input, and so on. A binding event is the process of associating UI events with user code.

3. Specific functions

The entire business logic code is implemented in an event-driven manner by invoking the LUA standard interface, the official interface, the extension interface, and by writing code to implement the required software functionality.

Third, resource packaging

The purpose of resource packaging is to encrypt and facilitate the user to organize and publish the project files, and to reduce the process of network request effectively.

The steps for resource packaging include:

1, Lae in the user-created project directory will automatically create a folder called package , through the Lae provided in the "Copy file list" function to the relevant file list (including UI files, picture files,LUA Code, font files, configuration files, etc.) to the folder.

2. Open the " Package Tool" window provided by Lae, select "Add File" in the pop-up menu and select "Packages " in thepopup window. Directory of all files, click on "Open" to complete the file selection to be packaged, right-click to select "save Lxz", enter the name you want to save as (default : project name ) . Lxz) saved successfully.

Iv. release of the platform

Because different platforms run differently, the libraries they rely on are officially provided with the corresponding dynamic libraries and link libraries, which can be used to invoke compiled links in each platform. The basic process is:Lae runtime + Project resource file (user data)+ User's extension code, compiled, can be packaged into the appropriate platform of the running software.

Lae also provides tools to directly run user-created software on every platform without compiling:laevm software, where you can directly see the basic operational effects of the software being produced.

Creating software processes using the Lae software development engine

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.