void OnRename(MyGuiControlButton button) { m_dialog = new MyGuiBlueprintTextDialog( position : m_position, caption : "Enter new name", defaultName : m_blueprintName, maxLenght : maxNameLenght, callBack : delegate(string result) { if (result != null) { ChangeName(result); } }, textBoxWidth: 0.3f ); MyScreenManager.AddScreen(m_dialog); }
void OnRename(MyGuiControlButton button) { m_dialog = new MyGuiBlueprintTextDialog( position : m_position, caption : MyTexts.GetString(MySpaceTexts.ProgrammableBlock_NewScriptName), defaultName : m_selectedItem.ScriptName, maxLenght : maxNameLenght, callBack : delegate(string result) { if (result != null) { m_parent.ChangeName(result); } }, textBoxWidth: 0.3f ); MyScreenManager.AddScreen(m_dialog); }
void OnRename(MyGuiControlButton button) { m_dialog = new MyGuiBlueprintTextDialog( position: m_position, caption: MyTexts.GetString(MySpaceTexts.ProgrammableBlock_NewScriptName), defaultName: m_selectedItem.ScriptName, maxLenght: maxNameLenght, callBack: delegate(string result) { if (result != null) { m_parent.ChangeName(result); } }, textBoxWidth: 0.3f ); MyScreenManager.AddScreen(m_dialog); }
void OnRename(MyGuiControlButton button) { m_dialog = new MyGuiBlueprintTextDialog( position: m_position, caption: "Enter new name", defaultName: m_blueprintName, maxLenght: maxNameLenght, callBack: delegate(string result) { if (result != null) { ChangeName(result); } }, textBoxWidth: 0.3f ); MyScreenManager.AddScreen(m_dialog); }
void OnEditDescription(MyGuiControlButton button) { m_dialog = new MyGuiBlueprintTextDialog( position: m_position, caption: "Enter new description", defaultName: m_loadedPrefab.ShipBlueprints[0].Description, maxLenght: 8000, callBack: delegate(string result) { if (result != null) { ChangeDescription(result); } } ); MyScreenManager.AddScreen(m_dialog); }