Background color change, better keybinds
This commit is contained in:
@ -58,6 +58,7 @@ struct Context
|
||||
float DefaultPanelHeight = 600; // Height of panel in pixels
|
||||
float DefaultInitialPanelWidth = 600; // Only applies when window first appears
|
||||
int MaxAnnotations = 1000; // Limit number of texel annotations for performance
|
||||
float InitialZoom = 1.0f;
|
||||
};
|
||||
|
||||
Context *GContext = nullptr;
|
||||
@ -191,7 +192,7 @@ bool BeginInspectorPanel(const char *title, ImTextureID texture, ImVec2 textureS
|
||||
}
|
||||
else if (justCreated)
|
||||
{
|
||||
newScale = 1;
|
||||
newScale = GContext->InitialZoom;
|
||||
}
|
||||
|
||||
if (newScale != -1)
|
||||
@ -684,6 +685,11 @@ void SetZoomRate(float rate)
|
||||
GContext->ZoomRate = rate;
|
||||
}
|
||||
|
||||
void SetInitialZoom(float zoom)
|
||||
{
|
||||
GContext->InitialZoom = zoom;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
// [SECTION] Life Cycle
|
||||
//-------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user