MV Common Plugin Struct

nio kasgami

VampCat
Veteran
Joined
May 21, 2013
Messages
8,949
Reaction score
3,042
First Language
French
Primarily Uses
RMMV
Introduction
This thread have for unique purpose to share "common" reusable struct for MV new Plugin Manager.
The idea behind is for the struct that can be used in multiple context. (e.g music, filename etc)

Code:
/// Will reproduce the Audio file structure making it easy to fetch for use with MV Audio system.

/*~struct~IAudioStruct:
 * @param filename
 * @type file
 * @dir audio/
 *
 * @param volume
 * @type number
 * @default 90
 * @min 0
 * @max 100
 *
 * @param pitch
 * @type number
 * @default 100
 * @min 10
 * @max 150
 *
 * @param pan
 * @type number
 * @decimals 2
 * @default 0.5
 * @min 0
 * @max 1
 */

Code:
/// Will produce an structure for good control of basic Sprite manipulations.

/*~struct~IFileImg:
 * @param filename
 * @desc The image filename.
 * @type file
 * @dir img/
 *
 * @param x
 * @desc The image X-axis.
 * @type number
 * @default 0
 *
 * @param y
 * @desc The image Y-axis.
 * @type number
 * @default 0
 *
 * @param anchorX
 * @text anchor X
 * @desc The X-axis anchor.
 * @type number
 * @decimals 2
 * @default 0.5
 * @min 0
 * @max 1
 *
 * @param anchorY
 * @text anchor Y
 * @desc The Y-axis anchor.
 * @type number
 * @decimals 2
 * @default 0.5
 * @min 0
 * @max 1
 *
 * @param hue
 * @desc The image hue.
 * @type number
 * @default 0
 *

For that it's all I have think you are free to share more idea for structure.
 
Last edited:

orzfly

Veteran
Veteran
Joined
Jan 11, 2016
Messages
18
Reaction score
79
First Language
Chinese
Primarily Uses
RMMV
You should use
Code:
@type number
@decimals 2
instead of
Code:
@type decimals 2
By the way, don't forget the colon after the struct name:

/*~struct~IFileImg:
 

nio kasgami

VampCat
Veteran
Joined
May 21, 2013
Messages
8,949
Reaction score
3,042
First Language
French
Primarily Uses
RMMV
You should use
Code:
@type number
@decimals 2
instead of
Code:
@type decimals 2
By the way, don't forget the colon after the struct name:

/*~struct~IFileImg:
here u go fixed!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Are we allowed to post about non-RPG Maker games?
I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

A bit of a "sparkle" update to the lower portion of the world map. :LZSexcite:

Forum statistics

Threads
105,884
Messages
1,017,238
Members
137,608
Latest member
Arm9
Top