Skip to content

Commit

Permalink
dotnet-format
Browse files Browse the repository at this point in the history
  • Loading branch information
andybak committed Apr 3, 2024
1 parent 1ff61b0 commit 43fb182
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Assets/Scripts/GUI/LoadSketchButton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public struct MenuButton
[SerializeField] private Material m_WarningMaterial;
[SerializeField] private Material m_ErrorMaterial;
[SerializeField] private bool m_IsMergeStrokesButton;

private bool m_ThumbnailLoaded = false;
private bool m_SizeOk = true;
private Vector2 m_DynamicUvScale;
Expand Down
10 changes: 5 additions & 5 deletions Assets/Scripts/GUI/SavedStrokesPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ override public void InitPanel()
m_IconScriptsOnNormalPage.Add(m_IconsOnNormalPage[i].GetComponent<BaseButton>());
}
}

public override bool IsInButtonMode(ModeButton button)
{
GalleryButton galleryButton = button as GalleryButton;
return galleryButton &&
((galleryButton.m_ButtonType == GalleryButton.Type.Local && m_CurrentSketchSet == SketchSetType.User) ||
(galleryButton.m_ButtonType == GalleryButton.Type.Drive && m_CurrentSketchSet == SketchSetType.Drive));
}

override protected void OnUpdateActive()
{
// If we're not active, hide all our preview panels
Expand Down Expand Up @@ -97,7 +97,7 @@ override protected void OnEnablePanel()
m_SketchSet.RequestRefresh();
}
}

private void OnSketchSetDirty()
{
ComputeNumPages();
Expand Down Expand Up @@ -130,7 +130,7 @@ private void ComputeNumPages()
int normalPages = ((remainingSketches - 1) / m_IconsOnNormalPage.Length) + 1;
m_NumPages = 1 + normalPages;
}

void SetVisibleSketchSet(SketchSetType type)
{
if (m_CurrentSketchSet != type)
Expand Down Expand Up @@ -177,7 +177,7 @@ void SetVisibleSketchSet(SketchSetType type)
}
}
}

protected override void OnStart()
{
// Initialize icons.
Expand Down

0 comments on commit 43fb182

Please sign in to comment.