Skip to content

SavePanel

Graydon edited this page Mar 21, 2017 · 8 revisions

public class SavePanel

Base Class: LoadSavePanelBase<SaveGameMetaData>

Fields

public UIComponent[] m_TabFocusList
private UIListBox m_FileList
private UITextField m_SaveName
private UITextureSprite m_SnapShotSprite
private UILabel m_CityName
private UICheckBox m_UseCloud
private UIButton m_SaveButton
private Task m_PackageSaveTask
private Task m_SnapshotImageTask
private object m_ImagesLock
private Image m_SnapshotImage
private Image m_SnapshotSteamImage
private static string m_LastSaveName
private static bool m_IsSaving
public const int kPreviewWidth = 400
public const int kPreviewHeight = 224

Properties

public static string lastLoadedName { set; }
public static bool isSaving { get; }

Constructors

static SavePanel()

Methods

protected void Awake()
private void OnVisibilityChanged(UIComponent comp, bool visible)
private IEnumerator Snapshot(int width, int height)
private void OnResolutionChanged(UIComponent comp, Vector2 previousResolution, Vector2 currentResolution)
private void OnEnterFocus(UIComponent comp, UIFocusEventParameter p)
public void OnKeyDown(UIComponent comp, UIKeyEventParameter p)
protected void Refresh()
public void OnSaveNameChanged(UIComponent comp, string text)
public void OnSaveSelectionChanged(UIComponent comp, int index)
private void OnItemDoubleClick(UIComponent comp, int sel)
public void QuickSave(string savename)
public bool SaveGame(string savename)
private bool CheckValid()
public void Update()
public void OnSave()
private void SaveRoutine(string fileName, string savePath, bool useCloud)
private IEnumerator SaveGame(string saveName, string savePath, bool useCloud)
private static string GetSavePathName(string saveName)

Clone this wiki locally