hello, I been looking into a way on how to change the Luna plus launcher download/patcher progress bar from vertical to horizontal I've narrowed down the code where it is but no luck on how to fix it up to do it.
I know I could use the old Luna launcher but every time I try using it and adding ftp info and all, all it gives me is "cannot verify the version" error even with same info from using plus launcher
so I tried just fixing up the code to try get almost like like old Luna version I just can't figure out how to. or at least rotate the progress bar 90 degrees or change it to vertical to horizontal
but as a not really high skilled programmer I cannot figure out how to do it. any help would be nice
in MainDialog.cpp it should be this that changes it
I know I could use the old Luna launcher but every time I try using it and adding ftp info and all, all it gives me is "cannot verify the version" error even with same info from using plus launcher
so I tried just fixing up the code to try get almost like like old Luna version I just can't figure out how to. or at least rotate the progress bar 90 degrees or change it to vertical to horizontal
but as a not really high skilled programmer I cannot figure out how to do it. any help would be nice
in MainDialog.cpp it should be this that changes it
Code:
void CMainDialog::PutProgress( double ratio, bool isInstant )
{
if(m_progress.m_value == ratio)
{
return;
}
else if( 0 >= ratio ||
m_progress.m_value > ratio )
{
CxImage image;
mImage.Crop(
theApp.GetConfig().mProgressPosition.mRect,
&image);
const CRect rect(
theApp.GetConfig().mProgressPosition.mPoint,
theApp.GetConfig().mProgressPosition.mRect.Size());
m_backgroundImage.Mix(
image,
CxImage::OpDstCopy,
-rect.left,
rect.bottom - m_backgroundImage.GetHeight());
m_progress.m_value = 0;
InvalidateRect(
rect,
FALSE);
return;
}
const int offset = theApp.GetConfig().mProgressCellPosition.mRect.Height() / 2;
LONG begin = m_progress.m_value * theApp.GetConfig().mProgressPosition.mRect.Height();
LONG end = ratio * theApp.GetConfig().mProgressPosition.mRect.Height();
if(begin == end)
{
begin = begin - offset;
end = end + offset;
}
for(LONG i = begin; i < end; i = i + offset)
{
CRect rect;
rect.left = theApp.GetConfig().mProgressCellPosition.mPoint.x;
rect.top = theApp.GetConfig().mProgressPosition.mPoint.y + theApp.GetConfig().mProgressPosition.mRect.Height() - theApp.GetConfig().mProgressCellPosition.mRect.Height() - i;
rect.right = rect.left + theApp.GetConfig().mProgressCellPosition.mRect.Width();
rect.bottom = rect.top + theApp.GetConfig().mProgressCellPosition.mRect.Height();
if(rect.bottom > theApp.GetConfig().mProgressPosition.mPoint.y + theApp.GetConfig().mProgressPosition.mRect.Height())
{
continue;
}
else if(rect.top < theApp.GetConfig().mProgressPosition.mPoint.y)
{
continue;
}
m_backgroundImage.Mix(
m_progress.m_cellImage,
CxImage::OpDstCopy,
-rect.left,
rect.bottom - m_backgroundImage.GetHeight(),
true);
if(isInstant)
{
continue;
}
InvalidateRect(
rect,
FALSE);
}
m_progress.m_value = ratio;
InvalidateRect(
theApp.GetConfig().mProgressPosition.mRect,
FALSE);
}