public MyGuiScreenEditorRenameGroup(MyGuiScreenEditorGroups myGuiScreenEditorGroups, MyObjectGroup group) : base(new Vector2(0.5f, 0.5f), new Vector2(0.33f, 0.85f)) { m_myGuiScreenEditorGroups = myGuiScreenEditorGroups; m_group = group; m_size = MyGuiConstants.TEXTBOX_MEDIUM_SIZE + new Vector2(MyGuiConstants.MESSAGE_BOX_BORDER_AREA_X * 2, 0.1f + MyGuiConstants.MESSAGE_BOX_BORDER_AREA_Y * 2 + MyGuiConstants.MESSAGE_BOX_BUTTON_SIZE.Y); AddCaption(MyTextsWrapperEnum.EditorGroupsRenameGroup, MyGuiConstants.LABEL_TEXT_COLOR); m_nameTextbox = new MyGuiControlTextbox(this, new Vector2(0, 0.1f + MyGuiConstants.TEXTBOX_MEDIUM_SIZE.Y / 2 - m_size.Value.Y / 2), MyGuiControlPreDefinedSize.MEDIUM, group.Name.ToString(), MAXIMUM_GROUP_NAME_LENGTH, MyGuiConstants.LABEL_TEXT_COLOR, MyGuiConstants.LABEL_TEXT_SCALE, MyGuiControlTextboxType.NORMAL); Controls.Add(m_nameTextbox); AddOkAndCancelButtonControls(); }
public MyGuiScreenEditorRenameGroup(MyGuiScreenEditorGroups myGuiScreenEditorGroups, MyObjectGroup group) : base(new Vector2(0.5f, 0.5f), new Vector2(0.33f, 0.85f)) { m_myGuiScreenEditorGroups = myGuiScreenEditorGroups; m_group = group; m_size = MyGuiConstants.TEXTBOX_MEDIUM_SIZE + new Vector2(MyGuiConstants.MESSAGE_BOX_BORDER_AREA_X*2, 0.1f + MyGuiConstants.MESSAGE_BOX_BORDER_AREA_Y*2 + MyGuiConstants.MESSAGE_BOX_BUTTON_SIZE.Y); AddCaption(MyTextsWrapperEnum.EditorGroupsRenameGroup, MyGuiConstants.LABEL_TEXT_COLOR); m_nameTextbox = new MyGuiControlTextbox(this, new Vector2(0, 0.1f + MyGuiConstants.TEXTBOX_MEDIUM_SIZE.Y / 2 - m_size.Value.Y / 2), MyGuiControlPreDefinedSize.MEDIUM, group.Name.ToString(), MAXIMUM_GROUP_NAME_LENGTH, MyGuiConstants.LABEL_TEXT_COLOR, MyGuiConstants.LABEL_TEXT_SCALE, MyGuiControlTextboxType.NORMAL); Controls.Add(m_nameTextbox); AddOkAndCancelButtonControls(); }