MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / onSaveButtonClickFromOptions

Method onSaveButtonClickFromOptions

source/modes/EditorMode.cpp:905–915  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

903}
904
905bool EditorMode::onSaveButtonClickFromOptions(const CEGUI::EventArgs& /*arg*/)
906{
907 if(ODClient::getSingleton().isConnected())
908 {
909 // Send a message to the server telling it we want to drop the creature
910 ClientNotification *clientNotification = new ClientNotification(
911 ClientNotificationType::askSaveMap);
912 ODClient::getSingleton().queueClientNotification(clientNotification);
913 }
914 return true;
915}
916
917bool EditorMode::showQuitMenu(const CEGUI::EventArgs& /*arg*/)
918{

Callers

nothing calls this directly

Calls 2

isConnectedMethod · 0.45

Tested by

no test coverage detected