[Approved] Options for basic+normal home, only normal home and only basic home (1 Viewer)

disaster123

MP Donator
  • Premium Supporter
  • May 14, 2008
    3,558
    434
    Home Country
    Germany Germany
    AW: Options for basic+normal home, only normal home and only basic home

    Marvman
    sorry no c# skills on my side :) so i wasn't to implement an ENUM... but i thought the same.
     

    Marvman

    Retired Team Member
  • Premium Supporter
  • November 14, 2007
    1,163
    735
    Bavaria
    Home Country
    Germany Germany
    Forget the private ENUM you use it in more than one class.

    enum Mode
    {
    HOME, BASIC, BOTH
    }

    HOME is per default 0 so you should use it as id

    further infos you'll get here
     

    disaster123

    MP Donator
  • Premium Supporter
  • May 14, 2008
    3,558
    434
    Home Country
    Germany Germany
    AW: Options for basic+normal home, only normal home and only basic home

    Sorry i know what an enum is and how to use but i don't know how / where to implement in MP so that it can be used by different classes. I didn't want to implement the ENUM in every file i've modified.
     

    Marvman

    Retired Team Member
  • Premium Supporter
  • November 14, 2007
    1,163
    735
    Bavaria
    Home Country
    Germany Germany
    You can create a separate file in core/guilib or create the public enum in GUIWindowManager.cs

    I prefer the first.
     

    disaster123

    MP Donator
  • Premium Supporter
  • May 14, 2008
    3,558
    434
    Home Country
    Germany Germany
    AW: Options for basic+normal home, only normal home and only basic home

    OK will post a better patch in 3 weeks - i'm on holidays now.
     

    OnkelChris

    Retired Team Member
  • Premium Supporter
  • October 17, 2007
    764
    59
    Home Country
    Germany Germany
    AW: Options for basic+normal home, only normal home and only basic home

    arion_p:
    just wanted to mention, that unfortunately the (modified) patch has a little bad behaviour... if you choose "only basichome", start MP and the first button is "back", then you get the normal homescreen.
    i remember, that with the patch provided by disaster123 it's working correct.
     

    disaster123

    MP Donator
  • Premium Supporter
  • May 14, 2008
    3,558
    434
    Home Country
    Germany Germany
    AW: Options for basic+normal home, only normal home and only basic home

    OnkelChris
    Do you also see strange TsReader Errors while watching tv in your error.log (i have that but not shure which patch caused that).
     

    arion_p

    Retired Team Member
  • Premium Supporter
  • February 7, 2007
    3,373
    1,626
    Athens
    Home Country
    Greece Greece
    Re: AW: Options for basic+normal home, only normal home and only basic home

    @arion_p:
    just wanted to mention, that unfortunately the (modified) patch has a little bad behaviour... if you choose "only basichome", start MP and the first button is "back", then you get the normal homescreen.
    i remember, that with the patch provided by disaster123 it's working correct.
    I can confirm the issue. Are you sure it did not occur with the original patch? I don't see anything in the code relating to that.
     

    Users who are viewing this thread

    Top Bottom