前端框架选型是企业提升开发效率与用户体验的关键因素
631
2022-10-12
Ngui 一个GUI的排版显示引擎和跨平台的GUI应用程序开发框架(ngui点击必须挂碰撞盒吗)
ngui
Ngui is a cross-platform (Android/iOS) front-end development framework. The core code is written in C++. The bottom layer is based on OpenGL drawing. The upper layer implements a streamlined typesetting engine and a js/JSX running environment. The goal is to develop GUI applications on this basis, which can take both development speed and operation efficiency into account.
Only iOS and Android systems are supported for the time being, this does not include AndroidTV, because TV applications are very different from mobile applications From here, Go API Index can go to API Documents Index
Build and install nxp
Build must dependent Xcode / JDK1.7 / Android-SDK-23 / NDK / python / nodejs / yasm. Setting environment variable JAVA_HOME and ANDROID_HOME
Compile and install nxp make install, It takes a long time.
use nxp tools create project.
first create an empty file directory, then execute in the directory
nxp init
export ios xcode project nxp export ios
Simple Examples
This is a simple program to display Hello world on the screen
import { GUIApplication, Root } from 'ngui'new GUIApplication().start(
You can get a more detailed Examples
Start Usage
If you've never used ngui before, you can start from here and build your ngui program step by step.
Install nxp
First, you need to install the toolkit provided by nxp
Install nxp using nodejs npm Open Terminal and execute the following command:
# shell$ sudo npm install -g nxp
Running nxp requires dependency on nodejs and python2.7 And now do not support the windows system, you need to use it under mac
Create new project
Create a new nxp project using the following shell command:
# shell$ mkdir myproject$ cd myproject$ nxp init
Build project
This step compresses and packages the JavaScript code and resource files inside the project, If this is a new project, you can skip this step and go directly to the next step
# shell$ nxp build
Export project
This step exports Xcode or Android Studio project,because you eventually publish the program that be a .apk or .ipa
# shell# export xcode ios project$ nxp export ios# export android studio project$ nxp export android
After exporting the project, next you can open it using Xcode and Android Studio
nxp test http server
nxp provides a test http server, each time you change the js or jsx code, you don't have to reinstall every time.
Execute the following code to start it:
# shell$ nxp
Downloads
Examples demo Android APK Install package Project Source code from Github
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~