Skip to content

SaveMapPanel

Graydon edited this page Mar 21, 2017 · 9 revisions

public class SaveMapPanel

Base Class: LoadSavePanelBase<MapMetaData>

Fields

public Texture m_DefaultMapPreviewTexture
public UIComponent[] m_TabFocusList
private FileSystemReporter[] m_FileSystemReporter
private List<string> m_SnapshotPaths
private UITextureSprite m_SnapShotSprite
private UILabel m_CurrentSnapShot
private int m_CurrentSnapshot
private UIButton m_SaveButton
private UITextField m_MapName
private UICheckBox m_WaterTile0
private UICheckBox m_ShipConnections
private UICheckBox m_TrainConnections
private UICheckBox m_PlaneConnections
private UICheckBox m_RoadInConnections
private UICheckBox m_RoadOutConnections
private UICheckBox m_ResourceOil
private UICheckBox m_ResourceOre
private UICheckBox m_ResourceForest
private UICheckBox m_ResourceFertility
private UIListBox m_FileList
private UITextField m_SaveName
private UICheckBox m_Publish
private Task m_PackageSaveTask
private static string m_LastSaveName
private static string m_LastMapName
private static bool m_LastPublished
private static string[] m_Extensions
public const int kPreviewWidth = 400
public const int kPreviewHeight = 224

Properties

public static string lastLoadedName { set; }
public static string lastLoadedAsset { set; }
public static bool lastPublished { set; }

Constructors

static SaveMapPanel()

Methods

protected void Awake()
private void OnVisibilityChanged(UIComponent comp, bool visible)
private void OnResolutionChanged(UIComponent comp, Vector2 previousResolution, Vector2 currentResolution)
private void OnEnterFocus(UIComponent comp, UIFocusEventParameter p)
public void OnKeyDown(UIComponent comp, UIKeyEventParameter p)
private void UpdateRequirements()
private void Refresh(object sender, ReporterEventArgs e)
private void FetchSnapshots()
private void RefreshSnapshot()
private void PreviousSnapshot(UIComponent c, UIMouseEventParameter p)
private void NextSnapshot(UIComponent c, UIMouseEventParameter 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)
private bool CheckValid()
public void Update()
public void OnSave()
private void SaveRoutine(string fileName, string mapName, string savePath, bool publish)
private IEnumerator SaveMap(string saveName, string mapName, string savePath, bool publish)
public void OpenSnapshotFolders()
private static string GetSavePathName(string saveName)

Clone this wiki locally