Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
An example of conditional compilation
extern class Window_Help extends Window_Base {
/**
* The text that is displayed within the window.
*
* @protected
* @type {string}
* @memberof Window_Help
*/
private var _text: String;
//This if compileMV creates a conditional compilation block
#if compileMV
/**
* Creates an instance of Window_Help.
* @param {number} numLines
* @memberof Window_Help
*/
public function new(numLines: Int): Void;
#else
public function new(rect: Rectangle): Void;
#end
/**
* Sets the _text property of the window;
* this text will be displayed within the window.
* @param {string} text
* @memberof Window_Help
*/
public function setText(text: String): Void;
public function clear(): Void;
/**
* Sets the current item of the help window.
*
* @param {RPG.BaseItem} item
* @memberof Window_Help
*/
public function setItem(item: BaseItem): Void;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment