Welcome to the Hangar Open Beta. Please report any issue you encounter on GitHub!
Avatar for JulieWoolie

XML and CSS based menus with display entities.

Report delphi?

Delphi

A plugin for making menus with XML, styling them with CSS and adding functionality with either Java or JavaScript.

This plugin is in development! There will be bugs and missing features. At the moment, the only supported layout supported is the default Flow. Flex, Grid and others will come later.

Features

  • Ability to create HTML-like menus with XML and CSS (With limited native SCSS integration)
  • Full support for CSS selectors (Including pseudo elements like :hover and :active)
  • Fully documented Java API and JavaScript integration for easy scripting
  • Contuing development and new features being added all the time.
  • Extensive documentation (at dev.juliewoolie.com)
  • Devtools to help you create menus and fix issues.
  • All Delphi commands can be used in the /execute command and by datapack functions!

Commands And Permissions

  • /delphi open <players> <identifier> - Opens a Delphi menu.
  • /delphi close all - Closes all menus.
  • /delphi close targeted - Closes the menu you're looking at.
  • /delphi close <instance name> - Closes the delphi menu with the instance-name.
  • /delphi reload - Reloads the plugin's config.

Permissions

  • delphi.commands - Permission required for using any Delphi commands such as open, close, and reload.
  • delphi.commands.debug - Permission required for executing debug commands.

Examples

Basic "Hello, world!" page

Start by going to plugins/Delphi/modules on your File Explorer and creating a folder, for this example, we'll use hello-world. Go into that directory and create a file named index.xml.

Open that file with a text editor (Preferrably VS Code, Notepad++ or something similar). You can then copy+paste this:

<delphi> <!-- Root tag -->
  <body> <!-- The body which contains all our content -->
    <h1>Hello, world!</h1> <!-- Big text saying "Hello, world!" -->
  </body>
</delphi>

In-game, you can then open this menu with /delphi open @s hello-world

Information

CategoryDeveloper Tools
Published onFebruary 20, 2025
LicenseGPL
Downloads2
Stars0
Watchers0

Pinned Versions

Members