- added ability to turn off some screen selection items for better recording ability. Set RecordMode=true in glestuser.ini to disable some selection effects for recording a video and not seeing selection circles etc.
This commit is contained in:
parent
17856ced2f
commit
b6473b69ab
|
@ -1601,6 +1601,11 @@ void Renderer::renderMouse3d() {
|
|||
return;
|
||||
}
|
||||
|
||||
Config &config= Config::getInstance();
|
||||
if(config.getBool("RecordMode","false") == true) {
|
||||
return;
|
||||
}
|
||||
|
||||
if(game == NULL) {
|
||||
char szBuf[1024]="";
|
||||
sprintf(szBuf,"In [%s::%s] Line: %d game == NULL",__FILE__,__FUNCTION__,__LINE__);
|
||||
|
@ -2182,6 +2187,11 @@ void Renderer::renderSelectionQuad() {
|
|||
return;
|
||||
}
|
||||
|
||||
Config &config= Config::getInstance();
|
||||
if(config.getBool("RecordMode","false") == true) {
|
||||
return;
|
||||
}
|
||||
|
||||
const Gui *gui= game->getGui();
|
||||
const SelectionQuad *sq= gui->getSelectionQuad();
|
||||
|
||||
|
@ -4601,6 +4611,11 @@ void Renderer::renderSelectionEffects() {
|
|||
return;
|
||||
}
|
||||
|
||||
Config &config= Config::getInstance();
|
||||
if(config.getBool("RecordMode","false") == true) {
|
||||
return;
|
||||
}
|
||||
|
||||
const World *world= game->getWorld();
|
||||
const Map *map= world->getMap();
|
||||
const Selection *selection= game->getGui()->getSelection();
|
||||
|
@ -7093,6 +7108,11 @@ void Renderer::renderArrow(const Vec3f &pos1, const Vec3f &pos2,
|
|||
return;
|
||||
}
|
||||
|
||||
Config &config= Config::getInstance();
|
||||
if(config.getBool("RecordMode","false") == true) {
|
||||
return;
|
||||
}
|
||||
|
||||
const int tesselation= 3;
|
||||
const float arrowEndSize= 0.4f;
|
||||
const float maxlen= 25;
|
||||
|
|
Loading…
Reference in New Issue