Preprocessor purge round 6: intro text and user agent
This commit is contained in:
parent
fdfa206a3c
commit
e97fd74503
@ -52,13 +52,14 @@ namespace http
|
||||
cafile = newCafile;
|
||||
capath = newCapath;
|
||||
|
||||
user_agent =
|
||||
"PowderToy/" MTOS(SAVE_VERSION) "." MTOS(MINOR_VERSION) " ("
|
||||
user_agent = ByteString::Build(
|
||||
"PowderToy/", SAVE_VERSION, ".", MINOR_VERSION, " ("
|
||||
IDENT_PLATFORM
|
||||
"; " IDENT_BUILD
|
||||
"; M" MTOS(MOD_ID)
|
||||
"; M", MOD_ID,
|
||||
"; " IDENT
|
||||
") TPTPP/" MTOS(SAVE_VERSION) "." MTOS(MINOR_VERSION) "." MTOS(BUILD_NUM) IDENT_RELTYPE "." MTOS(SNAPSHOT_ID);
|
||||
") TPTPP/", SAVE_VERSION, ".", MINOR_VERSION, ".", BUILD_NUM, IDENT_RELTYPE ".", SNAPSHOT_ID
|
||||
);
|
||||
|
||||
worker_thread = std::thread([this]() { Worker(); });
|
||||
initialized = true;
|
||||
|
@ -191,7 +191,7 @@ GameView::GameView():
|
||||
buttonTip(""),
|
||||
isButtonTipFadingIn(false),
|
||||
introText(2048),
|
||||
introTextMessage(ByteString(introTextData).FromUtf8()),
|
||||
introTextMessage(IntroText().FromUtf8()),
|
||||
|
||||
doScreenshot(false),
|
||||
screenshotIndex(1),
|
||||
|
@ -1,62 +1,66 @@
|
||||
#pragma once
|
||||
#include "Config.h"
|
||||
#include "common/String.h"
|
||||
|
||||
const char *const introTextData =
|
||||
"\bl\bU" APPNAME "\bU - Version " MTOS(SAVE_VERSION) "." MTOS(MINOR_VERSION) " - https://powdertoy.co.uk, irc.libera.chat #powder, https://tpt.io/discord\n"
|
||||
"\n"
|
||||
"\n"
|
||||
"\bgControl+C/V/X are Copy, Paste and cut respectively.\n"
|
||||
"\bgTo choose a material, hover over one of the icons on the right, it will show a selection of elements in that group.\n"
|
||||
"\bgPick your material from the menu using mouse left/right buttons.\n"
|
||||
"Draw freeform lines by dragging your mouse left/right button across the drawing area.\n"
|
||||
"Shift+drag will create straight lines of particles.\n"
|
||||
"Ctrl+drag will result in filled rectangles.\n"
|
||||
"Ctrl+Shift+click will flood-fill a closed area.\n"
|
||||
"Use the mouse scroll wheel, or '[' and ']', to change the tool size for particles.\n"
|
||||
"Middle click or Alt+Click to \"sample\" the particles.\n"
|
||||
"Ctrl+Z will act as Undo.\n"
|
||||
"\n\boUse 'Z' for a zoom tool. Click to make the drawable zoom window stay around. Use the wheel to change the zoom strength.\n"
|
||||
"The spacebar can be used to pause physics. Use 'F' to step ahead by one frame.\n"
|
||||
"Use 'S' to save parts of the window as 'stamps'. 'L' loads the most recent stamp, 'K' shows a library of stamps you saved.\n"
|
||||
"Use 'P' to take a screenshot and save it into the current directory.\n"
|
||||
"Use 'H' to toggle the HUD. Use 'D' to toggle debug mode in the HUD.\n"
|
||||
"\n"
|
||||
"Contributors: \bgStanislaw K Skowronek (Designed the original Powder Toy),\n"
|
||||
"\bgSimon Robertshaw, Skresanov Savely, cracker64, Catelite, Bryan Hoyle, Nathan Cousins, jacksonmj,\n"
|
||||
"\bgFelix Wallin, Lieuwe Mosch, Anthony Boot, Me4502, MaksProg, jacob1, mniip, LBPHacker\n"
|
||||
"\n"
|
||||
inline ByteString IntroText()
|
||||
{
|
||||
ByteStringBuilder sb;
|
||||
sb << "\bl\bU" APPNAME "\bU - Version " << SAVE_VERSION << "." << MINOR_VERSION << " - https://powdertoy.co.uk, irc.libera.chat #powder, https://tpt.io/discord\n"
|
||||
"\n"
|
||||
"\n"
|
||||
"\bgControl+C/V/X are Copy, Paste and cut respectively.\n"
|
||||
"\bgTo choose a material, hover over one of the icons on the right, it will show a selection of elements in that group.\n"
|
||||
"\bgPick your material from the menu using mouse left/right buttons.\n"
|
||||
"Draw freeform lines by dragging your mouse left/right button across the drawing area.\n"
|
||||
"Shift+drag will create straight lines of particles.\n"
|
||||
"Ctrl+drag will result in filled rectangles.\n"
|
||||
"Ctrl+Shift+click will flood-fill a closed area.\n"
|
||||
"Use the mouse scroll wheel, or '[' and ']', to change the tool size for particles.\n"
|
||||
"Middle click or Alt+Click to \"sample\" the particles.\n"
|
||||
"Ctrl+Z will act as Undo.\n"
|
||||
"\n\boUse 'Z' for a zoom tool. Click to make the drawable zoom window stay around. Use the wheel to change the zoom strength.\n"
|
||||
"The spacebar can be used to pause physics. Use 'F' to step ahead by one frame.\n"
|
||||
"Use 'S' to save parts of the window as 'stamps'. 'L' loads the most recent stamp, 'K' shows a library of stamps you saved.\n"
|
||||
"Use 'P' to take a screenshot and save it into the current directory.\n"
|
||||
"Use 'H' to toggle the HUD. Use 'D' to toggle debug mode in the HUD.\n"
|
||||
"\n"
|
||||
"Contributors: \bgStanislaw K Skowronek (Designed the original Powder Toy),\n"
|
||||
"\bgSimon Robertshaw, Skresanov Savely, cracker64, Catelite, Bryan Hoyle, Nathan Cousins, jacksonmj,\n"
|
||||
"\bgFelix Wallin, Lieuwe Mosch, Anthony Boot, Me4502, MaksProg, jacob1, mniip, LBPHacker\n"
|
||||
"\n";
|
||||
#ifndef BETA
|
||||
"\bgTo use online features such as saving, you need to register at: \brhttps://powdertoy.co.uk/Register.html\n"
|
||||
sb << "\bgTo use online features such as saving, you need to register at: \brhttps://powdertoy.co.uk/Register.html\n";
|
||||
#else
|
||||
"\brThis is a BETA, you cannot save things publicly, nor open local saves and stamps made with it in older versions.\n"
|
||||
"\brIf you are planning on publishing any saves, use the release version.\n"
|
||||
sb << "\brThis is a BETA, you cannot save things publicly, nor open local saves and stamps made with it in older versions.\n"
|
||||
"\brIf you are planning on publishing any saves, use the release version.\n";
|
||||
#endif
|
||||
"\n"
|
||||
"\bt" MTOS(SAVE_VERSION) "." MTOS(MINOR_VERSION) "." MTOS(BUILD_NUM) " " IDENT
|
||||
sb << "\n"
|
||||
<< "\bt" << SAVE_VERSION << "." << MINOR_VERSION << "." << BUILD_NUM << " " IDENT;
|
||||
#ifdef SNAPSHOT
|
||||
" SNAPSHOT " MTOS(SNAPSHOT_ID)
|
||||
sb << " SNAPSHOT " << SNAPSHOT_ID;
|
||||
#elif MOD_ID > 0
|
||||
" MODVER " MTOS(SNAPSHOT_ID)
|
||||
sb << " MODVER " << SNAPSHOT_ID;
|
||||
#endif
|
||||
#if defined(X86_SSE) || defined(X86_SSE2) || defined(X86_SSE3)
|
||||
" " IDENT_BUILD
|
||||
sb << " " IDENT_BUILD;
|
||||
#endif
|
||||
#ifdef LUACONSOLE
|
||||
" LUACONSOLE"
|
||||
sb << " LUACONSOLE";
|
||||
#endif
|
||||
#ifdef GRAVFFT
|
||||
" GRAVFFT"
|
||||
sb << " GRAVFFT";
|
||||
#endif
|
||||
#ifdef REALISTIC
|
||||
" REALISTIC"
|
||||
sb << " REALISTIC";
|
||||
#endif
|
||||
#ifdef NOHTTP
|
||||
" NOHTTP"
|
||||
sb << " NOHTTP";
|
||||
#endif
|
||||
#ifdef DEBUG
|
||||
" DEBUG"
|
||||
sb << " DEBUG";
|
||||
#endif
|
||||
#ifdef ENFORCE_HTTPS
|
||||
" HTTPS"
|
||||
sb << " HTTPS";
|
||||
#endif
|
||||
;
|
||||
return sb.Build();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user