Revert "Snapshot floater aesthetics"
This reverts commit 63dcd7ba32.
That commit is nonsense and only shows that Liru has no clue what he is
doing when it comes to the snapshot stuff :/.
And no, I wasn't even AWARE he made this commit, I was just happily
exploring and wanted to make a few snapshots when I suddenly noticed
that several things were BROKEN: the aspect that the fullscreen preview
was shown with was wrong, and when I wanted to limit the aspect of my
feed upload that wasn't possible anymore ?!?!?? WTF
Please don't screw up the hard work of others without at LEAST first
consulting them.
This commit is contained in:
@@ -295,7 +295,6 @@ public:
|
||||
mAvatarPauseHandles.clear();
|
||||
mQualityMouseUpConnection.disconnect();
|
||||
}
|
||||
static void onClickDiscard(void* data);
|
||||
static void onClickKeep(void* data);
|
||||
static void onCommitSave(LLUICtrl* ctrl, void* data);
|
||||
static void onClickNewSnapshot(void* data);
|
||||
@@ -1852,7 +1851,7 @@ void LLFloaterSnapshot::Impl::updateControls(LLFloaterSnapshot* floater, bool de
|
||||
floater->childSetVisible("keep_aspect", is_advance);
|
||||
floater->childSetVisible("type_label3", is_advance);
|
||||
floater->childSetVisible("format_label", is_advance && is_local);
|
||||
floater->childSetVisible("local_format_combo", is_advance && is_local);
|
||||
floater->childSetVisible("local_format_combo", is_local);
|
||||
floater->childSetVisible("layer_types", is_advance);
|
||||
floater->childSetVisible("layer_type_label", is_advance);
|
||||
floater->childSetVisible("aspect_one_label", is_advance);
|
||||
@@ -1864,7 +1863,7 @@ void LLFloaterSnapshot::Impl::updateControls(LLFloaterSnapshot* floater, bool de
|
||||
floater->childSetVisible("keep_open_check", is_advance);
|
||||
floater->childSetVisible("freeze_time_check", is_advance);
|
||||
floater->childSetVisible("auto_snapshot_check", is_advance);
|
||||
floater->childSetVisible("image_quality_slider", is_advance && show_slider);
|
||||
floater->childSetVisible("image_quality_slider", show_slider);
|
||||
floater->childSetVisible("temp_check", is_advance);
|
||||
|
||||
BOOL got_bytes = previewp && previewp->getDataSize() > 0;
|
||||
@@ -1932,23 +1931,6 @@ void LLFloaterSnapshot::Impl::checkAutoSnapshot(LLSnapshotLivePreview* previewp,
|
||||
}
|
||||
}
|
||||
|
||||
// static
|
||||
void LLFloaterSnapshot::Impl::onClickDiscard(void* data)
|
||||
{
|
||||
LLFloaterSnapshot* view = static_cast<LLFloaterSnapshot*>(data);
|
||||
if (gSavedSettings.getBOOL("FreezeTime"))
|
||||
{
|
||||
LLSnapshotLivePreview* previewp = view->impl.getPreviewView();
|
||||
if (previewp && previewp->getShowFreezeFrameSnapshot())
|
||||
previewp->showFreezeFrameSnapshot(false);
|
||||
view->impl.freezeTime(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
view->close();
|
||||
}
|
||||
}
|
||||
|
||||
// static
|
||||
void LLFloaterSnapshot::Impl::onCommitFeedResolution(LLUICtrl* ctrl, void* data)
|
||||
{
|
||||
@@ -2942,7 +2924,6 @@ BOOL LLFloaterSnapshot::postBuild()
|
||||
childSetAction("send_btn", Impl::onClickKeep, this);
|
||||
childSetAction("feed_btn", Impl::onClickKeep, this);
|
||||
childSetCommitCallback("save_btn", Impl::onCommitSave, this);
|
||||
childSetAction("discard_btn", Impl::onClickDiscard, this);
|
||||
|
||||
childSetCommitCallback("image_quality_slider", Impl::onCommitQuality, this);
|
||||
childSetValue("image_quality_slider", gSavedSettings.getS32("SnapshotQuality"));
|
||||
|
||||
Reference in New Issue
Block a user