SL-20145 GLTF specific feature notification
parent
0b85c05f8e
commit
ef33902f22
|
|
@ -50,6 +50,13 @@ BOOL LLFloaterNewFeatureNotification::postBuild()
|
|||
getChild<LLUICtrl>(title_txt)->setValue(getString(title_txt + feature));
|
||||
getChild<LLUICtrl>(dsc_txt)->setValue(getString(dsc_txt + feature));
|
||||
|
||||
if (getKey().asString() == "gltf")
|
||||
{
|
||||
LLRect rect = getRect();
|
||||
// make automatic?
|
||||
reshape(rect.getWidth() + 90, rect.getHeight() + 45);
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -492,6 +492,15 @@ LLPanelFace::~LLPanelFace()
|
|||
unloadMedia();
|
||||
}
|
||||
|
||||
void LLPanelFace::onVisibilityChange(BOOL new_visibility)
|
||||
{
|
||||
if (new_visibility)
|
||||
{
|
||||
gAgent.showLatestFeatureNotification("gltf");
|
||||
}
|
||||
LLPanel::onVisibilityChange(new_visibility);
|
||||
}
|
||||
|
||||
void LLPanelFace::draw()
|
||||
{
|
||||
updateCopyTexButton();
|
||||
|
|
|
|||
|
|
@ -109,6 +109,7 @@ public:
|
|||
|
||||
static void onMaterialOverrideReceived(const LLUUID& object_id, S32 side);
|
||||
|
||||
/*virtual*/ void onVisibilityChange(BOOL new_visibility);
|
||||
/*virtual*/ void draw();
|
||||
|
||||
LLMaterialPtr createDefaultMaterial(LLMaterialPtr current_material)
|
||||
|
|
|
|||
|
|
@ -20,6 +20,15 @@ New inventory features
|
|||
You can now add preview images to inventory items and view a folder in its own window.
|
||||
Learn more in this [https://community.secondlife.com/blogs/entry/13637-new-features-inventory-item-preview-and-single-folder-view/ blogpost]
|
||||
</floater.string>
|
||||
<floater.string name="title_txt_gltf">
|
||||
New GLTF PBR materials support
|
||||
</floater.string>
|
||||
<floater.string name="description_txt_gltf">
|
||||
You can now use expanded material support with the ability to import and edit GLTF Physically Based Rendering (PBR) Materials.
|
||||
In order to support the addition of the GLTF format, some areas in the viewer may appear darker than usual.
|
||||
|
||||
Learn more about [https://wiki.secondlife.com/wiki/PBR_Materials Physically Based Rendering (PBR)]
|
||||
</floater.string>
|
||||
<text
|
||||
type="string"
|
||||
length="1"
|
||||
|
|
@ -37,7 +46,7 @@ New feature
|
|||
<text
|
||||
type="string"
|
||||
length="1"
|
||||
follows="top|left|right"
|
||||
follows="top|left|right|bottom"
|
||||
text_color="White"
|
||||
layout="topleft"
|
||||
left="10"
|
||||
|
|
|
|||
Loading…
Reference in New Issue