Skip to content

OpenECS 0.1.0

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 09 Oct 04:19
· 1046 commits to main since this release
40af407

This is the first release of OpenECS, an empty shell for editor-style programs. You arrange panels, and plugins decide what each panel shows and does. A preset names the plugins and the arrangement, so one program can become a paint tool, a text editor or the front end of a game engine.

This is an early release. It works and you can build on it, but the plugin interface will still change before 1.0.

What you can do

Arrange panels.

  • Split, group into tabs, maximize and lock panels.
  • Drag a tab or a panel's grip to dock it beside another panel or along an edge of the window.
  • Switch between the preset's workspaces, each with its own arrangement.
  • Right-click a tab or a grip for the panel's menu.

Use the keyboard.

  • Press Alt+W to see the core's keys, then press one: arrows move the focus, Shift with an arrow moves the panel, M maximizes, X closes, 1 to 0 switch workspaces.
  • Press S after Alt+W to save the session to a file, or O to open a saved one.

Keep your work.

  • When you quit, OpenECS remembers the arrangement and every panel's state, and brings them back next time.
  • Files named on the command line, as in OpenECS strokes.txt, go to the preset's open function.
  • Put your own presets in ~/.config/openecs/presets/ and start one by its name: OpenECS --preset paint.

Change the settings.

  • Put your own settings and keys in ~/.config/openecs/settings.lua.
  • They override the preset's, and the preset's override the plugins' and the core's defaults in resources/settings.lua.

Write plugins in C or Lua.

  • Plugins add panel types, functions other plugins can call, events, settings, keys and saved state.
  • They also get timers, the clipboard, file and message dialogs, and drag and drop of data between panels, including files and text from other applications.
  • Lua plugins start with local ecs = require("ecs"). A Lua plugin can have several files: require("parts.shapes") loads parts/shapes.lua from the plugin's folder.
  • Plugins can list the presets and saved sessions with ecs.session.presets() and ecs.session.sessions(), and switch to one with ecs.session.openPreset or ecs.session.open.
  • Every function a key can run is also a function of that module, such as ecs.layout.maximize().
  • The archive's include/ folder holds OpenECS.h for C plugins and ecs.lua for your editor: add it to workspace.library in your plugin's .luarc.json, and VS Code completes and checks your calls to ecs.

Try the example. The default preset opens two example plugins that do the same things:

  • sketch_c in C and sketch_lua in Lua, so you can compare their code.
  • Draw with the mouse, and change the brush size with the wheel.
  • Copy and paste strokes with Ctrl+C and Ctrl+V, also between the two plugins.
  • Hold Shift and drag to carry a canvas's strokes to another canvas, and drop a strokes file from your file manager onto a canvas.

What is not there yet

  • Panels cannot move into a window of their own yet, and there are no popups and no GPU-drawn panels.
  • There is no settings window and no launcher yet.
  • Only Linux on x86_64 has a build. It needs glibc 2.38 or later, such as Ubuntu 24.04 or Fedora 39.

What will break

Nothing breaks, because this is the first release. Until 1.0, a new minor release, such as 0.2.0, may change the plugin interface, the ecs module, the names of settings and keys, or the format of presets and sessions. Its description will say what changed and how to update your plugins and files.

Downloads

  • openecs-0.1.0-linux-x86_64.tar.gz: the program with SDL's libraries, its plugins and presets, the plugin interface, and the licenses. Unpack it and run OpenECS.
  • openecs-0.1.0-source.tar.gz: the source with every library it uses. GitHub's own "Source code" archives leave the libraries out, so use this one to build.
  • SHA256SUMS: checksums of the archives.

OpenECS is under the zlib license.