void OnClickQSave() { // Debug.Log( "Click QSave" ); if (ViNoAPI.DoQuickSave()) { // Q Save Succeeded. BroadcastMessage("DidQuickSave", SendMessageOptions.DontRequireReceiver); } // ToggleActiveMenuPanel(); }
public override void OnGUICustom() { // m_AreaRect = new Rect( Screen.width - m_AreaWidth , 0f , m_AreaWidth , Screen.height ); // GUILayout.BeginArea( m_AreaRect ); if (GUILayout.Button("QuickSave", GUILayout.Width(200f), GUILayout.Height(50f))) { if (ViNoAPI.DoQuickSave()) { Debug.Log("Quick Save succeeded"); } } if (GUILayout.Button("QuickLoad", GUILayout.Width(200f), GUILayout.Height(50f))) { if (ViNoAPI.DoQuickLoad()) { Debug.Log("Quick Load succeeded"); } } // GUILayout.EndArea(); }
public override void OnGUICustom() { m_AreaRect = new Rect(Screen.width - m_AreaWidth, 0f, m_AreaWidth, Screen.height); GUILayout.BeginArea(m_AreaRect); if (quickMenuTex != null) { if (GUILayout.Button(quickMenuTex)) { m_ShowMenu = !m_ShowMenu; } } else { if (GUILayout.Button("Menu", GUILayout.Height(m_ButtonHeight))) { m_ShowMenu = !m_ShowMenu; } } GUILayout.Space(m_VerticalSpace); if (m_ShowMenu) { // TODO. #if true if (GUILayout.Button("QuickSave", GUILayout.Height(m_ButtonHeight))) { Debug.Log("Quick Save"); if (statusLabel != null) { statusLabel.text = "Saved !"; } if (ViNoAPI.DoQuickSave()) { Debug.Log("Quick Save succeeded"); } } GUILayout.Space(m_VerticalSpace); if (GUILayout.Button("QuickLoad", GUILayout.Height(m_ButtonHeight))) { Debug.Log("Quick Load"); if (statusLabel != null) { statusLabel.text = "Load !"; } if (ViNoAPI.DoQuickSave()) { Debug.Log("Quick Load succeeded"); } } #endif GUILayout.Space(m_VerticalSpace); if (GUILayout.Button("Back Log", GUILayout.Height(m_ButtonHeight))) { ViNo.ToggleShowBackLog(); sampleGUI.EnableShowBackLog(true); sampleGUI.EnableShowQuickMenu(false); sampleGUI.EnableShowNextMessage(false); m_ShowMenu = false; } GUILayout.Space(m_VerticalSpace); } GUILayout.EndArea(); }