Refactor: Moved settings panels to their own classes (#89)
This should not affect any functionalities
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class UISettingsScreenshot : MonoBehaviour
|
||||
{
|
||||
public TMP_InputField _width;
|
||||
public TMP_InputField _height;
|
||||
public Toggle _transparent;
|
||||
public TMP_InputField _gifWidth;
|
||||
public TMP_InputField _gifHeight;
|
||||
public Toggle _gifTransparent;
|
||||
public Button GifButton;
|
||||
|
||||
public int Width => int.Parse(_width.text);
|
||||
public int Height => int.Parse(_height.text);
|
||||
public bool Transparent => _transparent.isOn;
|
||||
|
||||
public int GifWidth => int.Parse(_gifWidth.text);
|
||||
public int GifHeight => int.Parse(_gifHeight.text);
|
||||
public bool GifTransparent => _gifTransparent.isOn;
|
||||
}
|
||||
Reference in New Issue
Block a user