Merge remote-tracking branch 'Liru/master'
This commit is contained in:
@@ -80,6 +80,7 @@ void AIServiceBar::draw()
|
||||
U32 is_used;
|
||||
U32 is_inuse;
|
||||
int total_added;
|
||||
int event_polls;
|
||||
int established_connections;
|
||||
int concurrent_connections;
|
||||
size_t bandwidth;
|
||||
@@ -88,6 +89,7 @@ void AIServiceBar::draw()
|
||||
is_used = per_service_r->is_used();
|
||||
is_inuse = per_service_r->is_inuse();
|
||||
total_added = per_service_r->mTotalAdded;
|
||||
event_polls = per_service_r->mEventPolls;
|
||||
established_connections = per_service_r->mEstablishedConnections;
|
||||
concurrent_connections = per_service_r->mConcurrentConnections;
|
||||
bandwidth = per_service_r->bandwidth().truncateData(AIHTTPView::getTime_40ms());
|
||||
@@ -148,7 +150,7 @@ void AIServiceBar::draw()
|
||||
}
|
||||
start = mHTTPView->updateColumn(mc_col, start);
|
||||
#if defined(CWDEBUG) || defined(DEBUG_CURLIO)
|
||||
text = llformat(" | %d,%d/%d", total_added, established_connections, concurrent_connections);
|
||||
text = llformat(" | %d,%d,%d/%d", total_added, event_polls, established_connections, concurrent_connections);
|
||||
#else
|
||||
text = llformat(" | %d/%d", total_added, concurrent_connections);
|
||||
#endif
|
||||
@@ -227,6 +229,7 @@ void AIGLHTTPHeaderBar::draw(void)
|
||||
height -= sLineHeight;
|
||||
start = h_offset;
|
||||
text = "Service (host:port)";
|
||||
// This must match AICapabilityType!
|
||||
static char const* caption[number_of_capability_types] = {
|
||||
" | Textures", " | Inventory", " | Mesh", " | Other"
|
||||
};
|
||||
|
||||
@@ -10068,17 +10068,6 @@ This should be as low as possible, but too low may break functionality</string>
|
||||
<key>Value</key>
|
||||
<integer>1</integer>
|
||||
</map>
|
||||
<key>MiniMapChatRings</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Display chat distance rings on mini map</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<integer>0</integer>
|
||||
</map>
|
||||
<key>MiniMapWhisperRing</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
@@ -17674,7 +17663,7 @@ This should be as low as possible, but too low may break functionality</string>
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<integer>1</integer>
|
||||
<integer>0</integer>
|
||||
</map>
|
||||
<key>DAEExportTextures</key>
|
||||
<map>
|
||||
|
||||
@@ -75,6 +75,7 @@ namespace
|
||||
void handleMessage(const LLSD& content);
|
||||
/*virtual*/ void error(U32 status, const std::string& reason);
|
||||
/*virtual*/ void result(const LLSD& content);
|
||||
/*virtual*/ bool is_event_poll(void) const { return true; }
|
||||
/*virtual*/ AIHTTPTimeoutPolicy const& getHTTPTimeoutPolicy(void) const { return eventPollResponder_timeout; }
|
||||
/*virtual*/ char const* getName(void) const { return "LLEventPollResponder"; }
|
||||
|
||||
|
||||
@@ -113,14 +113,8 @@ LLNetMap::LLNetMap(const std::string& name) :
|
||||
(new LLScaleMap())->registerListener(this, "MiniMap.ZoomLevel");
|
||||
(new LLCenterMap())->registerListener(this, "MiniMap.Center");
|
||||
(new LLCheckCenterMap())->registerListener(this, "MiniMap.CheckCenter");
|
||||
(new LLRotateMap())->registerListener(this, "MiniMap.Rotate");
|
||||
(new LLCheckRotateMap())->registerListener(this, "MiniMap.CheckRotate");
|
||||
(new LLShowObjects())->registerListener(this, "MiniMap.ShowObjects");
|
||||
(new LLCheckShowObjects())->registerListener(this, "MiniMap.CheckShowObjects");
|
||||
(new LLChatRings())->registerListener(this, "MiniMap.ChatRings");
|
||||
(new LLWhisperRing())->registerListener(this, "MiniMap.WhisperRing");
|
||||
(new LLChatRing())->registerListener(this, "MiniMap.ChatRing");
|
||||
(new LLShoutRing())->registerListener(this, "MiniMap.ShoutRing");
|
||||
(new LLCheckChatRings())->registerListener(this, "MiniMap.CheckChatRings");
|
||||
(new LLStopTracking())->registerListener(this, "MiniMap.StopTracking");
|
||||
(new LLEnableTracking())->registerListener(this, "MiniMap.EnableTracking");
|
||||
(new LLShowAgentProfile())->registerListener(this, "MiniMap.ShowProfile");
|
||||
@@ -133,6 +127,7 @@ LLNetMap::LLNetMap(const std::string& name) :
|
||||
(new mmsetcustom())->registerListener(this, "MiniMap.setcustom");
|
||||
(new mmsetunmark())->registerListener(this, "MiniMap.setunmark");
|
||||
(new mmenableunmark())->registerListener(this, "MiniMap.enableunmark");
|
||||
(new LLToggleControl())->registerListener(this, "MiniMap.ToggleControl");
|
||||
|
||||
LLUICtrlFactory::getInstance()->buildPanel(this, "panel_mini_map.xml");
|
||||
|
||||
@@ -1163,95 +1158,29 @@ bool LLNetMap::LLCheckCenterMap::handleEvent(LLPointer<LLEvent> event, const LLS
|
||||
return true;
|
||||
}
|
||||
|
||||
bool LLNetMap::LLRotateMap::handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
|
||||
{
|
||||
BOOL rotate = gSavedSettings.getBOOL("MiniMapRotate");
|
||||
gSavedSettings.setBOOL("MiniMapRotate", !rotate);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool LLNetMap::LLCheckRotateMap::handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
|
||||
{
|
||||
LLNetMap *self = mPtr;
|
||||
BOOL enabled = gSavedSettings.getBOOL("MiniMapRotate");
|
||||
self->findControl(userdata["control"].asString())->setValue(enabled);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool LLNetMap::LLShowObjects::handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
|
||||
{
|
||||
BOOL showobjects = gSavedSettings.getBOOL("ShowMiniMapObjects");
|
||||
gSavedSettings.setBOOL("ShowMiniMapObjects", !showobjects);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool LLNetMap::LLCheckShowObjects::handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
|
||||
{
|
||||
LLNetMap *self = mPtr;
|
||||
BOOL enabled = gSavedSettings.getBOOL("ShowMiniMapObjects");
|
||||
self->findControl(userdata["control"].asString())->setValue(enabled);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool LLNetMap::LLChatRings::handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
|
||||
{
|
||||
BOOL all_enabled = gSavedSettings.getBOOL("MiniMapChatRings");
|
||||
gSavedSettings.setBOOL("MiniMapChatRings", !all_enabled);
|
||||
BOOL whisper_enabled = gSavedSettings.getBOOL("MiniMapWhisperRing");
|
||||
BOOL chat_enabled = gSavedSettings.getBOOL("MiniMapChatRing");
|
||||
BOOL shout_enabled = gSavedSettings.getBOOL("MiniMapShoutRing");
|
||||
BOOL all_enabled = whisper_enabled && chat_enabled && shout_enabled;
|
||||
|
||||
gSavedSettings.setBOOL("MiniMapWhisperRing", !all_enabled);
|
||||
gSavedSettings.setBOOL("MiniMapChatRing", !all_enabled);
|
||||
gSavedSettings.setBOOL("MiniMapShoutRing", !all_enabled);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool LLNetMap::LLWhisperRing::handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
|
||||
{
|
||||
BOOL all_enabled = gSavedSettings.getBOOL("MiniMapChatRings");
|
||||
BOOL whisper_enabled = gSavedSettings.getBOOL("MiniMapWhisperRing");
|
||||
BOOL chat_enabled = gSavedSettings.getBOOL("MiniMapChatRing");
|
||||
BOOL shout_enabled = gSavedSettings.getBOOL("MiniMapShoutRing");
|
||||
|
||||
gSavedSettings.setBOOL("MiniMapWhisperRing", !whisper_enabled);
|
||||
|
||||
if(all_enabled)
|
||||
gSavedSettings.setBOOL("MiniMapChatRings", !all_enabled);
|
||||
else if(!whisper_enabled && chat_enabled && shout_enabled)
|
||||
gSavedSettings.setBOOL("MiniMapChatRings", TRUE);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool LLNetMap::LLChatRing::handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
|
||||
bool LLNetMap::LLCheckChatRings::handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
|
||||
{
|
||||
BOOL all_enabled = gSavedSettings.getBOOL("MiniMapChatRings");
|
||||
BOOL whisper_enabled = gSavedSettings.getBOOL("MiniMapWhisperRing");
|
||||
BOOL chat_enabled = gSavedSettings.getBOOL("MiniMapChatRing");
|
||||
BOOL shout_enabled = gSavedSettings.getBOOL("MiniMapShoutRing");
|
||||
BOOL all_enabled = whisper_enabled && chat_enabled && shout_enabled;
|
||||
|
||||
gSavedSettings.setBOOL("MiniMapChatRing", !chat_enabled);
|
||||
|
||||
if(all_enabled)
|
||||
gSavedSettings.setBOOL("MiniMapChatRings", !all_enabled);
|
||||
else if(whisper_enabled && !chat_enabled && shout_enabled)
|
||||
gSavedSettings.setBOOL("MiniMapChatRings", TRUE);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool LLNetMap::LLShoutRing::handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
|
||||
{
|
||||
BOOL all_enabled = gSavedSettings.getBOOL("MiniMapChatRings");
|
||||
BOOL whisper_enabled = gSavedSettings.getBOOL("MiniMapWhisperRing");
|
||||
BOOL chat_enabled = gSavedSettings.getBOOL("MiniMapChatRing");
|
||||
BOOL shout_enabled = gSavedSettings.getBOOL("MiniMapShoutRing");
|
||||
|
||||
gSavedSettings.setBOOL("MiniMapShoutRing", !shout_enabled);
|
||||
|
||||
if(all_enabled)
|
||||
gSavedSettings.setBOOL("MiniMapChatRings", !all_enabled);
|
||||
else if(whisper_enabled && chat_enabled && !shout_enabled)
|
||||
gSavedSettings.setBOOL("MiniMapChatRings", TRUE);
|
||||
|
||||
LLNetMap *self = mPtr;
|
||||
self->findControl(userdata["control"].asString())->setValue(all_enabled);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1300,3 +1229,11 @@ bool LLNetMap::LLEnableProfile::handleEvent(LLPointer<LLEvent> event, const LLSD
|
||||
//self->findControl(userdata["control"].asString())->setValue(self->isAgentUnderCursor());
|
||||
return true;
|
||||
}
|
||||
|
||||
bool LLNetMap::LLToggleControl::handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
|
||||
{
|
||||
std::string control_name = userdata.asString();
|
||||
gSavedSettings.setBOOL(control_name, !gSavedSettings.getBOOL(control_name));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -147,49 +147,13 @@ private:
|
||||
/*virtual*/ bool handleEvent(LLPointer<LLOldEvents::LLEvent> event, const LLSD& userdata);
|
||||
};
|
||||
|
||||
class LLRotateMap : public LLMemberListener<LLNetMap>
|
||||
{
|
||||
public:
|
||||
/*virtual*/ bool handleEvent(LLPointer<LLOldEvents::LLEvent> event, const LLSD& userdata);
|
||||
};
|
||||
|
||||
class LLCheckRotateMap : public LLMemberListener<LLNetMap>
|
||||
{
|
||||
public:
|
||||
/*virtual*/ bool handleEvent(LLPointer<LLOldEvents::LLEvent> event, const LLSD& userdata);
|
||||
};
|
||||
|
||||
class LLCheckShowObjects : public LLMemberListener<LLNetMap>
|
||||
{
|
||||
public:
|
||||
/*virtual*/ bool handleEvent(LLPointer<LLOldEvents::LLEvent> event, const LLSD& userdata);
|
||||
};
|
||||
|
||||
class LLChatRings : public LLMemberListener<LLNetMap>
|
||||
{
|
||||
public:
|
||||
/*virtual*/ bool handleEvent(LLPointer<LLOldEvents::LLEvent> event, const LLSD& userdata);
|
||||
};
|
||||
|
||||
class LLShowObjects : public LLMemberListener<LLNetMap>
|
||||
{
|
||||
public:
|
||||
/*virtual*/ bool handleEvent(LLPointer<LLOldEvents::LLEvent> event, const LLSD& userdata);
|
||||
};
|
||||
|
||||
class LLWhisperRing : public LLMemberListener<LLNetMap>
|
||||
{
|
||||
public:
|
||||
/*virtual*/ bool handleEvent(LLPointer<LLOldEvents::LLEvent> event, const LLSD& userdata);
|
||||
};
|
||||
|
||||
class LLChatRing : public LLMemberListener<LLNetMap>
|
||||
{
|
||||
public:
|
||||
/*virtual*/ bool handleEvent(LLPointer<LLOldEvents::LLEvent> event, const LLSD& userdata);
|
||||
};
|
||||
|
||||
class LLShoutRing : public LLMemberListener<LLNetMap>
|
||||
class LLCheckChatRings : public LLMemberListener<LLNetMap>
|
||||
{
|
||||
public:
|
||||
/*virtual*/ bool handleEvent(LLPointer<LLOldEvents::LLEvent> event, const LLSD& userdata);
|
||||
@@ -268,6 +232,13 @@ private:
|
||||
public:
|
||||
/*virtual*/ bool handleEvent(LLPointer<LLOldEvents::LLEvent> event, const LLSD& userdata);
|
||||
};
|
||||
|
||||
class LLToggleControl : public LLMemberListener<LLNetMap>
|
||||
{
|
||||
public:
|
||||
/*virtual*/ bool handleEvent(LLPointer<LLOldEvents::LLEvent> event, const LLSD& userdata);
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -440,6 +440,11 @@ void LLSurface::connectNeighbor(LLSurface *neighborp, U32 direction)
|
||||
// <FS:CR> Aurora Sim
|
||||
//neighbor_patchp = neighborp->getPatch(mPatchesPerEdge - 1, 0);
|
||||
neighbor_patchp = neighborp->getPatch(neighbor_offset[0] - 1, off); //neighborPatchesPerEdge - 1
|
||||
if (!neighbor_patchp)
|
||||
{
|
||||
mNeighbors[direction] = NULL;
|
||||
return;
|
||||
}
|
||||
// </FS:CR> Aurora Sim
|
||||
|
||||
patchp->connectNeighbor(neighbor_patchp, direction);
|
||||
@@ -451,6 +456,11 @@ void LLSurface::connectNeighbor(LLSurface *neighborp, U32 direction)
|
||||
// <FS:CR> Aurora Sim
|
||||
//neighbor_patchp = neighborp->getPatch(mPatchesPerEdge - 1, mPatchesPerEdge - 1);
|
||||
neighbor_patchp = neighborp->getPatch(neighbor_offset[0] - 1, neighbor_offset[1] - 1);
|
||||
if (!neighbor_patchp)
|
||||
{
|
||||
mNeighbors[direction] = NULL;
|
||||
return;
|
||||
}
|
||||
// </FS:CR> Aurora Sim
|
||||
|
||||
patchp->connectNeighbor(neighbor_patchp, direction);
|
||||
@@ -472,6 +482,11 @@ void LLSurface::connectNeighbor(LLSurface *neighborp, U32 direction)
|
||||
// <FS:CR> Aurora Sim
|
||||
//neighbor_patchp = neighborp->getPatch(0, mPatchesPerEdge - 1);
|
||||
neighbor_patchp = neighborp->getPatch(off, neighbor_offset[1] - 1); //0
|
||||
if (!neighbor_patchp)
|
||||
{
|
||||
mNeighbors[direction] = NULL;
|
||||
return;
|
||||
}
|
||||
// </FS:CR> Aurora Sim
|
||||
|
||||
patchp->connectNeighbor(neighbor_patchp, direction);
|
||||
@@ -600,6 +615,7 @@ void LLSurface::connectNeighbor(LLSurface *neighborp, U32 direction)
|
||||
//neighbor_patchp = neighborp->getPatch(mPatchesPerEdge - 1, i);
|
||||
patchp = getPatch(0, i + own_offset[1]);
|
||||
neighbor_patchp = neighborp->getPatch(neighborPatchesPerEdge - 1, i + neighbor_offset[1]);
|
||||
if (!neighbor_patchp) continue;
|
||||
// </FS:CR> Aurora Sim
|
||||
|
||||
patchp->connectNeighbor(neighbor_patchp, direction);
|
||||
@@ -620,6 +636,7 @@ void LLSurface::connectNeighbor(LLSurface *neighborp, U32 direction)
|
||||
//neighbor_patchp = neighborp->getPatch(mPatchesPerEdge - 1, i - 1);
|
||||
patchp = getPatch(0, i + own_offset[1]);
|
||||
neighbor_patchp = neighborp->getPatch(neighborPatchesPerEdge - 1, i - 1 + neighbor_offset[1]);
|
||||
if (!neighbor_patchp) continue;
|
||||
// </FS:CR> Aurora Sim
|
||||
|
||||
patchp->connectNeighbor(neighbor_patchp, SOUTHWEST);
|
||||
@@ -637,6 +654,7 @@ void LLSurface::connectNeighbor(LLSurface *neighborp, U32 direction)
|
||||
//neighbor_patchp = neighborp->getPatch(mPatchesPerEdge - 1, i + 1);
|
||||
patchp = getPatch(0, i + own_offset[1]);
|
||||
neighbor_patchp = neighborp->getPatch(neighborPatchesPerEdge - 1, i + 1 + neighbor_offset[1]);
|
||||
if (!neighbor_patchp) continue;
|
||||
// </FS:CR> Aurora Sim
|
||||
|
||||
patchp->connectNeighbor(neighbor_patchp, NORTHWEST);
|
||||
@@ -656,6 +674,7 @@ void LLSurface::connectNeighbor(LLSurface *neighborp, U32 direction)
|
||||
//neighbor_patchp = neighborp->getPatch(i, mPatchesPerEdge - 1);
|
||||
patchp = getPatch(i + own_offset[0], 0);
|
||||
neighbor_patchp = neighborp->getPatch(i + neighbor_offset[0], neighborPatchesPerEdge - 1);
|
||||
if (!neighbor_patchp) continue;
|
||||
// </FS:CR> Aurora Sim
|
||||
|
||||
patchp->connectNeighbor(neighbor_patchp, direction);
|
||||
@@ -1321,12 +1340,12 @@ LLSurfacePatch *LLSurface::getPatch(const S32 x, const S32 y) const
|
||||
{
|
||||
if ((x < 0) || (x >= mPatchesPerEdge))
|
||||
{
|
||||
llerrs << "Asking for patch out of bounds" << llendl;
|
||||
llwarns << "Asking for patch out of bounds" << llendl;
|
||||
return NULL;
|
||||
}
|
||||
if ((y < 0) || (y >= mPatchesPerEdge))
|
||||
{
|
||||
llerrs << "Asking for patch out of bounds" << llendl;
|
||||
llwarns << "Asking for patch out of bounds" << llendl;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
@@ -881,6 +881,7 @@ void LLSurfacePatch::setOriginGlobal(const LLVector3d &origin_global)
|
||||
void LLSurfacePatch::connectNeighbor(LLSurfacePatch *neighbor_patchp, const U32 direction)
|
||||
{
|
||||
llassert(neighbor_patchp);
|
||||
if (!neighbor_patchp) return;
|
||||
mNormalsInvalid[direction] = TRUE;
|
||||
neighbor_patchp->mNormalsInvalid[gDirOpposite[direction]] = TRUE;
|
||||
|
||||
|
||||
@@ -21,32 +21,32 @@
|
||||
</menu_item_check>
|
||||
<menu_item_check bottom_delta="-18" enabled="true" height="18" label="Rotate Mini-Map"
|
||||
left="0" mouse_opaque="true" name="Rotate Mini-Map" width="128">
|
||||
<on_click function="MiniMap.Rotate" userdata="" />
|
||||
<on_check function="MiniMap.CheckRotate" userdata="" />
|
||||
<on_click function="MiniMap.ToggleControl" userdata="MiniMapRotate" />
|
||||
<on_check control="MiniMapRotate" />
|
||||
</menu_item_check>
|
||||
<menu_item_check bottom_delta="-18" enabled="false" height="18" label="Show Objects"
|
||||
left="0" mouse_opaque="true" name="Show Objects" width="128">
|
||||
<on_click function="MiniMap.ShowObjects" userdata="" />
|
||||
<on_check function="MiniMap.CheckShowObjects" userdata="" />
|
||||
<on_click function="MiniMap.ToggleControl" userdata="ShowMiniMapObjects" />
|
||||
<on_check control="ShowMiniMapObjects" />
|
||||
</menu_item_check>
|
||||
<menu bottom_delta="0" color="MenuDefaultBgColor" drop_shadow="true" height="175" left="0"
|
||||
mouse_opaque="false" name="Chat Distance Rings" opaque="true" tear_off="false" width="125">
|
||||
<menu_item_check label="Show All" name="Show All">
|
||||
<on_check control="MiniMapChatRings" />
|
||||
<on_click function="MiniMap.ChatRings" userdata="MiniMapChatRings" />
|
||||
<on_check function="MiniMap.CheckChatRings" />
|
||||
<on_click function="MiniMap.ChatRings" />
|
||||
</menu_item_check>
|
||||
<menu_item_separator />
|
||||
<menu_item_check label="Show Whisper Ring" name="Show Whisper Ring">
|
||||
<on_check control="MiniMapWhisperRing" />
|
||||
<on_click function="MiniMap.WhisperRing" userdata="MiniMapWhisperRing" />
|
||||
<on_click function="MiniMap.ToggleControl" userdata="MiniMapWhisperRing" />
|
||||
</menu_item_check>
|
||||
<menu_item_check label="Show Chat Ring" name="Show Chat Ring">
|
||||
<on_check control="MiniMapChatRing" />
|
||||
<on_click function="MiniMap.ChatRing" userdata="MiniMapChatRing" />
|
||||
<on_click function="MiniMap.ToggleControl" userdata="MiniMapChatRing" />
|
||||
</menu_item_check>
|
||||
<menu_item_check label="Show Shout Ring" name="Show Shout Ring">
|
||||
<on_check control="MiniMapShoutRing" />
|
||||
<on_click function="MiniMap.ShoutRing" userdata="MiniMapShoutRing" />
|
||||
<on_click function="MiniMap.ToggleControl" userdata="MiniMapShoutRing" />
|
||||
</menu_item_check>
|
||||
</menu>
|
||||
<menu_item_separator />
|
||||
|
||||
Reference in New Issue
Block a user