public void SendCustonNameChanged(string customName, int index) { if (m_syncing) { return; } var msg = new SetCustomButtonName(); msg.EntityId = m_panel.EntityId; msg.CustomName = customName; msg.Index = index; Sync.Layer.SendMessageToAll(ref msg); }
private static void OnButtonCustomNameChanged(MySyncButtonPanel syncObject, ref SetCustomButtonName msg, MyNetworkClient sender) { syncObject.m_panel.SetButtonName(msg.CustomName, msg.Index); }
private static void OnButtonCustomNameChanged(MySyncButtonPanel syncObject, ref SetCustomButtonName msg, MyNetworkClient sender) { syncObject.m_panel.SetButtonName(msg.CustomName,msg.Index); }
public void SendCustonNameChanged(string customName, int index) { if (m_syncing) return; var msg = new SetCustomButtonName(); msg.EntityId = m_panel.EntityId; msg.CustomName = customName; msg.Index = index; Sync.Layer.SendMessageToAll(ref msg); }
private static void OnButtonCustomNameChanged(MySyncButtonPanel syncObject, ref SetCustomButtonName msg, MyNetworkClient sender) { syncObject.m_panel.SetButtonName(msg.CustomName, msg.Index); if (Sync.IsServer) { Sync.Layer.SendMessageToAllButOne(ref msg, sender.SteamUserId); } }
private static void OnButtonCustomNameChanged(MySyncButtonPanel syncObject, ref SetCustomButtonName msg, MyNetworkClient sender) { syncObject.m_panel.SetButtonName(msg.CustomName,msg.Index); if (Sync.IsServer) { Sync.Layer.SendMessageToAllButOne(ref msg, sender.SteamUserId); } }