mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
-SGP debugging now works again (corrected some typos and one missing include). -Memmory debugging works again (wrong types corrected) -Laptop screen heigth macro and all references is now usable. (was 'C: y + A' 'D: B - C' which translates to 'D: B - y + A' instead of 'D: B - y - A') -Laptop screens do not need to rerender as often then before as the laptop screen width/heigth macros works now and invalidating screen will do the trick -> almost no render calls neccessary. -MercProfile.ubMiscFlag was used instead of .ubMiscFlag2 -> enter sector action schedule for soldiers which dont need to be insertered is now canceled as intended git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6509 3b4a5df2-a311-0410-b5c6-a8a6f20db521
74 lines
1.8 KiB
C++
74 lines
1.8 KiB
C++
#ifdef PRECOMPILEDHEADERS
|
|
#include "Laptop All.h"
|
|
#include "BrokenLink.h"
|
|
#else
|
|
#include "Types.h"
|
|
#include "font.h"
|
|
#include "laptop.h"
|
|
#include "Font Control.h"
|
|
#include "Text.h"
|
|
#include "wordwrap.h"
|
|
#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 /*- 55*/, Get16BPPColor( FROMRGB( 255, 255, 255) ) );
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|