Add support for two non-SL grid features/flags.
Adds support for GamingData cap, and flags: PF_GAMING, DFQ_FILTER_GAMING, REGION_FLAGS_GAMING, and REGION_FLAGS_HIDE_FROM_SEARCH Adds GamingCheck to floater_about_land.xml Adds filter_gaming checkboxes to floater_directory* xmls Adds "is gaming" and "hide from search" checkboxes to floater_god_tools.xml
This commit is contained in:
@@ -52,6 +52,7 @@
|
||||
#include "lltextbox.h"
|
||||
#include "llviewercontrol.h"
|
||||
#include "llviewermessage.h"
|
||||
#include "llviewerregion.h"
|
||||
|
||||
#include "hippogridmanager.h"
|
||||
|
||||
@@ -125,6 +126,8 @@ BOOL LLPanelDirLand::postBuild()
|
||||
}
|
||||
}
|
||||
|
||||
childSetVisible("filter_gaming", !gAgent.getRegion()->getCapability("GamingData").empty());
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
@@ -213,6 +216,11 @@ void LLPanelDirLand::performQuery()
|
||||
{
|
||||
query_flags |= DFQ_INC_ADULT;
|
||||
}
|
||||
|
||||
if (childGetValue("filter_gaming").asBoolean())
|
||||
{
|
||||
query_flags |= DFQ_FILTER_GAMING;
|
||||
}
|
||||
|
||||
// Add old flags in case we are talking to an old dataserver
|
||||
if (inc_pg && !inc_mature)
|
||||
|
||||
Reference in New Issue
Block a user