New MP1 skin test (2 Viewers)

daWooky

MP Donator
  • Premium Supporter
  • April 3, 2012
    783
    871
    Home Country
    Germany Germany
    hi wiz, the epg border highlight option is acting like the opposite :D

    option enabled-> Screenshot (212).png <- Screenshot (211).png


    option disabled-> Screenshot (214).png <-Screenshot (213).png
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    Ok it seems that i have found why and maybe related to how is setup Windows 10 (need to confirm)
    The error happen in below code when text value is why a "." but not with "," (without quote)

    So for example, i have the text = (2.5,0) -> it will failed
    But
    If it's (2,5,0) -> no error :p

    C#:
    private void GetPosition(string text, ref float x, ref float y)
        {
          //      Log.Info("GetPos:{0}", text);
          x = y = 0;
          if (text == null)
          {
            return;
          }
          text = text.ToLowerInvariant();
          text = text.Replace("screencenterx", GUIGraphicsContext.OutputScreenCenter.X.ToString());
          text = text.Replace("screencentery", GUIGraphicsContext.OutputScreenCenter.Y.ToString());
    
          int pos = text.IndexOf(",");
          if (pos >= 0)
          {
            x = float.Parse(text.Substring(0, pos));
            y = float.Parse(text.Substring(pos + 1));
          }
          else
          {
            x = float.Parse(text);
          }
        }
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    Ok so in that XML : (BasicHomePage3.xml)

    The line 195 : we have 0.5 and it will create the issue here :)

    <animation effect="zoom" start="100,100" end="0.5,100" time="150" center="85,1017">Hidden</animation>

    I have that setting on my windows :

    upload_2016-12-3_20-48-6.png


    Changing it too :
    upload_2016-12-3_20-52-4.png


    And it works lol
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    Good it seems that i have found a fix :)
    We need to set MediaPortal.exe as cultureinfo US :p

    Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US");
    Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US");

    With this, the MP exe instance is set to use Us culture info so it will handle correctly the decimal :p
    I have tested that the keyboard stay in french under MP and it works :)

    So i think it's the good way to go :p because maybe other part of code need to be used like culture info US.
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    @wizard123

    I notice something (the progress seems odd lol) i didn't see the current position :)

    22-10-21.png 22-10-24.png
     

    Users who are viewing this thread

    Top Bottom