Skip to content
/ widget Public
forked from pragtical/widget

Widgets for Pragtical editor.

License

Notifications You must be signed in to change notification settings

jgmdev/widget

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pragtical Widgets

A widgets library that can be used by plugin writers to more easily implement interactive UI elements. The plugin leverages Pragtical View system and provides ready to use components to reduce code duplication for stuff that most of the time is the same and simplify the process of writing your own GUI controls.

Some Features

  • dragging
  • floating view
  • on hover event
  • basic onclick event
  • tooltip by using status view
  • detection of widgets that don't need update or drawing which lowers cpu usage
  • child widget coordinates calculations relative to the parent widget

Components currently provided by this plugin are:

You can also write your own re-usable components and share them back for everyone to benefit by opening a Pull Request!

Installation

The library is a git submodule of the Pragtical editor so no additional steps are neccesary to install.

Usage

Until some form of documentation is written check the examples directory which contains code samples to help you understand how to use the plugin. A good starting point can be the search mockup.

Showcase Videos

Floating non blocking message boxes:

widgets-messagebox.mp4

Floating parent widget with a ListBox inside:

widgets-floating-listbox.mp4

Non floating mockup of a search side bar:

widget-non-floating.mp4

A bottom NoteBook with tabs and various widgets inside.

widget-notebook.mp4

ListBox with formatted text used in LSP plugin:

widget-lsp-workspace-symbols.mp4

About

Widgets for Pragtical editor.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%