Jump to content
Korean Random
Vampire_BY

Русский текст в сообщении центра уведомлений

Recommended Posts

Не получается вывести текст на русском. Есть у кого какие идеи? 

Вот так у меня выводит русский текст 

post-33250-0-39601500-1440416627.png

import BigWorld
from gui import SystemMessages
from Account import Account
link = Account.onBecomePlayer
def _First(self):
        link(self)
        msg = '<font color="#cc9933"><b>АБВГД</b></font>'
        type = SystemMessages.SM_TYPE.Information
        SystemMessages.pushMessage(msg, type)
        Account.onBecomePlayer = link
Account.onBecomePlayer = _First
Edited by DannyGreene

Share this post


Link to post

Short link
Share on other sites

 

 

Пробовал меня и что то результата не увидел

Такое обычно выносят в файл локализации...

Share this post


Link to post

Short link
Share on other sites

В начало скрипта поставь:

# -*- coding: utf-8 -*-

И поменяй кодировку файла на UTF-8.

Share this post


Link to post

Short link
Share on other sites

# -*- coding: utf-8-sig -*-
from gui.SystemMessages import SM_TYPE
from gui.SystemMessages import pushMessage
from gui.Scaleform.daapi.view.lobby.LobbyView import LobbyView
def New_onLobbyPlayer(self):
global Show
Old_onLobbyPlayer(self)
if not Show:
Show = True
pushMessage(u'<font color="#D042F3">Ляля</font>', SM_TYPE.GameGreeting)


Show = False
Old_onLobbyPlayer = LobbyView._populate
LobbyView._populate = New_onLobbyPlayer

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.
Note: Your post will require moderator approval before it will be visible.

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...