mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-18 04:26:49 +00:00
Add some cross-linking for panels that view a single resource
* We add a button with a link icon to indicate that it goes to the resource details. We'll re-use the crosshair as a visual metaphor for any interactive widget that goes to the resource inspector. * To remove any possible confusion, we change the icon for the texture list and locked tabs in the texture viewer to not include the link.
This commit is contained in:
@@ -1173,6 +1173,7 @@ void BufferViewer::SetupMeshView()
|
||||
ui->byteRangeLengthLabel->setVisible(false);
|
||||
ui->byteRangeLength->setVisible(false);
|
||||
|
||||
ui->resourceDetails->setVisible(false);
|
||||
ui->formatSpecifier->setVisible(false);
|
||||
ui->cameraControlsGroup->setVisible(false);
|
||||
|
||||
@@ -2633,6 +2634,16 @@ void BufferViewer::updateWindowTitle()
|
||||
setWindowTitle(m_Ctx.GetResourceName(m_BufferID) + lit(" - Contents"));
|
||||
}
|
||||
|
||||
void BufferViewer::on_resourceDetails_clicked()
|
||||
{
|
||||
if(!m_Ctx.HasResourceInspector())
|
||||
m_Ctx.ShowResourceInspector();
|
||||
|
||||
m_Ctx.GetResourceInspector()->Inspect(m_BufferID);
|
||||
|
||||
ToolWindowManager::raiseToolWindow(m_Ctx.GetResourceInspector()->Widget());
|
||||
}
|
||||
|
||||
void BufferViewer::render_mouseWheel(QWheelEvent *e)
|
||||
{
|
||||
if(m_CurrentCamera)
|
||||
|
||||
Reference in New Issue
Block a user