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:
@@ -57,6 +57,7 @@
|
||||
#include "lluiconstants.h"
|
||||
#include "llviewercontrol.h"
|
||||
#include "llviewermessage.h"
|
||||
#include "llviewerregion.h"
|
||||
#include "llworldmap.h"
|
||||
|
||||
LLPanelDirPlaces::LLPanelDirPlaces(const std::string& name, LLFloaterDirectory* floater)
|
||||
@@ -98,6 +99,8 @@ BOOL LLPanelDirPlaces::postBuild()
|
||||
childSetEnabled("Category", true);
|
||||
}
|
||||
|
||||
childSetVisible("filter_gaming", !gAgent.getRegion()->getCapability("GamingData").empty());
|
||||
|
||||
// Don't prepopulate the places list, as it hurts the database as of 2006-12-04. JC
|
||||
// initialQuery();
|
||||
|
||||
@@ -198,6 +201,11 @@ void LLPanelDirPlaces::performQuery()
|
||||
{
|
||||
flags |= DFQ_INC_ADULT;
|
||||
}
|
||||
|
||||
if (childGetValue("filter_gaming").asBoolean())
|
||||
{
|
||||
flags |= DFQ_FILTER_GAMING;
|
||||
}
|
||||
|
||||
// Pack old query flag in case we are talking to an old server
|
||||
if ( ((flags & DFQ_INC_PG) == DFQ_INC_PG) && !((flags & DFQ_INC_MATURE) == DFQ_INC_MATURE) )
|
||||
|
||||
Reference in New Issue
Block a user