How to adjust TV Guide displayed timeline? (1 Viewer)

vfrvulcan

Portal Member
September 7, 2011
16
0
Home Country
England England
I've just started on MP and want to make better use of the real estate in the TV Guide.

No matter how much searching through the skin guides etc I can't find how to adjust the maximum TV Guide timeline.

The default control in DefaultWide (1.2.0) allows selection between one and four hours. Is there any way to change this? If so where? Looked through most of the xml files files but can't seem to find it. Hope it isn't hard coded.

Any help appreciated.

Aaron
 

mm1352000

Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Hi Aaron

    It is hard coded. The relevant code is in TvEngine3/TVLibrary/TvPlugin/TvPlugin/TvGuideBase.cs:

    Code:
            case Action.ActionType.ACTION_INCREASE_TIMEBLOCK:
              {
                _timePerBlock += 15;
                if (_timePerBlock > 60)
                {
                  _timePerBlock = 60;
                }
                GUISpinControl cntlTimeInterval = GetControl((int)Controls.SPINCONTROL_TIME_INTERVAL) as GUISpinControl;
                cntlTimeInterval.Value = (_timePerBlock / 15) - 1;
                Update(false);
                SetFocus();
              }
              break;

    And possibly also:

    Code:
                if (iControl == (int)Controls.SPINCONTROL_TIME_INTERVAL)
                {
                  GUISpinControl cntlTimeInt = GetControl((int)Controls.SPINCONTROL_TIME_INTERVAL) as GUISpinControl;
                  int iInterval = (cntlTimeInt.Value) + 1;
                  if (iInterval > 4)
                  {
                    iInterval = 4;
                  }
                  _timePerBlock = iInterval * 15;
                  Update(false);
                  SetFocus();
                  return true;
                }

    mm
     

    vfrvulcan

    Portal Member
    September 7, 2011
    16
    0
    Home Country
    England England
    Hi Aaron

    It is hard coded. The relevant code is in TvEngine3/TVLibrary/TvPlugin/TvPlugin/TvGuideBase.cs:

    Code:
            case Action.ActionType.ACTION_INCREASE_TIMEBLOCK:
              {
                _timePerBlock += 15;
                if (_timePerBlock > 60)
                {
                  _timePerBlock = 60;
                }
                GUISpinControl cntlTimeInterval = GetControl((int)Controls.SPINCONTROL_TIME_INTERVAL) as GUISpinControl;
                cntlTimeInterval.Value = (_timePerBlock / 15) - 1;
                Update(false);
                SetFocus();
              }
              break;

    And possibly also:

    Code:
                if (iControl == (int)Controls.SPINCONTROL_TIME_INTERVAL)
                {
                  GUISpinControl cntlTimeInt = GetControl((int)Controls.SPINCONTROL_TIME_INTERVAL) as GUISpinControl;
                  int iInterval = (cntlTimeInt.Value) + 1;
                  if (iInterval > 4)
                  {
                    iInterval = 4;
                  }
                  _timePerBlock = iInterval * 15;
                  Update(false);
                  SetFocus();
                  return true;
                }

    mm

    Thanks MM,

    Shame I can't program (Apple // BASIC doesn't count!), I would have liked to extend it to 6 or 8 hours.

    Appreciate the reply.

    Aaron
     

    Users who are viewing this thread

    Top Bottom