Jump to content
Korean Random
appf3j

Изменить панель проигрывателя (меню)

Recommended Posts

Добро пожаловать!

 

Кто-нибудь знает, как изменить меню списка игроков (щелкните правой кнопкой мыши)?

Я хотел бы включить новый пункт меню.

 

2912_complaint_system_screenshot_1.jpg

Share this post


Link to post

Short link
Share on other sites

Да, я хочу добавить новый пункт меню на первое место, hад вашим «Add to your friends list».

Share this post


Link to post

Short link
Share on other sites
from gui.Scaleform.daapi.view.battle.classic.player_menu_handler import PlayerMenuHandler 
from gui.Scaleform.daapi.view.battle.classic.player_menu_handler import _OPTIONS_HANDLERS

                           
_OPTIONS_HANDLERS.update({'TESTMEMY': 'TESTMEMY'})  
                    
                           
def TESTMEMY(self):
    print 'TESTMEMY Click'


PlayerMenuHandler.TESTMEMY = TESTMEMY


def _generateOptions(self, ctx = None):
    options = old_generateOptions(self, ctx)
    options.insert(0, self._makeItem('TESTMEMY', optLabel='TESTMEMY TEXT', optInitData={'enabled': True, 'textColor': 16764006}))
    return options


old_generateOptions = PlayerMenuHandler._generateOptions  
PlayerMenuHandler._generateOptions = _generateOptions                

 

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...