So I'm done I think, I'll mark the thread as yet to be implemented untill I recieve some feedback if my changes has been successfully implemented.
https://dl.dropboxusercontent.com/u/402 ... ources.zipImport the CharacterScreen sprite attached
Delete gOptions and import the new gOptions.guf attached
Import gTitleOptions.guf and gCharSheetIngam.guf that is attached
Remove gOptions_OnClick in GlobalScript.asc
Replace the following functions in GlobalScript.asc
Code:
function sliderVolume_Change(GUIControl *control) {
System.Volume = sliderVolume.Value;
}
Add the following functions in GlobalScript.asc
Code:
function sliderVolume2_OnChange(GUIControl *control)
{
System.Volume = sliderVolume2.Value;
}
function btnGameSpeedSlider2_OnChange(GUIControl *control)
{
SetGameSpeed(btnGameSpeedSlider2.Value);
}
function btnOptions_OnClick(GUIControl *control, MouseButton button)
{
gOptions.Visible = true;
}
function btnOptions_OnClick(GUIControl *control, MouseButton button)
{
gCharsheetIngam.Visible = false;
gOptions.Visible = true;
}
function btnInventory_OnClick(GUIControl *control, MouseButton button)
{
gCharsheetIngam.Visible = false;
gInventory.Visible = true;
}
function btnResumeGame_OnClick(GUIControl *control, MouseButton button)
{
gCharsheetIngam.Visible = false;
}
function btnViewCharSheet_Click(GUIControl *control, MouseButton button) {
gSubbar.Visible = false;
gIconbar.Visible = true;
gCharsheetIngam.Visible = true;
Update_stats();
}
Add the following lines in the following functions in room101.asc
Code:
function hotspot1_a()
{
imgClassInGame.NormalGraphic = 1570;
imgClass.NormalGraphic = 1570;
}
function hotspot2_a()
{
imgClassInGame.NormalGraphic = 1571;
imgClass.NormalGraphic = 1571;
}
function hotspot3_a()
{
imgClassInGame.NormalGraphic = 1572;
imgClass.NormalGraphic = 1572;
}
Replace the following function in room101.asc
Code:
function room_Leave()
{
gTopbar.Visible = true;
}
Add the following functions IN THE TOP of Statistics.asc
Code:
function updateCharacterCreateScreen()
{
lblStr.Text = String.Format("%d", heroinfo.str);
lblInt.Text = String.Format("%d", heroinfo.Int);
lblAgi.Text = String.Format("%d", heroinfo.agi);
lblVit.Text = String.Format("%d", heroinfo.vit);
lblLuck.Text = String.Format("%d", heroinfo.luck);
lblMagic.Text = String.Format("%d", heroinfo.magic);
lblWeaponUse.Text = String.Format("%d", heroinfo.weaponuse);
lblParry.Text = String.Format("%d", heroinfo.parry);
lblDodge.Text = String.Format("%d", heroinfo.dodge);
lblThrow.Text = String.Format("%d", heroinfo.throw);
lblClimb.Text = String.Format("%d", heroinfo.climb);
lblStealth.Text = String.Format("%d", heroinfo.stealth);
lblLock.Text = String.Format("%d", heroinfo.lockpick);
lblAllocate.Text = String.Format("%d", allocate);
lblCharHealth.Text = String.Format("Health:%d/%d", heroinfo.hp, heroinfo.mhp);
lblCharStamina.Text = String.Format("Stamina:%d/%d", heroinfo.sp, heroinfo.msp);
lblCharMagic.Text = String.Format("Magic:%d/%d", heroinfo.mp, heroinfo.mmp);
}
function updateInGameCharacterScreen()
{
lblStrength.Text = String.Format("%d", heroinfo.str);
lblIntelligence.Text = String.Format("%d", heroinfo.Int);
lblAgility.Text = String.Format("%d", heroinfo.agi);
lblVitality.Text = String.Format("%d", heroinfo.vit);
lblLuckInGame.Text = String.Format("%d", heroinfo.luck);
lblMagicInGame.Text = String.Format("%d", heroinfo.magic);
lblWeaponUseInGame.Text = String.Format("%d", heroinfo.weaponuse);
lblParryInGame.Text = String.Format("%d", heroinfo.parry);
lblDodgeInGame.Text = String.Format("%d", heroinfo.dodge);
lblThrowing.Text = String.Format("%d", heroinfo.throw);
lblClimbing.Text = String.Format("%d", heroinfo.climb);
lblStealthInGame.Text = String.Format("%d", heroinfo.stealth);
lblLockPicking.Text = String.Format("%d", heroinfo.lockpick);
lblCharInGameHealth.Text = String.Format("Health:%d/%d", heroinfo.hp, heroinfo.mhp);
lblStamina.Text = String.Format("Stamina:%d/%d", heroinfo.sp, heroinfo.msp);
lblMagicPool.Text = String.Format("Magic:%d/%d", heroinfo.mp, heroinfo.mmp);
}
Replace the following functions in Statistics.asc
Code:
function Update_stats() {
if(cEgo.Room == 101)
{
updateCharacterCreateScreen();
}
else
{
updateInGameCharacterScreen();
}
}