Download
Alternative download links → Mega.nz
This is exactly what the name says: a static variable implementation in python.
This was introduced with Messenger Renewal so you will see it under the flag: ENABLE_MESSENGER_RENEWAL
In the archive you will also find the implementation for OutlineToolTipText (see the picture above).
This is an example on how to use OutlineToolTipText :
## uiscript:
{
"name" : "rewind_button",
"type" : "button",
"x" : 215,
"y" : 2,
"default_image" : ROOT_PATH + "rewind_button_default.sub",
"over_image" : ROOT_PATH + "rewind_button_over.sub",
"down_image" : ROOT_PATH + "rewind_button_down.sub",
"outline_tooltip_text" : uiScriptLocale.SELECT_BOX_TOOLTIP_REWIND_BUTTON, # 선택 중인 아이템의 위치로 이동할 수 있습니다.
},
## root:
self.__exit_button.SetOutlineToolTipText(localeInfo.PRIVATE_SHOP_MAP_EXIT_BUTTON)
Also this is an example on how to use the StaticVariable for another object: (QuestionDialog)
class FriendGuildMemberInfoBar(object):
def __init__(self, is_family=False):
super(FriendGuildMemberInfoBar, self).__init__(is_family)
self.__Initialize()
self.__LoadWindow()
ui.StaticVariable.Create(uiCommon.QuestionDialog, self.FAVORITE_QUESTION_DIALOG_KEY)
def __OnClickFavoriteButton(self):
member_data = self.GetLinkingMemberData()
if None == member_data:
return
question_dialog = ui.StaticVariable.Get(self.FAVORITE_QUESTION_DIALOG_KEY)
if None == question_dialog:
return
question_dialog.SetCancelEvent(ui.__mem_func__(self.__OnCloseQuestionDialog))
question_dialog.Open()
if member_data.IsFavorite():
question_dialog.SetText(uiScriptLocale.COMMUNITY_DELETE_FAVORITE_QUESTION)
question_dialog.SetAcceptEvent(ui.__mem_func__(self._OnDeleteFavorite))
else:
question_dialog.SetText(uiScriptLocale.COMMUNITY_ADD_FAVORITE_QUESTION)
question_dialog.SetAcceptEvent(ui.__mem_func__(self._OnAddFavorite))
def __OnCloseQuestionDialog(self):
question_dialog = ui.StaticVariable.Get(self.FAVORITE_QUESTION_DIALOG_KEY)
if None != question_dialog:
question_dialog.Close()