private void TextPanel_ClientRemoved(ulong playerId) { if (playerId == m_userId) { SyncObject.SendChangeOpenMessage(false); } }
private void CloseWindow(bool isPublic) { MyGuiScreenGamePlay.ActiveGameplayScreen = MyGuiScreenGamePlay.TmpGameplayScreenHolder; MyGuiScreenGamePlay.TmpGameplayScreenHolder = null; MySession.Static.Gpss.ScanText(m_textBox.Description.Text.ToString(), PublicTitle); SyncObject.SendChangeDescriptionMessage(m_textBox.Description.Text, isPublic); SyncObject.SendChangeOpenMessage(false); }
public void OpenWindow(bool isEditable, bool sync, bool isPublic) { if (sync) { SyncObject.SendChangeOpenMessage(true, isEditable, Sync.MyId, isPublic); return; } m_isEditingPublic = isPublic; CreateTextBox(isEditable, isPublic ? PublicDescription : PrivateDescription, isPublic); MyGuiScreenGamePlay.TmpGameplayScreenHolder = MyGuiScreenGamePlay.ActiveGameplayScreen; MyScreenManager.AddScreen(MyGuiScreenGamePlay.ActiveGameplayScreen = m_textBox); }
private void CloseWindow(bool isPublic) { MyGuiScreenGamePlay.ActiveGameplayScreen = MyGuiScreenGamePlay.TmpGameplayScreenHolder; MyGuiScreenGamePlay.TmpGameplayScreenHolder = null; MySession.Static.Gpss.ScanText(m_textBox.Description.Text.ToString(), PublicTitle); foreach (var block in CubeGrid.CubeBlocks) { if (block.FatBlock != null && block.FatBlock.EntityId == EntityId) { SyncObject.SendChangeDescriptionMessage(m_textBox.Description.Text, isPublic); SyncObject.SendChangeOpenMessage(false); return; } } }