562 if tab == 1 then
563 if change_name then
564 imgui.SetCursorPosY(62 * MONET_DPI_SCALE)
565 imgui.Text(u8" Ваше Имя и Фамилия: ")
566 imgui.SameLine()
567 imgui.SetCursorPosY(58 * MONET_DPI_SCALE)
568 imgui.PushItemWidth(200)
569 imgui.InputText(u8'##name_surname', input_name_surname, 256)
570 imgui.SameLine()
571 if imgui.Button(u8'Сохранить##name_surname') then
572 name_surname = u8:decode(ffi.string(input_name_surname))
573 inicfg.save(settings, my_ini)
574 change_name = false
575 end
576 else
577 imgui.SetCursorPosY(62 * MONET_DPI_SCALE)
578 imgui.Text(u8" Ваше Имя и Фамилия: ")
579 imgui.SameLine()
580 imgui.Text(u8(name_surname))
581 imgui.SameLine()
582 imgui.SetCursorPosY(58 * MONET_DPI_SCALE)
583 if imgui.Button(u8'Изменить##name_surname') then
584 name_surname = TranslateNick(sampGetPlayerNickname(select(2, sampGetPlayerIdByCharHandle(PLAYER_PED))))
585 input_name_surname = new.char[256](u8(settings.general.name_surname))
586 inicfg.save(settings, my_ini)
587 change_name = true
588 end
589 end
590 imgui.CenterText('Состоит в организации: ' ..fraction)
591 imgui.CenterText('Должность: ' ..rank)
592 if imgui.Combo(u8'Тема', theme, new['const char*'][#themesList](themesList), #themesList) then
593 themes[theme[0]+1].func()
594 iniSave()
595 end
596 if imgui.Combo(u8'Стиль', style, new['const char*'][#stylesList](stylesList), #stylesList) then
597 styles[style[0]+1].func()
598 iniSave()
599 end