mirror of
https://gitlab.com/Syping/gta5view-cmd
synced 2024-11-23 14:10:23 +01:00
update --help command
This commit is contained in:
parent
2be89c5aa5
commit
4c9977307f
1 changed files with 6 additions and 2 deletions
8
main.cpp
8
main.cpp
|
@ -118,6 +118,9 @@ int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
QSize snapmaticRes(960, 536);
|
QSize snapmaticRes(960, 536);
|
||||||
QSize avatarRes(470, 470);
|
QSize avatarRes(470, 470);
|
||||||
|
int avatarZoneX = 145;
|
||||||
|
int avatarZoneY = 66;
|
||||||
|
|
||||||
if (!avatarMode)
|
if (!avatarMode)
|
||||||
{
|
{
|
||||||
QImage snapmaticImage(snapmaticRes, QImage::Format_RGB888);
|
QImage snapmaticImage(snapmaticRes, QImage::Format_RGB888);
|
||||||
|
@ -182,7 +185,7 @@ int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
image = image.scaled(avatarRes, Qt::IgnoreAspectRatio, Qt::SmoothTransformation);
|
image = image.scaled(avatarRes, Qt::IgnoreAspectRatio, Qt::SmoothTransformation);
|
||||||
}
|
}
|
||||||
snapmaticPainter.drawImage(145 + diffWidth, 66 + diffHeight, image);
|
snapmaticPainter.drawImage(avatarZoneX + diffWidth, avatarZoneY + diffHeight, image);
|
||||||
snapmaticPainter.end();
|
snapmaticPainter.end();
|
||||||
image = snapmaticImage;
|
image = snapmaticImage;
|
||||||
}
|
}
|
||||||
|
@ -248,12 +251,13 @@ int main(int argc, char *argv[])
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
cout << "gta5view Command Line" << endl << endl;
|
cout << "gta5view Command Line" << endl << endl;
|
||||||
cout << "Usage: " << args.at(0).toStdString().c_str() << " source target -format" << endl;
|
cout << "Usage: " << args.at(0).toStdString().c_str() << " source target -format -mode" << endl;
|
||||||
if (args.at(1) == "--help")
|
if (args.at(1) == "--help")
|
||||||
{
|
{
|
||||||
cout << "Convert-only: <autodef> (auto file name at convert)" << endl;
|
cout << "Convert-only: <autodef> (auto file name at convert)" << endl;
|
||||||
cout << "Convert-only: <autoext> (auto file extension at convert)" << endl;
|
cout << "Convert-only: <autoext> (auto file extension at convert)" << endl;
|
||||||
cout << "Formats: jpg pgta g5e" << endl;
|
cout << "Formats: jpg pgta g5e" << endl;
|
||||||
|
cout << "Modes: a p d aiar akar piar pkar diar dkar" << endl;
|
||||||
}
|
}
|
||||||
return 255;
|
return 255;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue