I also get the “The game engine does not appear to have shut down...†error as well, every single time, when I close the game using the X in the upper right of the screen.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
//for gFloatingText 'description of what mouse is over'
...
//for gFloatingText 'description of what mouse is over'
#define FLOATING_TEXT_GUI gFloatingText
#define FLOATING_TEXT_FONT eFontSpeech
#define FLOATING_TEXT_OUTLINE_WIDTH 2
#define FLOATING_TEXT_COLOR 49664
#define FLOATING_TEXT_OUTLINE_COLOR 0
import function SetFloatingText(String floatingText);
import void drawStringWrappedOutline(this DrawingSurface*, int x, int y, int width, TextOutlineStyle outlineStyle, FontType font, Alignment alignment, String message, int transparency, int outlineColor, int outlineWidth);
...
function SetFloatingText(String floatingText)
{
String textContent;
DynamicSprite* sprtFloatingText;
if(textContent == null)
textContent = "";
if(floatingText != textContent)
{
textContent = floatingText;
if(sprtFloatingText == null)
sprtFloatingText = DynamicSprite.Create(FLOATING_TEXT_GUI.Width, FLOATING_TEXT_GUI.Height, true);
DrawingSurface* dsFloatingText = sprtFloatingText.GetDrawingSurface();
dsFloatingText.Clear(COLOR_TRANSPARENT);
if(!String.IsNullOrEmpty(textContent))
{
dsFloatingText.DrawingColor = FLOATING_TEXT_COLOR;
dsFloatingText.drawStringWrappedOutline(FLOATING_TEXT_OUTLINE_WIDTH,
FLOATING_TEXT_OUTLINE_WIDTH,
FLOATING_TEXT_GUI.Width - 2*FLOATING_TEXT_OUTLINE_WIDTH,
eTextOutlineRounded,
FLOATING_TEXT_FONT,
eAlignCentre,
textContent,
0,
FLOATING_TEXT_OUTLINE_COLOR,
FLOATING_TEXT_OUTLINE_WIDTH);
}
dsFloatingText.Release();
FLOATING_TEXT_GUI.BackgroundGraphic = sprtFloatingText.Graphic;
}
}
...
function repeatedly_execute_always()
{
if (Game.GetLocationName(mouse.x, mouse.y)!=null) {
SetFloatingText(Game.GetLocationName(mouse.x, mouse.y));
}
}
...
if(!String.IsNullOrEmpty(textContent))
{
dsFloatingText.DrawingColor = FLOATING_TEXT_COLOR;
dsFloatingText.drawStringWrappedOutline(683, //1366/2 pixels left - dead centre
15, //15 pixels down
FLOATING_TEXT_GUI.Width - 2*FLOATING_TEXT_OUTLINE_WIDTH,
eTextOutlineRounded,
FLOATING_TEXT_FONT,
eAlignCentre,
textContent,
0,
FLOATING_TEXT_OUTLINE_COLOR,
FLOATING_TEXT_OUTLINE_WIDTH);
}
dsFloatingText.Release();
...
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 0.072 seconds with 19 queries.