Skip to content

cty012/corn-ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Corn-UI: Official UI library for Corn Game Engine

License: MIT Version

Corn-UI allows developers to create user interfaces for their games using web-like languages.

Features

  • Compatible with Windows, macOS, and Linux
  • XML parsing for UI widgets
  • Corn-CSS specifically designed for styling UI widgets
  • JavaScript (ES6) support for dynamic effects

Prerequisites

  • MSVC (Windows) / MinGW-w64 13.1.0 (Windows) / Clang (macOS) / GCC (Linux)
  • Corn Game Engine
  • (Optional) CMake: Only if building from the source. Make sure it is in PATH.
  • (Optional) Conan: Only if building from the source. Make sure it is in PATH.
  • (Optional) JSON for Modern C++: Only if building from the source (installed in conan).
  • (Optional) libxml2: Only if building from the source (installed in conan).
  • (Optional) QuickJS: Only if building from the source (installed in conan).
  • (Optional) GoogleTest: Only if building the test cases (installed in conan).

Getting Started

To begin, clone the repository to your local machine using:

git clone https://github.com/cty012/corn-ui.git
cd corn-ui

Prerequisites

Ensure you have CMake and Conan installed and added to your PATH. Check their respective websites for installation and setup instructions.

Build Instructions

  1. Follow the instructions to build and install the Corn Game Engine. Retrieve the library in the dist folder and place it in the deps of this project.

  2. Run the following command, replacing <profile> with your own Conan profile:

    conan install . -pr=<profile> -of=conan/<profile> -b=missing
    cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=conan/<profile>/conan_toolchain.cmake
    cmake --build build --config Release

    After building, the compiled dynamic library will be available in the build directory.

Installation

Install the library by running the following command in the project root:

cmake --install build

This will install the library into the dist folder. For both debug and release builds, repeat the command with the respective build folders.

Documentation (currently unavailable)

The documentation of this project is generated using Doxygen. To generate the documentation, install Doxygen and run the following command:

cd docs && doxygen

Acknowledgments

About

A web-based UI framework for the Corn Game Engine

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages