bedalton / Caos-Plugin-IntelliJ

2 stars 0 forks source link

CaosPlugin

This plugin aims to provide simple CAOS and agent editing for a variety of Creatures variants

Supports:

Implemented

Type hints

Shows CAOS commands with typehints marking paramater name and value type

Plugin adds type-hints to show both parameter name and rvalue type. If known, type hints are added to describe composite bitflag values for things like BUMP and ATTR, and also for english names for int values such as drive and chemical names

Code folding

Shows workflow of adding setting a bitflag value for ATTR using a editor panel

Some code can be folded to a more human readable descriptive text.

BitFlag builders

Shows workflow of adding setting a bitflag value for ATTR using a editor panel

An editor panel is available to help generate a bitflag value for things like ATTR. The panel is opened by using the autocomplete actions list (made visible with CTRL+SPACE) if there is no value, and the QuickFix/Intention Actions panel opened with ALT+ENTER, if there is already a value in place.

CLAS value generator

Shows workflow of adding setting a bitflag value for ATTR using a editor panel

To aid in generating C1 CLAS values, a generator panel is available within the editor. The panel is opened using the autocomplete action (made visible with CTRL+SPACE) if there is no value, and the QuickFix/Intention Actions panel opened with ALT+ENTER, if there is already a value in place.

Values list completion

Shows workflow of adding setting a bitflag value for ATTR using a editor panel

Autocomplete allows the use of english to try to find the corresponding int value in a given context such as CHEM, DRIV, EMIT, etc.

ATT editor

Shows workflow of adding setting a bitflag value for ATTR using a editor panel

An ATT editor is built into the project, and will try to match an ATT file with its respective sprite within the project. If found, a visual editor is shown which allows setting points in the file by clicking on each sprite in the sequence.

COB viewer

Shows workflow of adding setting a bitflag value for ATTR using a editor panel

Cob viewer allows previewing the contents of a sprite without fully decompiling it. Internal script viewing is available, along with the ability to preview embedded sprites in C2 COBs

Todo: