Code Snippets

These are small snippets for tweaks and things too small to merit a page of their own. These may eventually have their own subpages as the section expands.

Change the Now Loading Text
Author: Companion Wulf

Here’s a very small snippet on how to change the "Now Loading…" text in between scenes.

Open Assets/src/fakemy/Properties.cs

Simply replace "Now Loading …" (on Line 7) with text of your choice.

Note: This snippet is now obsolete. You can change the "Now Loading" text in Edit Game Data –> Terminology –> Menu (2).

Remove Font Border
Author: Mad Stuntman

Open Assets/src/engine/Graphics.cs

Go to Line 1347 and comment this piece of code, thus:

// int[] offsX = { -1, -1, -1, 0, 0, 1, 1, 1 };
// int[] offsY = { -1, 0, 1, -1, 1, -1, 0, 1 };
// float[] alphaScale = { 0.25f, 1.0f, 0.25f, 1.0f, 1.0f, 0.25f, 1.0f, 0.25f };
// for (int i = 0; i < offsX.Length; i++)
// {
//     mSpriteBatch.drawText(font, bytes,
//         (int)position.X + (int)mSpriteOffset.X + offsX[i],
//         (int)position.Y + (int)mSpriteOffset.Y + offsY[i],
//        hemmingColor * alphaScale[i] * floatAlpha,
//        hemmingColor * alphaScale[i] * floatAlpha,
//        hemmingColor * alphaScale[i] * floatAlpha,
//        floatAlpha * floatAlpha * floatAlpha * alphaScale[i], scale, zOrder);
// }