HomePortalFAQSearchMemberlistUsergroupsRegisterLog in
Meet the new KITO admins & hear their plans here.
You can use google search to find threads and posts here now. Example

Share | 
 

 A fix for body selector glitch

View previous topic View next topic Go down 
AuthorMessage
Hamilton

avatar

Game username : Hamilton
Server : Myatar Legends // Dragon's Den
Female Posts : 380
Join date : 2011-10-20
Age : 31
Location : everywhere

PostSubject: A fix for body selector glitch   Tue Feb 09, 2016 7:20 pm

A long known problem in my old body selector source is that if you navigated away from page1 and then returned to it, things from page2 would jump into the spaces under the body selector itself. Very messy.

This quick change should prevent that from happening.

Go to your source and open the MagixCharScreenManager. Scroll to, or run a search for, the section labeled as //Mesh Page1.

Yours (if you are in need of this fix in the firstplace) will look like this:

Quote :
//Mesh page 1
if(page==PAGE_CUSTOM1)
{
if(!mName->isVisible())mName->show();
mName->setPosition(0.05,0.1);
mText[0]->setPosition(0.25,0.2);
mText[0]->setCaption(meshName("Body",bodyID));

for(int i=1;1<1;i++)
{
if(!mLButton[0]->isVisible())mLButton[0]->show();
if(!mRButton[0]->isVisible())mRButton[0]->show();
if(!mText[0]->isVisible())mText[0]->show();
mText[0]->setLeft(0.25);
}
mLButton[0]->setPosition(0.05,0.2);
mRButton[0]->setPosition(0.4,0.2);
for(int i=1;1<1;i++)
{
if(mSlider[1]->isVisible())mSlider[1]->hide();
if(mSliderMarker[1]->isVisible())mSliderMarker[1]->hide();
}
if(mColourBox->isVisible())mColourBox->hide();
mUnit->setColours(colourVal[0],colourVal[1],colourVal[2],colourVal[3],colourVal[4],colourVal[5],colourVal[6],colourVal[7],colourVal[8],colourVal[9],colourVal[10]);
if(mBackdrop->isVisible())mBackdrop->hide();
mName->getParent()->setMaterialName("GUIMat/StartScreen");
mBackButton->setPosition(0.05,0.6);
mNextButton->setPosition(0.3,0.6);
mNextButtonText->setCaption("Next");
if(mDeleteButton->isVisible())mDeleteButton->hide();
return;
}


Make the changes that I have ighlighted for you in red.

Quote :
//Mesh page 1
if(page==PAGE_CUSTOM1)
{
if(!mName->isVisible())mName->show();
mName->setPosition(0.05,0.1);
mText[0]->setPosition(0.25,0.2);
mText[0]->setCaption(meshName("Body",bodyID));
mText[1]->setCaption(" ");
mText[2]->setCaption(" ");
mText[3]->setCaption(" ");


for(int i=0;i<MAX_CHARSCREENTEXT;i++)
{
if(!mLButton[i]->isVisible())mLButton[i]->show();
if(!mRButton[i]->isVisible())mRButton[i]->show();
if(!mText[i]->isVisible())mText[i]->show();
mText[i]->setLeft(0.25);

}
mLButton[0]->setPosition(0.05,0.2);
mRButton[0]->setPosition(0.4,0.2);
mLButton[1]->hide();
mRButton[1]->hide();
mLButton[2]->hide();
mRButton[2]->hide();
mLButton[3]->hide();
mRButton[3]->hide();

for(int i=0;i<3;i++)
{
if(mSlider[i]->isVisible())mSlider[i]->hide();
if(mSliderMarker[i]->isVisible())mSliderMarker[i]->hide();

}
if(mColourBox->isVisible())mColourBox->hide();
mUnit->setColours(colourVal[0],colourVal[1],colourVal[2],colourVal[3],colourVal[4],colourVal[5],colourVal[6],colourVal[7],colourVal[8],colourVal[9],colourVal[10]);
if(mBackdrop->isVisible())mBackdrop->hide();
mName->getParent()->setMaterialName("GUIMat/StartScreen");
mBackButton->setPosition(0.05,0.6);
mNextButton->setPosition(0.3,0.6);
mNextButtonText->setCaption("Next");
if(mDeleteButton->isVisible())mDeleteButton->hide();
return;
}

In short, i changed back what was trying to tell the page to only have 1 selector and then those 3 re-visible selectors i have hidden the buttons and given them a space (literally blank) as what their caption should be.

Build the source and give a good test-run. There's still a chance I missed something. This is at least 3 different fixes from 2 different sections of my own game, crammed into a single section. /shrugs it worked on my page4, why shouldn't it work on your page1? 0:3
Back to top Go down
lazyzim

™
avatar

Server : Dragon's Den
Male Posts : 744
Join date : 2011-11-27

PostSubject: Re: A fix for body selector glitch   Tue Feb 09, 2016 11:20 pm

OK thanks Hammy will give it a go.
Back to top Go down
Van.

avatar

Game username : Van
Server : Last Time (project in working)
Male Posts : 19
Join date : 2017-07-25
Age : 20
Location : in the dark

PostSubject: Re: A fix for body selector glitch   Mon Sep 18, 2017 8:51 pm

Thanks Hamilton!
Back to top Go down
Sponsored content




PostSubject: Re: A fix for body selector glitch   

Back to top Go down
 
A fix for body selector glitch
View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Keeping I.T. Open :: DOWNLOADABLE CONTENT :: Programming Features-
Jump to: