Merge branch 'master' of https://github.com/FirestormViewer/phoenix-firestorm
commit
f2a92c5420
|
|
@ -999,6 +999,13 @@ void AOEngine::playAnimation(const LLUUID& animation)
|
|||
}
|
||||
|
||||
LLViewerInventoryItem* item = gInventory.getItem(animation);
|
||||
|
||||
if (!item)
|
||||
{
|
||||
LL_WARNS("AOEngine") << "Inventory item for animation " << animation << " not found." << LL_ENDL;
|
||||
return;
|
||||
}
|
||||
|
||||
AOSet::AOAnimation anim;
|
||||
anim.mName = item->LLInventoryItem::getName();
|
||||
anim.mInventoryUUID = item->getUUID();
|
||||
|
|
|
|||
|
|
@ -1034,6 +1034,29 @@ bool LLAppViewerWin32::reportCrashToBugsplat(void* pExcepInfo)
|
|||
return false;
|
||||
}
|
||||
|
||||
bool LLAppViewerWin32::initWindow()
|
||||
{
|
||||
// This is a workaround/hotfix for a change in Windows 11 24H2 (and possibly later)
|
||||
// Where the window width and height need to correctly reflect an available FullScreen size
|
||||
if (gSavedSettings.getBOOL("FullScreen"))
|
||||
{
|
||||
DEVMODE dev_mode;
|
||||
::ZeroMemory(&dev_mode, sizeof(DEVMODE));
|
||||
dev_mode.dmSize = sizeof(DEVMODE);
|
||||
if (EnumDisplaySettings(NULL, ENUM_CURRENT_SETTINGS, &dev_mode))
|
||||
{
|
||||
gSavedSettings.setU32("WindowWidth", dev_mode.dmPelsWidth);
|
||||
gSavedSettings.setU32("WindowHeight", dev_mode.dmPelsHeight);
|
||||
}
|
||||
else
|
||||
{
|
||||
LL_WARNS("AppInit") << "Unable to set WindowWidth and WindowHeight for FullScreen mode" << LL_ENDL;
|
||||
}
|
||||
}
|
||||
|
||||
return LLAppViewer::initWindow();
|
||||
}
|
||||
|
||||
void LLAppViewerWin32::initLoggingAndGetLastDuration()
|
||||
{
|
||||
LLAppViewer::initLoggingAndGetLastDuration();
|
||||
|
|
|
|||
|
|
@ -46,6 +46,7 @@ public:
|
|||
bool reportCrashToBugsplat(void* pExcepInfo) override;
|
||||
|
||||
protected:
|
||||
bool initWindow() override; // Override to initialize the viewer's window.
|
||||
void initLoggingAndGetLastDuration() override; // Override to clean stack_trace info.
|
||||
void initConsole() override; // Initialize OS level debugging console.
|
||||
bool initHardwareTest() override; // Win32 uses DX9 to test hardware.
|
||||
|
|
|
|||
|
|
@ -433,10 +433,13 @@ bool LLFloaterWorldMap::postBuild()
|
|||
F32 slider_zoom = mMapView->getZoom();
|
||||
mZoomSlider->setValue(slider_zoom);
|
||||
|
||||
mTrackCtrlsPanel = getChild<LLPanel>("layout_panel_4");
|
||||
mSearchButton = getChild<LLButton>("DoSearch");
|
||||
|
||||
// <FS:Ansariel> Use own expand/collapse function
|
||||
//getChild<LLPanel>("expand_btn_panel")->setMouseDownCallback(boost::bind(&LLFloaterWorldMap::onExpandCollapseBtn, this));
|
||||
|
||||
setDefaultBtn(NULL);
|
||||
mTrackCtrlsPanel->setDefaultBtn(nullptr);
|
||||
|
||||
onChangeMaturity();
|
||||
|
||||
|
|
@ -784,7 +787,7 @@ void LLFloaterWorldMap::trackAvatar( const LLUUID& avatar_id, const std::string&
|
|||
{
|
||||
LLTracker::stopTracking(false);
|
||||
}
|
||||
setDefaultBtn("Teleport");
|
||||
mTrackCtrlsPanel->setDefaultBtn(mTeleportButton);
|
||||
}
|
||||
|
||||
void LLFloaterWorldMap::trackLandmark( const LLUUID& landmark_item_id )
|
||||
|
|
@ -829,7 +832,7 @@ void LLFloaterWorldMap::trackLandmark( const LLUUID& landmark_item_id )
|
|||
{
|
||||
LLTracker::stopTracking(false);
|
||||
}
|
||||
setDefaultBtn("Teleport");
|
||||
mTrackCtrlsPanel->setDefaultBtn(mTeleportButton);
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -838,7 +841,7 @@ void LLFloaterWorldMap::trackEvent(const LLItemInfo &event_info)
|
|||
mShowParcelInfo = false;
|
||||
mTrackedStatus = LLTracker::TRACKING_LOCATION;
|
||||
LLTracker::trackLocation(event_info.getGlobalPosition(), event_info.getName(), event_info.getToolTip(), LLTracker::LOCATION_EVENT);
|
||||
setDefaultBtn("Teleport");
|
||||
mTrackCtrlsPanel->setDefaultBtn(mTeleportButton);
|
||||
}
|
||||
|
||||
void LLFloaterWorldMap::trackGenericItem(const LLItemInfo &item)
|
||||
|
|
@ -846,7 +849,7 @@ void LLFloaterWorldMap::trackGenericItem(const LLItemInfo &item)
|
|||
mShowParcelInfo = false;
|
||||
mTrackedStatus = LLTracker::TRACKING_LOCATION;
|
||||
LLTracker::trackLocation(item.getGlobalPosition(), item.getName(), item.getToolTip(), LLTracker::LOCATION_ITEM);
|
||||
setDefaultBtn("Teleport");
|
||||
mTrackCtrlsPanel->setDefaultBtn(mTeleportButton);
|
||||
}
|
||||
|
||||
void LLFloaterWorldMap::trackLocation(const LLVector3d& pos_global)
|
||||
|
|
@ -860,7 +863,7 @@ void LLFloaterWorldMap::trackLocation(const LLVector3d& pos_global)
|
|||
S32 world_x = S32(pos_global.mdV[0] / 256);
|
||||
S32 world_y = S32(pos_global.mdV[1] / 256);
|
||||
LLWorldMapMessage::getInstance()->sendMapBlockRequest(world_x, world_y, world_x, world_y, true);
|
||||
setDefaultBtn("");
|
||||
mTrackCtrlsPanel->setDefaultBtn(nullptr);
|
||||
|
||||
// clicked on a non-region - turn off coord display
|
||||
enableTeleportCoordsDisplay( false );
|
||||
|
|
@ -874,7 +877,7 @@ void LLFloaterWorldMap::trackLocation(const LLVector3d& pos_global)
|
|||
LLTracker::stopTracking(false);
|
||||
LLWorldMap::getInstance()->setTracking(pos_global);
|
||||
LLWorldMap::getInstance()->setTrackingInvalid();
|
||||
setDefaultBtn("");
|
||||
mTrackCtrlsPanel->setDefaultBtn(nullptr);
|
||||
|
||||
// clicked on a down region - turn off coord display
|
||||
enableTeleportCoordsDisplay( false );
|
||||
|
|
@ -925,7 +928,7 @@ void LLFloaterWorldMap::trackLocation(const LLVector3d& pos_global)
|
|||
// we have a valid region - turn on coord display
|
||||
enableTeleportCoordsDisplay( true );
|
||||
|
||||
setDefaultBtn("Teleport");
|
||||
mTrackCtrlsPanel->setDefaultBtn(mTeleportButton);
|
||||
}
|
||||
|
||||
// enable/disable teleport destination coordinates
|
||||
|
|
@ -1131,7 +1134,7 @@ void LLFloaterWorldMap::trackURL(const std::string& region_name, S32 x_coord, S3
|
|||
local_pos.mV[VZ] = (F32)z_coord;
|
||||
LLVector3d global_pos = sim_info->getGlobalPos(local_pos);
|
||||
trackLocation(global_pos);
|
||||
setDefaultBtn("Teleport");
|
||||
mTrackCtrlsPanel->setDefaultBtn(mTeleportButton);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -1569,11 +1572,11 @@ void LLFloaterWorldMap::updateSearchEnabled()
|
|||
if (childHasKeyboardFocus("location") &&
|
||||
mLocationEditor->getValue().asString().length() > 0)
|
||||
{
|
||||
setDefaultBtn("DoSearch");
|
||||
mTrackCtrlsPanel->setDefaultBtn(mSearchButton);
|
||||
}
|
||||
else
|
||||
{
|
||||
setDefaultBtn(NULL);
|
||||
mTrackCtrlsPanel->setDefaultBtn(nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -2033,7 +2036,7 @@ void LLFloaterWorldMap::onCommitSearchResult()
|
|||
|
||||
mLocationEditor->setValue(sim_name);
|
||||
trackLocation(pos_global);
|
||||
setDefaultBtn("Teleport");
|
||||
mTrackCtrlsPanel->setDefaultBtn(mTeleportButton);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -232,6 +232,7 @@ private:
|
|||
LLButton* mShowDestinationButton = nullptr;
|
||||
LLButton* mCopySlurlButton = nullptr;
|
||||
LLButton* mGoHomeButton = nullptr;
|
||||
LLButton* mSearchButton = nullptr;
|
||||
|
||||
LLCheckBoxCtrl* mPeopleCheck = nullptr;
|
||||
LLCheckBoxCtrl* mInfohubCheck = nullptr;
|
||||
|
|
@ -258,6 +259,8 @@ private:
|
|||
|
||||
LLSliderCtrl* mZoomSlider = nullptr;
|
||||
|
||||
LLPanel* mTrackCtrlsPanel = nullptr;
|
||||
|
||||
boost::signals2::connection mTeleportFinishConnection;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -591,10 +591,7 @@
|
|||
name="location"
|
||||
select_on_focus="true"
|
||||
tool_tip="Type the name of a region"
|
||||
width="134">
|
||||
<search_editor.commit_callback
|
||||
function="WMap.Location" />
|
||||
</search_editor>
|
||||
width="134"/>
|
||||
<button
|
||||
follows="top|right"
|
||||
height="23"
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
テクスチャ
|
||||
</text>
|
||||
<button label="IDをコンソールにダンプ" label_selected="ダンプ" name="Dump"/>
|
||||
<panel name="scroll_content_panel">
|
||||
<panel name="scroll_content_panel2">
|
||||
<texture_picker label="髪" name="hair-baked"/>
|
||||
<texture_picker label="髪" name="hair_grain"/>
|
||||
<texture_picker label="髪のアルファ" name="hair_alpha"/>
|
||||
|
|
|
|||
|
|
@ -589,10 +589,7 @@
|
|||
name="location"
|
||||
select_on_focus="true"
|
||||
tool_tip="Type the name of a region"
|
||||
width="134">
|
||||
<search_editor.commit_callback
|
||||
function="WMap.Location" />
|
||||
</search_editor>
|
||||
width="134"/>
|
||||
<button
|
||||
follows="top|right"
|
||||
height="23"
|
||||
|
|
|
|||
|
|
@ -591,10 +591,7 @@
|
|||
name="location"
|
||||
select_on_focus="true"
|
||||
tool_tip="Type the name of a region"
|
||||
width="134">
|
||||
<search_editor.commit_callback
|
||||
function="WMap.Location" />
|
||||
</search_editor>
|
||||
width="134"/>
|
||||
<button
|
||||
follows="top|right"
|
||||
height="23"
|
||||
|
|
|
|||
Loading…
Reference in New Issue