Script Editor: Class Renaming Plugin – Arma Reforger

From Bohemia Interactive Community
Revision as of 13:54, 2 October 2024 by Lou Montana (talk | contribs) (Page creation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Class Renaming

Script Editor plugin

A plugin to rename a class in scripts and Prefabs

File: SCR_ClassRenamingPlugin.c

Class Renaming is a plugin that replaces a string by another in scripts and Prefabs (not terrain layers yet).

This plugin can break your addon, be sure to make a backup before using it!


Usage

Use it with Plugins > Class Renaming Plugin; a window appears allowing to set replacement values and the concerned directories.


Parameters

Renaming

  • Only Rename Existing Editable Classes - only rename classes that exist in script files and that can be modified; if unchecked, replace all words that match criteria
  • Class Must Start With A Capital Letter - only rename words/classes that begin with a capital letter
  • Process Script Files - process .c files in the provided directories
  • Process Prefab Files - process .et files in the provided directories
  • Demo Mode - read-only mode that goes through all the steps without overwriting files
  • Parameters - a list of "from X to Y" replacement rules {{Feature|informative|Only the first matching rule applies

Directories

  • Script Directories - in which directories renaming can happen in script files (.c)
  • Prefab Directories - in which directories renaming can happen in Prefab files (.et)