Hello I am developing a plugin which converts the tilesets from RPG maker format to a common format. I split the tile into minitiles and reassemble them according to a certain criteria, this is the code:
// Name:
// Submenu:
// Author:
// Title:
// Version:
// Desc:
// Keywords:
// URL:
// Help:
#region UICode
bool Amount1 = false; // [0,1] Use Secondary Color
#endregion
void Render(Surface dst, Surface src, Rectangle rect)
{
int[] values = new int[] { 1, 2, 1, 10, 10, 11, 11, 12, 14, 4, 10, 11, 10, 11, 3, 15, 1, 11, 3, 4, 10, 11, 10, 12,
13, 16, 13, 8, 7