Giter Club home page Giter Club logo

luadui's Introduction

LuaDui

LuaDui 0.9 version

LuaDui是duilib的lua扩展,使用LuaDui库你可以使用lua脚本来处理所有的界面逻辑,当业务逻辑或需求变化时通过修改lua脚本很容易满足需求,达到界面和业务逻辑的分离,LuaDui可以根据业务需求引入其他第三方库来使用如:lsqlite,luasocket等提高开发效率。

LuaDui库使用luajit2.0脚本引擎,高效而稳定。

LuaDui使用pugixml替换了duilib自带的xml解析器,提高了创建控件时xml解析效率。

LuaDui使用C++库LuaObj导出duilib接口到lua环境中,你也可以根据需求导出你的特定接口给lua环境。

LuaDui提供可供输入以及接受lua脚本进行运行的调试界面,使得开发调试更便捷。

LuaDui可以使用zbstudio编辑lua脚本,支持lua脚本高亮显示,支持LuaDui库接口自动补全功能,支持lua脚本的端点调试功能。

HelloWorld

main.lua中

local wnd=UI.CWindowUI.create({res="helloWorld.xml",name="HelloWorld"})
wnd:centerWindow()
wnd:showWindow(true,true)

helloWorld.xml中

<?xml version="1.0" encoding="UTF-8"?>
<Window caption="0,0,0,30" size="600,480">
<VerticalLayout bkcolor="#ff019bd0" inset="1,1,1,1" bordersize="1" bordercolor="#FF010000">
    <HorizontalLayout height="30">
    	<Control/>
        <Button name="closebtn" width="47" height="22" text="Close" bkcolor="#ffef2f4d">
			<Event>
				<click>
					this:window():close()
				</click>
			</Event>
		</Button>
    </HorizontalLayout>
	<Text text="Hello World!" align="center"/>
</VerticalLayout>
</Window>

luadui's People

Contributors

daviyang35 avatar zentelfong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.