Remove teaser screen

This commit is contained in:
maride 2016-04-02 15:15:38 +02:00
parent d158e10c40
commit be96c43b4b
2 changed files with 0 additions and 58 deletions

View File

@ -17,9 +17,7 @@
#include "random.h"
#include "interfacemultiplayer.h"
#include "log.h"
#include "reg_tool_3.h"
#include "initexit.h"
#include "ASWRegistrationCarbonAPI.h"
int gJoinFlag=false;
int gInterfaceType=false;
@ -1149,58 +1147,3 @@ void TextScrollFile(tFileRef fileId)
}
FlushKeys();
}
void TeaserScreen()
{
if(RT3_IsRegistered())
return;
tInterfaceMenuDescribtion menu;
InterfaceInitMenu(&menu,2,"Get the full version now!");
// menu.userData=text;
menu.image=FileGetReference("teaser.png");
menu.imageXScale=0.2;
menu.imageYScale=0.2;
menu.imageXPos+=0.2;
menu.imageYPos+=0.1;
char itemStrings[][32]={"Later...","Buy It Now!"};
for(int i=0;i<menu.numItems;i++)
{
strcpy(menu.items[i].label,itemStrings[i]);
menu.items[i].flags=kInterfaceMenuItemDisabled;
}
InterfaceMenuZoomAnimation(&menu,0,true);
InterfaceMenuRender(&menu,0,1);
tFileRef logs[kMaxLogs];
int logCount;
GetLogs(logs,&logCount);
if(!LogLoad(logs[RandomInt(0,logCount)],gGameInfo))
LogLoad(FileGetReference("bullit.redlog"),gGameInfo);
StartBackgroundReplay();
menu.RenderCallback=(void(*)(void*,int,void*))InterfaceRenderReplay;
menu.background=kFileErr;
for(int i=0;i<menu.numItems;i++)
menu.items[i].flags=0;
if(InterfaceGetUserMenuSelection(&menu))
{
if(gConfig->fullscreen)
{
gConfig->fullscreen=false;
ScreenReInit();
gConfig->fullscreen=true;
}
ASWReg_Initialization();
ASWReg_ShowDialog(true);
if(gConfig->fullscreen)
ScreenReInit();
// RT3_LaunchRegisterApp();
// Exit();
}
InterfaceDisposeMenu(&menu);
}

View File

@ -122,7 +122,6 @@ void InterfaceFadeInInterfaceFromImage(tFileRef image,float maxTime);
void InterfaceFadeInImageFromImage(float xSize,float ySize,tFileRef image,float xSize2,float ySize2,tFileRef image2,float maxTime);
void InterfaceDrawBackgroundFade(float opacity,int showtop);
void InterfaceDrawStatusBar(char *stringBuffer,char *secondaryStringBuffer,float status);
void TeaserScreen();
void InterfaceRenderReplay(void *userData,int selection,void *menu);