Menu

small change great benefit (for me :-)

2017-05-06
2017-05-06
  • Chrigu Wuethrich

    hi poilou
    i have made a small change in CConfig.py in Section Globals
    'playernames':['Player1','Player2','Player3','Player4','Player5','Player6','Player7','Player8','Player9','Player10']
    and in CScreen.py after elif K == '+' and len(Players)<12: i have added

             elif K >= 0 and K < 10 and len(Players)<12:
                nbplayers=len(Players)
                Players.append(self.Config.GetValue('SectionGlobals','playernames')[K])
    

    so i can predefine a list of players and choose them with numbers instead press +, F-Key. Playername and Enter

    it would also be great to add the Defaultplayername in Config and add it to the empty list insted the name of the logged in User. But i did not find the way

    would be great if you could at this when you have time

    cheers
    chrigu

     

    Last edit: Chrigu Wuethrich 2017-05-06
    • poilou

      poilou - 2017-05-06

      Hi Chrigu !

      It was already possible ! Just launch your pyDarts from command line
      like this :

      pydarts --localplayers=player1,player2,player3,player4,player5,player6

      And if you like to make it permanent, just add to the SectionAdvanced of
      your config file :

      localplayers:player1,player2,player3,player4,player5,player6

      Cheers !

       
  • Anonymous

    Anonymous - 2017-05-06

    yep this i have already used, but by 5 players there are mutliple combinations and i found that the other is (for me) the better way
    when i start it with localplayers i'm not able to delete the third player when he didn't play because i can remove only the last
    cheers

     
    • poilou

      poilou - 2017-05-06

      Hi Chrigu !
      I squeezed my brain dry today and added a new feature :)
      When you click on a players' name, the player's name is removed from the list.
      Could you tell me if the benefit if good for you, combined with the localplayers option ?

      This is a preview from a new feature that I expect to do ASAP. I want to be able to click in the menus to perform actions. This would be great for touchscreen users, don't you think ?
      Bye

       
  • Chrigu Wuethrich

    awesome
    thx
    I'm glad that you can also choose the games by clicking
    cheers
    chrigu

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.