mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@21 3b4a5df2-a311-0410-b5c6-a8a6f20db521
68 lines
1.7 KiB
C++
68 lines
1.7 KiB
C++
#ifdef PRECOMPILEDHEADERS
|
|
#include "Laptop All.h"
|
|
#include "BrokenLink.h"
|
|
#else
|
|
|
|
#endif
|
|
|
|
#define BROKEN_LINK__FONT FONT12ARIAL
|
|
#define BROKEN_LINK__COLOR FONT_MCOLOR_BLACK
|
|
|
|
#define BROKEN_LINK__MESSAGE_X LAPTOP_SCREEN_UL_X + 20
|
|
#define BROKEN_LINK__MESSAGE_Y LAPTOP_SCREEN_UL_Y + 50
|
|
#define BROKEN_LINK__MESSAGE_WIDTH (LAPTOP_SCREEN_LR_X - LAPTOP_SCREEN_UL_X)
|
|
|
|
#define BROKEN_LINK__SITE_NOT_FOUND_Y LAPTOP_SCREEN_UL_Y + 65
|
|
|
|
|
|
void DrawBrokenLinkWhiteBackground();
|
|
|
|
|
|
|
|
BOOLEAN EnterBrokenLink()
|
|
{
|
|
// RenderBrokenLink();
|
|
return(TRUE);
|
|
}
|
|
|
|
void ExitBrokenLink()
|
|
{
|
|
}
|
|
|
|
void HandleBrokenLink()
|
|
{
|
|
}
|
|
|
|
|
|
|
|
void RenderBrokenLink()
|
|
{
|
|
//Color fill the laptop white
|
|
DrawBrokenLinkWhiteBackground();
|
|
|
|
SetFontShadow( NO_SHADOW );
|
|
|
|
//Put up a message saying the link is dead
|
|
DisplayWrappedString(BROKEN_LINK__MESSAGE_X, BROKEN_LINK__MESSAGE_Y, BROKEN_LINK__MESSAGE_WIDTH, 2, BROKEN_LINK__FONT, BROKEN_LINK__COLOR, BrokenLinkText[ BROKEN_LINK_TXT_ERROR_404 ], FONT_MCOLOR_BLACK, FALSE, LEFT_JUSTIFIED);
|
|
|
|
//Put up a message saying the link is dead
|
|
DisplayWrappedString(BROKEN_LINK__MESSAGE_X, BROKEN_LINK__SITE_NOT_FOUND_Y, BROKEN_LINK__MESSAGE_WIDTH, 2, BROKEN_LINK__FONT, BROKEN_LINK__COLOR, BrokenLinkText[ BROKEN_LINK_TXT_SITE_NOT_FOUND ], FONT_MCOLOR_BLACK, FALSE, LEFT_JUSTIFIED);
|
|
|
|
SetFontShadow( DEFAULT_SHADOW );
|
|
|
|
InvalidateRegion(0,0,SCREEN_WIDTH, SCREEN_HEIGHT);
|
|
}
|
|
|
|
|
|
void DrawBrokenLinkWhiteBackground()
|
|
{
|
|
ColorFillVideoSurfaceArea( FRAME_BUFFER, LAPTOP_SCREEN_UL_X, LAPTOP_SCREEN_WEB_UL_Y, LAPTOP_SCREEN_LR_X, LAPTOP_SCREEN_WEB_LR_Y, Get16BPPColor( FROMRGB( 255, 255, 255) ) );
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|