Merge branch 'master' of https://github.com/Lirusaito/SingularityViewer
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<integer>1</integer>
|
||||
<integer>0</integer>
|
||||
</map>
|
||||
<key>PhoenixIMAnnounceStealFocus</key>
|
||||
<map>
|
||||
@@ -223,13 +223,13 @@
|
||||
<key>zmm_mlfov</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>1=Normal, Under 1 Zoom Out, Over 1 Zoom in </string>
|
||||
<string>Adjusted when scrolling back and forth while holding rightclick in mouselook (Zoomed in < 1.037 < Zoomed out)</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>F32</string>
|
||||
<key>Value</key>
|
||||
<real>1</real>
|
||||
<real>0.5</real>
|
||||
</map>
|
||||
|
||||
<key>AllowLargeSounds</key>
|
||||
@@ -763,6 +763,39 @@
|
||||
<key>Value</key>
|
||||
<integer>0</integer>
|
||||
</map>
|
||||
<key>LiruMouselookHidesFloaters</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Whether or not floaters open during third person will be hidden while in mouselook</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<boolean>1</boolean>
|
||||
</map>
|
||||
<key>LiruMouselookHidesMenubar</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Whether or not the main menu bar will be hidden in mouselook</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<boolean>1</boolean>
|
||||
</map>
|
||||
<key>LiruMouselookHidesNotices</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Whether or not notices will be hidden in mouselook</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<boolean>0</boolean>
|
||||
</map>
|
||||
<key>LiruMouselookMenu</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
@@ -6153,6 +6186,28 @@ This should be as low as possible, but too low may break functionality</string>
|
||||
<key>Value</key>
|
||||
<integer>1</integer>
|
||||
</map>
|
||||
<key>EnableNongestureSounds</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Play sounds from non-gestures</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<integer>1</integer>
|
||||
</map>
|
||||
<key>EnableNongestureSoundsSelf</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Play sounds from your non-gestures when EnableNongestureSounds is false. (Useless otherwise)</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<integer>1</integer>
|
||||
</map>
|
||||
<key>EnableMouselook</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
|
||||
@@ -52,6 +52,7 @@
|
||||
#include "llmoveview.h"
|
||||
#include "llchatbar.h"
|
||||
#include "llnotificationsutil.h"
|
||||
#include "llnotify.h" // For hiding notices(gNotifyBoxView) in mouselook
|
||||
#include "llparcel.h"
|
||||
#include "llrendersphere.h"
|
||||
#include "llsdmessage.h"
|
||||
@@ -2043,6 +2044,8 @@ void LLAgent::endAnimationUpdateUI()
|
||||
gMenuBarView->setVisible(TRUE);
|
||||
gStatusBar->setVisibleForMouselook(true);
|
||||
|
||||
// Show notices
|
||||
gNotifyBoxView->setVisible(true);
|
||||
|
||||
LLToolMgr::getInstance()->setCurrentToolset(gBasicToolset);
|
||||
|
||||
@@ -2053,7 +2056,7 @@ void LLAgent::endAnimationUpdateUI()
|
||||
}
|
||||
|
||||
// Only pop if we have pushed...
|
||||
if (TRUE == mViewsPushed)
|
||||
if (mViewsPushed)
|
||||
{
|
||||
LLFloaterView::skip_list_t skip_list;
|
||||
skip_list.insert(LLFloaterMap::getInstance());
|
||||
@@ -2134,9 +2137,11 @@ void LLAgent::endAnimationUpdateUI()
|
||||
if (gAgentCamera.getCameraMode() == CAMERA_MODE_MOUSELOOK)
|
||||
{
|
||||
// hide menus
|
||||
gMenuBarView->setVisible(FALSE);
|
||||
gMenuBarView->setVisible(!gSavedSettings.getBOOL("LiruMouselookHidesMenubar"));
|
||||
gStatusBar->setVisibleForMouselook(false);
|
||||
|
||||
if (gSavedSettings.getBOOL("LiruMouselookHidesNotices"))
|
||||
gNotifyBoxView->setVisible(false);
|
||||
|
||||
// clear out camera lag effect
|
||||
gAgentCamera.clearCameraLag();
|
||||
@@ -2146,7 +2151,7 @@ void LLAgent::endAnimationUpdateUI()
|
||||
|
||||
LLToolMgr::getInstance()->setCurrentToolset(gMouselookToolset);
|
||||
|
||||
mViewsPushed = TRUE;
|
||||
mViewsPushed = gSavedSettings.getBOOL("LiruMouselookHidesFloaters");
|
||||
|
||||
if (mMouselookModeInSignal)
|
||||
{
|
||||
@@ -2155,9 +2160,12 @@ void LLAgent::endAnimationUpdateUI()
|
||||
|
||||
// hide all floaters except the mini map
|
||||
|
||||
LLFloaterView::skip_list_t skip_list;
|
||||
skip_list.insert(LLFloaterMap::getInstance());
|
||||
gFloaterView->pushVisibleAll(FALSE, skip_list);
|
||||
if (mViewsPushed) // Singu Note: Only hide if the setting is true.
|
||||
{
|
||||
LLFloaterView::skip_list_t skip_list;
|
||||
skip_list.insert(LLFloaterMap::getInstance());
|
||||
gFloaterView->pushVisibleAll(FALSE, skip_list);
|
||||
}
|
||||
|
||||
if( gMorphView )
|
||||
{
|
||||
|
||||
@@ -1252,26 +1252,35 @@ void LLFloaterAvatarList::setFocusAvatar(const LLUUID& id)
|
||||
}
|
||||
}
|
||||
|
||||
// Simple function to decrement iterators, wrapping back if needed
|
||||
template<typename T>
|
||||
T prev_iter(const T& cur, const T& begin, const T& end)
|
||||
{
|
||||
return ((cur == begin) ? end : cur) - 1;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
void decrement_focus_target(T begin, T end, BOOL marked_only)
|
||||
{
|
||||
T iter = begin;
|
||||
while(iter != end && !(*iter)->isFocused()) ++iter;
|
||||
if(iter == end)
|
||||
return;
|
||||
T prev_iter = iter;
|
||||
while(prev_iter != begin)
|
||||
for (T iter = begin; iter != end; ++iter)
|
||||
{
|
||||
const LLAvatarListEntry& entry = *((--prev_iter)->get());
|
||||
if(entry.isInList() && (entry.isMarked() || !marked_only) && gAgentCamera.lookAtObject(entry.getID(), false))
|
||||
LLAvatarListEntry& old = *(iter->get());
|
||||
if (!old.isFocused()) continue;
|
||||
for (T prev = prev_iter(iter, begin, end); prev != iter; prev = prev_iter(prev, begin, end))
|
||||
{
|
||||
(*iter)->setFocus(FALSE);
|
||||
(*prev_iter)->setFocus(TRUE);
|
||||
gAgentCamera.lookAtObject((*prev_iter)->getID(), false);
|
||||
return;
|
||||
LLAvatarListEntry& entry = *(prev->get());
|
||||
if (!entry.isInList()) continue;
|
||||
if (marked_only && !entry.isMarked()) continue;
|
||||
if (gAgentCamera.lookAtObject(entry.getID(), false))
|
||||
{
|
||||
old.setFocus(false);
|
||||
entry.setFocus(true);
|
||||
return;
|
||||
}
|
||||
}
|
||||
// Nothing else to focus
|
||||
break;
|
||||
}
|
||||
gAgentCamera.lookAtObject((*iter)->getID(), false);
|
||||
}
|
||||
|
||||
void LLFloaterAvatarList::focusOnPrev(BOOL marked_only)
|
||||
|
||||
@@ -418,6 +418,7 @@ BOOL LLPanelFriends::addFriend(const LLUUID& agent_id)
|
||||
|
||||
std::string fullname;
|
||||
BOOL have_name = LLAvatarNameCache::getPNSName(agent_id, fullname);
|
||||
if (!have_name) gCacheName->getFullName(agent_id, fullname);
|
||||
|
||||
LLSD element;
|
||||
element["id"] = agent_id;
|
||||
@@ -426,9 +427,11 @@ BOOL LLPanelFriends::addFriend(const LLUUID& agent_id)
|
||||
friend_column["value"] = fullname;
|
||||
friend_column["font"] = "SANSSERIF";
|
||||
friend_column["font-style"] = "NORMAL";
|
||||
/* Singu TODO: Liru will fix this up to actually work later
|
||||
static const LLCachedControl<LLColor4> sDefaultColor(gColors, "DefaultListText");
|
||||
static const LLCachedControl<LLColor4> sMutedColor("AscentMutedColor");
|
||||
friend_column["color"] = ll_sd_from_color4(LLAvatarActions::isBlocked(agent_id) ? sMutedColor : sDefaultColor);
|
||||
friend_column["color"] = LLAvatarActions::isBlocked(agent_id) ? sMutedColor : sDefaultColor;
|
||||
*/
|
||||
|
||||
LLSD& online_status_column = element["columns"][LIST_ONLINE_STATUS];
|
||||
online_status_column["column"] = "icon_online_status";
|
||||
@@ -503,6 +506,7 @@ BOOL LLPanelFriends::updateFriendItem(const LLUUID& agent_id, const LLRelationsh
|
||||
|
||||
std::string fullname;
|
||||
BOOL have_name = LLAvatarNameCache::getPNSName(agent_id, fullname);
|
||||
if (!have_name) gCacheName->getFullName(agent_id, fullname);
|
||||
|
||||
// Name of the status icon to use
|
||||
std::string statusIcon;
|
||||
|
||||
@@ -4275,7 +4275,7 @@ void LLModelPreview::updateStatusMessages()
|
||||
std::string img = lod_status_image[upload_status[lod]];
|
||||
LLIconCtrl* icon = mFMP->getChild<LLIconCtrl>(lod_icon_name[lod]);
|
||||
icon->setVisible(true);
|
||||
icon->setImage(img);
|
||||
icon->setValue(img);
|
||||
|
||||
if (upload_status[lod] >= 2)
|
||||
{
|
||||
@@ -4286,7 +4286,7 @@ void LLModelPreview::updateStatusMessages()
|
||||
{
|
||||
mFMP->childSetText("lod_status_message_text", mFMP->getString(message));
|
||||
icon = mFMP->getChild<LLIconCtrl>("lod_status_message_icon");
|
||||
icon->setImage(img);
|
||||
icon->setValue(img);
|
||||
}
|
||||
|
||||
updateLodControls(lod);
|
||||
|
||||
@@ -163,7 +163,7 @@ LLGroupNotifyBox::LLGroupNotifyBox(const std::string& subject,
|
||||
{
|
||||
icon = new LLIconCtrl(std::string("icon"),
|
||||
LLRect(x, y, x+ICON_WIDTH, y-ICON_WIDTH),
|
||||
group_insignia);
|
||||
group_insignia.asString());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -1390,7 +1390,7 @@ void LLFloaterIMPanel::sendTypingState(bool typing)
|
||||
return;
|
||||
// Don't want to send typing indicators to multiple people, potentially too
|
||||
// much network traffic. Only send in person-to-person IMs.
|
||||
if (mSessionType == P2P_SESSION) return;
|
||||
if (mSessionType != P2P_SESSION) return;
|
||||
|
||||
std::string name;
|
||||
gAgent.buildFullname(name);
|
||||
|
||||
@@ -293,7 +293,7 @@ void LLMediaRemoteCtrl::enableMediaButtons()
|
||||
mMusicIcon->setColor(music_icon_color);
|
||||
if(!media_icon_name.empty())
|
||||
{
|
||||
media_icon->setImage(media_icon_name);
|
||||
media_icon->setValue(media_icon_name);
|
||||
}
|
||||
|
||||
media_play_btn->setEnabled(play_media_enabled);
|
||||
|
||||
@@ -310,7 +310,7 @@ void LLPanelGroupNotices::setItem(LLPointer<LLInventoryItem> inv_item)
|
||||
inv_item->getFlags(),
|
||||
item_is_multi );
|
||||
|
||||
mCreateInventoryIcon->setImage(icon_name);
|
||||
mCreateInventoryIcon->setValue(icon_name);
|
||||
mCreateInventoryIcon->setVisible(TRUE);
|
||||
|
||||
std::stringstream ss;
|
||||
@@ -541,7 +541,7 @@ void LLPanelGroupNotices::showNotice(const std::string& subject,
|
||||
std::string icon_name = LLInventoryIcon::getIconName(mInventoryOffer->mType,
|
||||
LLInventoryType::IT_TEXTURE);
|
||||
|
||||
mViewInventoryIcon->setImage(icon_name);
|
||||
mViewInventoryIcon->setValue(icon_name);
|
||||
mViewInventoryIcon->setVisible(TRUE);
|
||||
|
||||
std::stringstream ss;
|
||||
|
||||
@@ -94,10 +94,10 @@ void LLViewChildren::setBadge(const std::string& id, Badge badge, bool visible)
|
||||
switch (badge)
|
||||
{
|
||||
default:
|
||||
case BADGE_OK: child->setImage(std::string("badge_ok.j2c")); break;
|
||||
case BADGE_NOTE: child->setImage(std::string("badge_note.j2c")); break;
|
||||
case BADGE_WARN: child->setImage(std::string("badge_warn.j2c")); break;
|
||||
case BADGE_ERROR: child->setImage(std::string("badge_error.j2c")); break;
|
||||
case BADGE_OK: child->setValue(std::string("badge_ok.j2c")); break;
|
||||
case BADGE_NOTE: child->setValue(std::string("badge_note.j2c")); break;
|
||||
case BADGE_WARN: child->setValue(std::string("badge_warn.j2c")); break;
|
||||
case BADGE_ERROR: child->setValue(std::string("badge_error.j2c")); break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5287,10 +5287,19 @@ void process_sound_trigger(LLMessageSystem *msg, void **)
|
||||
}
|
||||
|
||||
// Don't play sounds from gestures if they are not enabled.
|
||||
if (object_id == owner_id && !gSavedSettings.getBOOL("EnableGestureSounds"))
|
||||
if (object_id == owner_id)
|
||||
{
|
||||
// Don't mute own gestures, if they're not muted.
|
||||
if (owner_id != gAgentID || !gSavedSettings.getBOOL("EnableGestureSoundsSelf"))
|
||||
if (!gSavedSettings.getBOOL("EnableGestureSounds"))
|
||||
{
|
||||
// Don't mute own gestures, if they're not muted.
|
||||
if (owner_id != gAgentID || !gSavedSettings.getBOOL("EnableGestureSoundsSelf"))
|
||||
return;
|
||||
}
|
||||
}
|
||||
else if (!gSavedSettings.getBOOL("EnableNongestureSounds"))
|
||||
{
|
||||
// Don't mute own non-gestures, if they're not muted.
|
||||
if (owner_id != gAgentID || !gSavedSettings.getBOOL("EnableNongestureSoundsSelf"))
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -154,7 +154,7 @@ void LLVoiceRemoteCtrl::draw()
|
||||
LLIconCtrl* icon = mVoiceVolIcon;
|
||||
if (icon)
|
||||
{
|
||||
icon->setImage(talk_blip_image);
|
||||
icon->setValue(talk_blip_image);
|
||||
}
|
||||
|
||||
LLFloater* voice_floater = LLFloaterChatterBox::getInstance()->getCurrentVoiceFloater();
|
||||
@@ -185,7 +185,7 @@ void LLVoiceRemoteCtrl::draw()
|
||||
LLIconCtrl* voice_channel_icon = findChild<LLIconCtrl>("voice_channel_icon");
|
||||
if (voice_channel_icon && voice_floater)
|
||||
{
|
||||
voice_channel_icon->setImage(voice_floater->getString("voice_icon"));
|
||||
voice_channel_icon->setValue(voice_floater->getString("voice_icon"));
|
||||
}
|
||||
|
||||
if (voice_channel_bg)
|
||||
|
||||
@@ -5,6 +5,10 @@
|
||||
<slider_bar bottom="-26" follows="top" height="16" increment="0.25" initial_val="2" left="276" max_val="15" min_val="0" name="mouse_sensitivity" width="128"/>
|
||||
<check_box bottom_delta="-18" follows="top" height="16" label="Invert Mouse" left="148" name="invert_mouse"/>
|
||||
<check_box bottom_delta="-18" follows="top" height="16" initial_value="false" label="Show Avatar in Mouselook" name="first_person_avatar_visible"/>
|
||||
<text bottom_delta="-18" follows="top" height="16" name="UI Hidden in mouselook:">UI Hidden in mouselook:</text>
|
||||
<check_box bottom_delta="-18" follows="top" height="16" control_name="LiruMouselookHidesFloaters" name="mouselook_hides_floaters" label="Floaters"/>
|
||||
<check_box left_delta="80" bottom_delta="0" follows="top" height="16" control_name="LiruMouselookHidesNotices" name="mouselook_hides_notices" label="Notices"/>
|
||||
<check_box left="148" bottom_delta="-18" follows="top" height="16" control_name="LiruMouselookHidesMenubar" name="mouselook_hides_menubar" label="Menubar"/>
|
||||
<text bottom_delta="-30" follows="top" height="10" left="10" name=" Movement Options:">Movement Options:</text>
|
||||
<check_box bottom_delta="-6" follows="top" height="16" label="Fly/land on holding up/down" left="148" name="automatic_fly"/>
|
||||
<check_box bottom_delta="-18" follows="top" height="16" label="Allow crouch toggle by holding shift" name="crouch_toggle" control_name="SGShiftCrouchToggle"/>
|
||||
@@ -13,7 +17,8 @@
|
||||
<slider bottom_delta="-6" can_edit_text="true" decimal_digits="2" follows="top" width="128" height="16" increment=".025" initial_val="1.57" left="276" max_val="2.97" min_val=".17" name="camera_fov" value="60"/>
|
||||
<text bottom_delta="-14" follows="top" height="10" left="148" name="Camera Follow Distance:" width="128">Camera Follow Distance:</text>
|
||||
<slider bottom_delta="-6" can_edit_text="true" control_name="CameraOffsetScale" decimal_digits="2" follows="top" height="16" increment=".025" initial_val="1" left="276" min_val=".5" max_val="3" name="camera_offset_scale" value="1" width="128"/>
|
||||
<check_box bottom_delta="-24" follows="top" initial_value="false" label="Automatic Edit Camera Movement" left="148" name="edit_camera_movement" tool_tip="Use automatic camera positioning when entering and exiting edit mode"/>
|
||||
<check_box bottom_delta="-20" follows="top" left="148" control_name="SinguOffsetScrollKeys" label="Scrolling with control and/or shift held adjusts camera position" name="scroll_keys"/>
|
||||
<check_box bottom_delta="-18" follows="top" label="Automatic Edit Camera Movement" name="edit_camera_movement" tool_tip="Use automatic camera positioning when entering and exiting edit mode"/>
|
||||
<check_box bottom_delta="-18" follows="top" height="16" initial_value="false" label="Automatic Appearance Camera Movement" left="148" name="appearance_camera_movement" tool_tip="Use automatic camera positioning while in edit mode"/>
|
||||
<check_box bottom_delta="-18" follows="top" height="16" initial_value="false" label="Unsit Avatar on Camera Reset" left="148" name="unsit_on_camera_reset" tool_tip="Stand up automatically when you press Esc and the camera switches to third person mode"/>
|
||||
<check_box bottom_delta="-18" follows="top" height="16" label="Disable Camera Constraints" left="148" control_name="DisableCameraConstraints" name="DisableCameraConstraints" tool_tip="Prevent the camera from automatically zooming when you approach walls, objects, etc., too closely."/>
|
||||
|
||||
Reference in New Issue
Block a user