GithubHelp home page GithubHelp logo

alexcoder04 / sol-lib Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 119 KB

GUI application framework for TI-nspire calculators

Home Page: https://alexcoder04.github.io/sol-docs/

License: GNU General Public License v3.0

Lua 100.00%
framework gui gui-application gui-framework gui-library library lua nspire nspired-lua python

sol-lib's Introduction

Sol

GUI application framework for the TI-nspire. This repository is the "home" of the project and contains all the Lua library code.

Here you can find the docs.

Here you can find an example application. And here is another one.

These are the tools needed for developing applications with Sol.

Why?

Building GUI applications for TI-nspire using the stock Lua library from TI is a pain, this is an attempt to make it easier and more comfortable.

Organized

Your code has to be organized, no "throwing everything into one Lua file" anymore! All the parts are then assembled and built into one .tns file by sol-tools. These tools are also downloading the required sol-lib Lua library version for you.

  • init.lua runs at start
  • app.lua is your main file where you define the app logic
  • solproj.yml is where app metadata goes
  • components are re-usable blocks of your GUI which can inherit from base components, written in YAML
  • res contains any non-code resources, e. g. images and data.
  • and so on...

How to Use

Check out the Quickstart guide.

Roadmap / TODOs

  • more base components
    • input field
    • canvas
    • list
    • sublayouts/containers
    • tabs
    • console
    • game canvas using physics api
    • 2D-editor using nspire's built-in editor
  • colorful components
  • click events
  • component focus (tabbing, highlighting selected)
  • menu api
  • paint hook, use raw gc functions
  • persistent data storage
  • message box components imitating nspireOS's UI
    • basic support
    • theming
    • global theming through MyLib
  • redraw on timer only if one of update functions returns true
  • schedule to do something at next redraw/update / imitating sleep function
    • do at next update
    • do in specific time interval
  • light/dark mode switching
  • improve InputField component
    • data types (e. g. int)
    • labels

Naming

Lua (portuguese for "moon") -> Sol (portuguese for "sun")

Credits

  • The dialog library module is based on the nSpaint GUI engine written by Loïc Pujet.

sol-lib's People

Contributors

alexcoder04 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.