Çözüldü Problem in system details

Bu konu çözüme ulaştırılmıştır. Çözüm için konuya yazılan tüm yorumları okumayı unutmayın. Eğer konudaki yorumlar sorununuzu çözmediyse yeni bir konu açabilirsiniz.
Durum
İçerik kilitlendiği için mesaj gönderimine kapatıldı.

maradona150

Üye
Üye
Mesaj
90
Çözümler
1
Beğeni
41
Puan
339
Ticaret Puanı
0
When I click to see the details it does not open
and this is syserr



0828 10:26:08544 :: CPythonSkill::RegisterSkillDesc(dwSkillIndex=137) - Strange Skill Need Weapon(CLAW)
0828 10:26:08544 :: CPythonSkill::RegisterSkillDesc(dwSkillIndex=139) - Strange Skill Need Weapon(CLAW)
0828 10:26:15558 :: CMapOutdoor::Load - LoadMonsterAreaInfo ERROR
0828 10:26:23773 :: Traceback (most recent call last):

0828 10:26:23773 :: File "ui.py", line 1032, in CallEvent

0828 10:26:23774 :: File "ui.py", line 87, in __call__

0828 10:26:23774 :: File "ui.py", line 69, in __call__

0828 10:26:23774 :: File "uiCharacter.py", line 310, in __ClickExpandButton

0828 10:26:23774 :: File "uiCharacterDetails.py", line 15, in __init__

0828 10:26:23774 :: File "uiCharacterDetails.py", line 57, in __LoadScript

0828 10:26:23775 :: File "ui.py", line 2742, in GetChild

0828 10:26:23775 :: KeyError
0828 10:26:23775 :: :
0828 10:26:23775 :: 'label0'
0828 10:26:23775 ::


Thanks in advance
 

Dosya Eklentileri

  • Untitled.webp
    Untitled.webp
    32,1 KB · Gösterim: 227
Eklerken hata yapmış olabilirsin bunu bende kurdum herhangi bir hata almadım.
 
Do you think it is from the language? Because I did not change the language in Locale Game , I left it as it is Turkish for the experience
 

Python:
Genişlet Daralt Kopyala
import localeInfo
import uiScriptLocale

LOCALE_PATH = uiScriptLocale.WINDOWS_PATH

MAINBOARD_WIDTH = 200
MAINBOARD_HEIGHT = 364#361

LABEL_START_X = 0-10
LABEL_START_Y = 39
LABEL_WIDTH = 50
LABEL_HEIGHT = 17
LABEL_GAP = LABEL_HEIGHT+7
LABEL_NAME_POS_X = 0-10
TITLE_BAR_POS_X = 10
TITLE_BAR_WIDTH = 163

window = {
    "name" : "CharacterDetailsWindow",
    "style" : ("float",),
    
    "x" : 274, #24+253-3,
    "y" : (SCREEN_HEIGHT - 398) / 2,

    "width" : MAINBOARD_WIDTH,
    "height" : MAINBOARD_HEIGHT,
    
    "children" :
    (
        ## MainBoard
        {
            "name" : "MainBoard",
            "type" : "board",
            "style" : ("attach","ltr"),
            
            ## CharacterWindow.py 영향 받음
            "x" : 0,
            "y" : 0,

            "width" : MAINBOARD_WIDTH,
            "height" : MAINBOARD_HEIGHT,
            
            "children" :
            (
                ## 타이틀바
                {
                    "name" : "TitleBar",
                    "type" : "titlebar",
                    "style" : ("attach",),

                    "x" : 6,
                    "y" : 7,

                    "width" : MAINBOARD_WIDTH - 13,
                    
                    "children" :
                    (
                        { "name" : "TitleName", "type" : "text", "x" : 0, "y" : 0, "text": localeInfo.DETAILS_TITLE, "all_align":"center" },
                    ),
                },
                            
                ## 스크롤 바
                {
                    "name" : "ScrollBar",
                    "type" : "scrollbar",

                    "x" : 24,
                    "y" : 31,
                    "size" : MAINBOARD_HEIGHT - 40,
                    "horizontal_align" : "right",
                },
                
                ## 호리즌 바
                {
                    "name" : "horizontalbar0", "type":"horizontalbar", "x":TITLE_BAR_POS_X, "y":LABEL_START_Y+LABEL_GAP*0, "width":TITLE_BAR_WIDTH,
                    "children" : ( { "name" : "horizontalbarName0", "type" : "text", "x" : 0, "y" : 0, "text" : "", "all_align" : "center", }, ),
                },
                {
                    "name" : "horizontalbar1", "type":"horizontalbar", "x":TITLE_BAR_POS_X, "y":LABEL_START_Y+LABEL_GAP*1, "width":TITLE_BAR_WIDTH,
                    "children" : ( { "name" : "horizontalbarName1", "type" : "text", "x" : 0, "y" : 0, "text" : "", "all_align" : "center", }, ),
                },
                {
                    "name" : "horizontalbar2", "type":"horizontalbar", "x":TITLE_BAR_POS_X, "y":LABEL_START_Y+LABEL_GAP*2, "width":TITLE_BAR_WIDTH,
                    "children" : ( { "name" : "horizontalbarName2", "type" : "text", "x" : 0, "y" : 0, "text" : "", "all_align" : "center", }, ),
                },
                {
                    "name" : "horizontalbar3", "type":"horizontalbar", "x":TITLE_BAR_POS_X, "y":LABEL_START_Y+LABEL_GAP*3, "width":TITLE_BAR_WIDTH,
                    "children" : ( { "name" : "horizontalbarName3", "type" : "text", "x" : 0, "y" : 0, "text" : "", "all_align" : "center", }, ),
                },
                {
                    "name" : "horizontalbar4", "type":"horizontalbar", "x":TITLE_BAR_POS_X, "y":LABEL_START_Y+LABEL_GAP*4, "width":TITLE_BAR_WIDTH,
                    "children" : ( { "name" : "horizontalbarName4", "type" : "text", "x" : 0, "y" : 0, "text" : "", "all_align" : "center", }, ),
                },
                {
                    "name" : "horizontalbar5", "type":"horizontalbar", "x":TITLE_BAR_POS_X, "y":LABEL_START_Y+LABEL_GAP*5, "width":TITLE_BAR_WIDTH,
                    "children" : ( { "name" : "horizontalbarName5", "type" : "text", "x" : 0, "y" : 0, "text" : "", "all_align" : "center", }, ),
                },
                {
                    "name" : "horizontalbar6", "type":"horizontalbar", "x":TITLE_BAR_POS_X, "y":LABEL_START_Y+LABEL_GAP*6, "width":TITLE_BAR_WIDTH,
                    "children" : ( { "name" : "horizontalbarName6", "type" : "text", "x" : 0, "y" : 0, "text" : "", "all_align" : "center", }, ),
                },
                {
                    "name" : "horizontalbar7", "type":"horizontalbar", "x":TITLE_BAR_POS_X, "y":LABEL_START_Y+LABEL_GAP*7, "width":TITLE_BAR_WIDTH,
                    "children" : ( { "name" : "horizontalbarName7", "type" : "text", "x" : 0, "y" : 0, "text" : "", "all_align" : "center", }, ),
                },
                {
                    "name" : "horizontalbar8", "type":"horizontalbar", "x":TITLE_BAR_POS_X, "y":LABEL_START_Y+LABEL_GAP*8, "width":TITLE_BAR_WIDTH,
                    "children" : ( { "name" : "horizontalbarName8", "type" : "text", "x" : 0, "y" : 0, "text" : "", "all_align" : "center", }, ),
                },
                {
                    "name" : "horizontalbar9", "type":"horizontalbar", "x":TITLE_BAR_POS_X, "y":LABEL_START_Y+LABEL_GAP*9, "width":TITLE_BAR_WIDTH,
                    "children" : ( { "name" : "horizontalbarName9", "type" : "text", "x" : 0, "y" : 0, "text" : "", "all_align" : "center", }, ),
                },
                {
                    "name" : "horizontalbar10", "type":"horizontalbar", "x":TITLE_BAR_POS_X, "y":LABEL_START_Y+LABEL_GAP*10, "width":TITLE_BAR_WIDTH,
                    "children" : ( { "name" : "horizontalbarName10", "type" : "text", "x" : 0, "y" : 0, "text" : "", "all_align" : "center", }, ),
                },
                {
                    "name" : "horizontalbar11", "type":"horizontalbar", "x":TITLE_BAR_POS_X, "y":LABEL_START_Y+LABEL_GAP*11, "width":TITLE_BAR_WIDTH,
                    "children" : ( { "name" : "horizontalbarName11", "type" : "text", "x" : 0, "y" : 0, "text" : "", "all_align" : "center", }, ),
                },
                {
                    "name" : "horizontalbar12", "type":"horizontalbar", "x":TITLE_BAR_POS_X, "y":LABEL_START_Y+LABEL_GAP*12, "width":TITLE_BAR_WIDTH,
                    "children" : ( { "name" : "horizontalbarName12", "type" : "text", "x" : 0, "y" : 0, "text" : "", "all_align" : "center", }, ),
                }, ## 호리즌 바 끝
                
                ## 라벨 ##
                {
                    "name" : "label0", "type" : "thinboard_circle", "x" : LABEL_START_X, "y" : LABEL_START_Y+LABEL_GAP*0, "width" : LABEL_WIDTH, "height" : LABEL_HEIGHT,
                    "horizontal_align" : "center",
                    "children" : (
                        { "name" : "labelvalue0", "type" : "text", "x" : 0, "y" : 0, "text" : "", "all_align" : "center", },
                    ),
                },
                {
                    "name" : "label1", "type" : "thinboard_circle", "x" : LABEL_START_X, "y" : LABEL_START_Y+LABEL_GAP*1, "width" : LABEL_WIDTH, "height" : LABEL_HEIGHT,
                    "horizontal_align" : "center",
                    "children" : (
                        { "name" : "labelvalue1", "type" : "text", "x" : 0, "y" : 0, "text" : "", "all_align" : "center", },
                    ),
                },
                {
                    "name" : "label2", "type" : "thinboard_circle", "x" : LABEL_START_X, "y" : LABEL_START_Y+LABEL_GAP*2, "width" : LABEL_WIDTH, "height" : LABEL_HEIGHT,
                    "horizontal_align" : "center",
                    "children" : (
                        { "name" : "labelvalue2", "type" : "text", "x" : 0, "y" : 0, "text" : "", "all_align" : "center", },
                    ),
                },
                {
                    "name" : "label3", "type" : "thinboard_circle", "x" : LABEL_START_X, "y" : LABEL_START_Y+LABEL_GAP*3, "width" : LABEL_WIDTH, "height" : LABEL_HEIGHT,
                    "horizontal_align" : "center",
                    "children" : (
                        { "name" : "labelvalue3", "type" : "text", "x" : 0, "y" : 0, "text" : "", "all_align" : "center", },
                    ),
                },
                {
                    "name" : "label4", "type" : "thinboard_circle", "x" : LABEL_START_X, "y" : LABEL_START_Y+LABEL_GAP*4, "width" : LABEL_WIDTH, "height" : LABEL_HEIGHT,
                    "horizontal_align" : "center",
                    "children" : (
                        { "name" : "labelvalue4", "type" : "text", "x" : 0, "y" : 0, "text" : "", "all_align" : "center", },
                    ),
                },
                {
                    "name" : "label5", "type" : "thinboard_circle", "x" : LABEL_START_X, "y" : LABEL_START_Y+LABEL_GAP*5, "width" : LABEL_WIDTH, "height" : LABEL_HEIGHT,
                    "horizontal_align" : "center",
                    "children" : (
                        { "name" : "labelvalue5", "type" : "text", "x" : 0, "y" : 0, "text" : "", "all_align" : "center", },
                    ),
                },
                {
                    "name" : "label6", "type" : "thinboard_circle", "x" : LABEL_START_X, "y" : LABEL_START_Y+LABEL_GAP*6, "width" : LABEL_WIDTH, "height" : LABEL_HEIGHT,
                    "horizontal_align" : "center",
                    "children" : (
                        { "name" : "labelvalue6", "type" : "text", "x" : 0, "y" : 0, "text" : "", "all_align" : "center", },
                    ),
                },
                {
                    "name" : "label7", "type" : "thinboard_circle", "x" : LABEL_START_X, "y" : LABEL_START_Y+LABEL_GAP*7, "width" : LABEL_WIDTH, "height" : LABEL_HEIGHT,
                    "horizontal_align" : "center",
                    "children" : (
                        { "name" : "labelvalue7", "type" : "text", "x" : 0, "y" : 0, "text" : "", "all_align" : "center", },
                    ),
                },
                {
                    "name" : "label8", "type" : "thinboard_circle", "x" : LABEL_START_X, "y" : LABEL_START_Y+LABEL_GAP*8, "width" : LABEL_WIDTH, "height" : LABEL_HEIGHT,
                    "horizontal_align" : "center",
                    "children" : (
                        { "name" : "labelvalue8", "type" : "text", "x" : 0, "y" : 0, "text" : "", "all_align" : "center", },
                    ),
                },
                {
                    "name" : "label9", "type" : "thinboard_circle", "x" : LABEL_START_X, "y" : LABEL_START_Y+LABEL_GAP*9, "width" : LABEL_WIDTH, "height" : LABEL_HEIGHT,
                    "horizontal_align" : "center",
                    "children" : (
                        { "name" : "labelvalue9", "type" : "text", "x" : 0, "y" : 0, "text" : "", "all_align" : "center", },
                    ),
                },
                {
                    "name" : "label10", "type" : "thinboard_circle", "x" : LABEL_START_X, "y" : LABEL_START_Y+LABEL_GAP*10, "width" : LABEL_WIDTH, "height" : LABEL_HEIGHT,
                    "horizontal_align" : "center",
                    "children" : (
                        { "name" : "labelvalue10", "type" : "text", "x" : 0, "y" : 0, "text" : "", "all_align" : "center", },
                    ),
                },
                {
                    "name" : "label11", "type" : "thinboard_circle", "x" : LABEL_START_X, "y" : LABEL_START_Y+LABEL_GAP*11, "width" : LABEL_WIDTH, "height" : LABEL_HEIGHT,
                    "horizontal_align" : "center",
                    "children" : (
                        { "name" : "labelvalue11", "type" : "text", "x" : 0, "y" : 0, "text" : "", "all_align" : "center", },
                    ),
                },
                {
                    "name" : "label12", "type" : "thinboard_circle", "x" : LABEL_START_X, "y" : LABEL_START_Y+LABEL_GAP*12, "width" : LABEL_WIDTH, "height" : LABEL_HEIGHT,
                    "horizontal_align" : "center",
                    "children" : (
                        { "name" : "labelvalue12", "type" : "text", "x" : 0, "y" : 0, "text" : "", "all_align" : "center", },
                    ),
                }, ## 라벨 끝
                
                ## 버튼
                {
                            "name" : "labelname0", "type" : "button",
                            "x" : LABEL_NAME_POS_X, "y" : LABEL_START_Y+LABEL_GAP*0,
                            
                            "text" : "",
                            "horizontal_align" : "center",
                            
                            "default_image" : LOCALE_PATH + "details.sub",
                            "over_image" : LOCALE_PATH + "details.sub",
                            "down_image" : LOCALE_PATH + "details.sub",
                },
                {
                            "name" : "labelname1", "type" : "button",
                            "x" : LABEL_NAME_POS_X, "y" : LABEL_START_Y+LABEL_GAP*1,
                            
                            "text" : "",
                            "horizontal_align" : "center",
                            
                            "default_image" : LOCALE_PATH + "details.sub",
                            "over_image" : LOCALE_PATH + "details.sub",
                            "down_image" : LOCALE_PATH + "details.sub",
                },
                {
                            "name" : "labelname2", "type" : "button",
                            "x" : LABEL_NAME_POS_X, "y" : LABEL_START_Y+LABEL_GAP*2,
                            
                            "text" : "",
                            "horizontal_align" : "center",
                            
                            "default_image" : LOCALE_PATH + "details.sub",
                            "over_image" : LOCALE_PATH + "details.sub",
                            "down_image" : LOCALE_PATH + "details.sub",
                },
                {
                            "name" : "labelname3", "type" : "button",
                            "x" : LABEL_NAME_POS_X, "y" : LABEL_START_Y+LABEL_GAP*3,
                            
                            "text" : "",
                            "horizontal_align" : "center",
                            
                            "default_image" : LOCALE_PATH + "details.sub",
                            "over_image" : LOCALE_PATH + "details.sub",
                            "down_image" : LOCALE_PATH + "details.sub",
                },   
                {
                            "name" : "labelname4", "type" : "button",
                            "x" : LABEL_NAME_POS_X, "y" : LABEL_START_Y+LABEL_GAP*4,
                            
                            "text" : "",
                            "horizontal_align" : "center",
                            
                            "default_image" : LOCALE_PATH + "details.sub",
                            "over_image" : LOCALE_PATH + "details.sub",
                            "down_image" : LOCALE_PATH + "details.sub",
                },   
                {
                            "name" : "labelname5", "type" : "button",
                            "x" : LABEL_NAME_POS_X, "y" : LABEL_START_Y+LABEL_GAP*5,
                            
                            "text" : "",
                            "horizontal_align" : "center",
                            
                            
                            "default_image" : LOCALE_PATH + "details.sub",
                            "over_image" : LOCALE_PATH + "details.sub",
                            "down_image" : LOCALE_PATH + "details.sub",
                },   
                {
                            "name" : "labelname6", "type" : "button",
                            "x" : LABEL_NAME_POS_X, "y" : LABEL_START_Y+LABEL_GAP*6,
                            
                            "text" : "",
                            "horizontal_align" : "center",
                            
                            "default_image" : LOCALE_PATH + "details.sub",
                            "over_image" : LOCALE_PATH + "details.sub",
                            "down_image" : LOCALE_PATH + "details.sub",
                },   
                {
                            "name" : "labelname7", "type" : "button",
                            "x" : LABEL_NAME_POS_X, "y" : LABEL_START_Y+LABEL_GAP*7,
                            
                            "text" : "",
                            "horizontal_align" : "center",
                            
                            "default_image" : LOCALE_PATH + "details.sub",
                            "over_image" : LOCALE_PATH + "details.sub",
                            "down_image" : LOCALE_PATH + "details.sub",
                },   
                {
                            "name" : "labelname8", "type" : "button",
                            "x" : LABEL_NAME_POS_X, "y" : LABEL_START_Y+LABEL_GAP*8,
                            
                            "text" : "",
                            "horizontal_align" : "center",
                            
                            "default_image" : LOCALE_PATH + "details.sub",
                            "over_image" : LOCALE_PATH + "details.sub",
                            "down_image" : LOCALE_PATH + "details.sub",
                },   
                {
                            "name" : "labelname9", "type" : "button",
                            "x" : LABEL_NAME_POS_X, "y" : LABEL_START_Y+LABEL_GAP*9,
                            
                            "text" : "",
                            "horizontal_align" : "center",
                            
                            "default_image" : LOCALE_PATH + "details.sub",
                            "over_image" : LOCALE_PATH + "details.sub",
                            "down_image" : LOCALE_PATH + "details.sub",
                },   
                {
                            "name" : "labelname10", "type" : "button",
                            "x" : LABEL_NAME_POS_X, "y" : LABEL_START_Y+LABEL_GAP*10,
                            
                            "text" : "",
                            "horizontal_align" : "center",
                            
                            "default_image" : LOCALE_PATH + "details.sub",
                            "over_image" : LOCALE_PATH + "details.sub",
                            "down_image" : LOCALE_PATH + "details.sub",
                },   
                {
                            "name" : "labelname11", "type" : "button",
                            "x" : LABEL_NAME_POS_X, "y" : LABEL_START_Y+LABEL_GAP*11,
                            
                            "text" : "",
                            "horizontal_align" : "center",
                            
                            "default_image" : LOCALE_PATH + "details.sub",
                            "over_image" : LOCALE_PATH + "details.sub",
                            "down_image" : LOCALE_PATH + "details.sub",
                },   
                {
                            "name" : "labelname12", "type" : "button",
                            "x" : LABEL_NAME_POS_X, "y" : LABEL_START_Y+LABEL_GAP*12,
                            
                            "text" : "",
                            "horizontal_align" : "center",
                            
                            "default_image" : LOCALE_PATH + "details.sub",
                            "over_image" : LOCALE_PATH + "details.sub",
                            "down_image" : LOCALE_PATH + "details.sub",
                }, ## 버튼 끝
                
            ),
        }, ## MainBoard End
    ),
}
 
label0 already has. 123. line
Python:
Genişlet Daralt Kopyala
                ## 라벨 ##
                {
                    "name" : "label0", "type" : "thinboard_circle", "x" : LABEL_START_X, "y" : LABEL_START_Y+LABEL_GAP*0, "width" : LABEL_WIDTH, "height" : LABEL_HEIGHT,
                    "horizontal_align" : "center",
                    "children" : (
                        { "name" : "labelvalue0", "type" : "text", "x" : 0, "y" : 0, "text" : "", "all_align" : "center", },
                    ),
                },

The error originates elsewhere. :(
Add your uiCharacterDetails.py codes in the forum
 
Python:
Genişlet Daralt Kopyala
import ui
import localeInfo
import player
import item
import uiToolTip
import wndMgr
import app

class CharacterDetailsUI(ui.ScriptWindow):
    def __init__(self, parent):
        self.uiCharacterStatus = parent       
        ui.ScriptWindow.__init__(self)
        self.toolTip = uiToolTip.ToolTip()
        
        self.__LoadScript()
    
    def __del__(self):
        self.uiCharacterStatus = None
        self.toolTip = None
        ui.ScriptWindow.__del__(self)
        
    def __LoadScript(self):
        
        try:
            pyScrLoader = ui.PythonScriptLoader()
            pyScrLoader.LoadScriptFile(self, "UIScript/CharacterDetailsWindow.py")
        except:
            import exception
            exception.Abort("CharacterDetailsUI.__LoadScript")
        
        ## CharacterWindow.py 의 width = 253
        self.Width = 253 - 3
                    
        self.GetChild("TitleBar").CloseButtonHide()
        self.ScrollBar = self.GetChild("ScrollBar")
        self.ScrollBar.SetScrollEvent(ui.__mem_func__(self.OnScroll))
        
        ## 출력되는 UI 최대 숫자
        self.UI_MAX_COUNT = 13
        self.UI_MAX_VIEW_COUNT = 6
        
        ## UI KEY & VALUE
        self.INFO_TEXT    = 0
        self.INFO_TOOLTIP = 1
        self.INFO_VALUE    = 2
        self.CATEGORY_STARTLINE    = -1
        self.CATEGORY_ENDLINE    = -2
        
        ## Child 셋팅
        self.labelList        = []
        self.labelValueList    = []
        self.labelTextList    = []
        self.horizonBarList    = []
        self.horizonBarNameList = []
        
        for i in xrange(self.UI_MAX_COUNT):
            self.labelList.append( self.GetChild("label%s"%i) )
            self.labelValueList.append( self.GetChild("labelvalue%s"%i) )
            self.labelTextList.append( self.GetChild("labelname%s"%i) )
            self.horizonBarList.append( self.GetChild("horizontalbar%s"%i) )
            self.horizonBarNameList.append( self.GetChild("horizontalbarName%s"%i) )
            
        for i in xrange(self.UI_MAX_COUNT):
            self.labelTextList[i].SetOverEvent( ui.__mem_func__(self.__ButtonOverIn), i )
            self.labelTextList[i].SetOverOutEvent( ui.__mem_func__(self.__ButtonOverOut), i )
            
        self.__Initialize()
        
    def __Initialize(self):
        self.InfoList = []
        
        ## 추가 데미지
        self.InfoList.append( [ localeInfo.DETAILS_CATE_1, "", self.CATEGORY_STARTLINE ] )
        self.InfoList.append( [ localeInfo.DETAILS_1, localeInfo.DETAILS_TOOLTIP_1, 43 ] )
        
        # if app.ENABLE_PVP_BALANCE or app.ENABLE_PENDANT:
            # self.InfoList.append( [ localeInfo.DETAILS_2, localeInfo.DETAILS_TOOLTIP_2, item.APPLY_RESIST_HUMAN ] )
        
        self.InfoList.append( [ localeInfo.DETAILS_3, localeInfo.DETAILS_TOOLTIP_3, 45 ] )
        self.InfoList.append( [ localeInfo.DETAILS_4, localeInfo.DETAILS_TOOLTIP_4, 47 ] )
        self.InfoList.append( [ localeInfo.DETAILS_5, localeInfo.DETAILS_TOOLTIP_5, 53 ] )
        
        # if app.ENABLE_ELEMENT_ADD:
            # self.InfoList.append( [ localeInfo.DETAILS_6, localeInfo.DETAILS_TOOLTIP_6, item.APPLY_ATTBONUS_CZ ] )
            
        self.InfoList.append( [ localeInfo.DETAILS_7, localeInfo.DETAILS_TOOLTIP_7, 44 ] )
        self.InfoList.append( [ localeInfo.DETAILS_8, localeInfo.DETAILS_TOOLTIP_8, 46 ] )
        self.InfoList.append( [ localeInfo.DETAILS_9, localeInfo.DETAILS_TOOLTIP_9, 48 ] )
        
        # if app.ENABLE_ELEMENT_ADD:
            # self.InfoList.append( [ localeInfo.DETAILS_10, localeInfo.DETAILS_TOOLTIP_10, item.APPLY_ATTBONUS_DESERT ] )
            # self.InfoList.append( [ localeInfo.DETAILS_11, localeInfo.DETAILS_TOOLTIP_11, item.APPLY_ATTBONUS_INSECT ] )
            
        self.InfoList.append( [ localeInfo.DETAILS_12, localeInfo.DETAILS_TOOLTIP_12, 95 ] )
        self.InfoList.append( [ localeInfo.DETAILS_13, localeInfo.DETAILS_TOOLTIP_13, 96 ] )
        self.InfoList.append( [ localeInfo.DETAILS_14, localeInfo.DETAILS_TOOLTIP_14, 122 ] )
        self.InfoList.append( [ localeInfo.DETAILS_15, localeInfo.DETAILS_TOOLTIP_15, 124 ] )
        self.InfoList.append( [ localeInfo.DETAILS_16, localeInfo.DETAILS_TOOLTIP_16, 121 ] )
        self.InfoList.append( [ localeInfo.DETAILS_17, localeInfo.DETAILS_TOOLTIP_17, 123 ] )
        self.InfoList.append( [ localeInfo.DETAILS_18, localeInfo.DETAILS_TOOLTIP_18, 132 ] )
        self.InfoList.append( [ localeInfo.DETAILS_19, localeInfo.DETAILS_TOOLTIP_19, 131 ] )
        self.InfoList.append( [ localeInfo.DETAILS_20, localeInfo.DETAILS_TOOLTIP_20, 40 ] )
        self.InfoList.append( [ localeInfo.DETAILS_21, localeInfo.DETAILS_TOOLTIP_21, 41 ] )
        self.InfoList.append( [ localeInfo.DETAILS_22, localeInfo.DETAILS_TOOLTIP_22, 136 ] )
        self.InfoList.append( [ localeInfo.DETAILS_23, localeInfo.DETAILS_TOOLTIP_23, 137 ] )
        self.InfoList.append( [ "", "", self.CATEGORY_ENDLINE ] )
        
        ## 엘리멘탈 속성
        self.InfoList.append( [ localeInfo.DETAILS_CATE_2, "", self.CATEGORY_STARTLINE ] )
        self.InfoList.append( [ localeInfo.DETAILS_76, localeInfo.DETAILS_TOOLTIP_76, 77 ] )
        self.InfoList.append( [ localeInfo.DETAILS_24, localeInfo.DETAILS_TOOLTIP_24, 76 ] )
        self.InfoList.append( [ localeInfo.DETAILS_25, localeInfo.DETAILS_TOOLTIP_25, 133 ] )
        self.InfoList.append( [ localeInfo.DETAILS_26, localeInfo.DETAILS_TOOLTIP_26, 135 ] )
        self.InfoList.append( [ localeInfo.DETAILS_27, localeInfo.DETAILS_TOOLTIP_27, 75 ] )
        self.InfoList.append( [ localeInfo.DETAILS_28, localeInfo.DETAILS_TOOLTIP_28, 78 ] )
        self.InfoList.append( [ localeInfo.DETAILS_29, localeInfo.DETAILS_TOOLTIP_29, 134 ] )
        # self.InfoList.append( [ localeInfo.DETAILS_77, localeInfo.DETAILS_TOOLTIP_77, item.APPLY_RESIST_MAGIC_REDUCTION ] )
        
        # if app.ENABLE_ELEMENT_ADD:
            # self.InfoList.append( [ localeInfo.DETAILS_30, localeInfo.DETAILS_TOOLTIP_30, item.APPLY_ENCHANT_ELECT ] )
            # self.InfoList.append( [ localeInfo.DETAILS_31, localeInfo.DETAILS_TOOLTIP_31, item.APPLY_ENCHANT_ICE ] )
            # self.InfoList.append( [ localeInfo.DETAILS_32, localeInfo.DETAILS_TOOLTIP_32, item.APPLY_ENCHANT_DARK ] )
            # self.InfoList.append( [ localeInfo.DETAILS_33, localeInfo.DETAILS_TOOLTIP_33, item.APPLY_ENCHANT_FIRE ] )
            # self.InfoList.append( [ localeInfo.DETAILS_34, localeInfo.DETAILS_TOOLTIP_34, item.APPLY_ENCHANT_WIND ] )
            # self.InfoList.append( [ localeInfo.DETAILS_35, localeInfo.DETAILS_TOOLTIP_35, item.APPLY_ENCHANT_EARTH ] )
            
        self.InfoList.append( [ "", "", self.CATEGORY_ENDLINE ] )
        
        ## 직업 속성
        self.InfoList.append( [ localeInfo.DETAILS_CATE_3, "", self.CATEGORY_STARTLINE ] )
        self.InfoList.append( [ localeInfo.DETAILS_36, localeInfo.DETAILS_TOOLTIP_36, 54 ] )
        self.InfoList.append( [ localeInfo.DETAILS_37, localeInfo.DETAILS_TOOLTIP_37, 55 ] )
        self.InfoList.append( [ localeInfo.DETAILS_38, localeInfo.DETAILS_TOOLTIP_38, 56 ] )
        self.InfoList.append( [ localeInfo.DETAILS_39, localeInfo.DETAILS_TOOLTIP_39, 57 ] )
        self.InfoList.append( [ localeInfo.DETAILS_40, localeInfo.DETAILS_TOOLTIP_44, 94 ] )
        self.InfoList.append( [ localeInfo.DETAILS_41, localeInfo.DETAILS_TOOLTIP_41, 59 ] )
        self.InfoList.append( [ localeInfo.DETAILS_42, localeInfo.DETAILS_TOOLTIP_42, 60 ] )
        self.InfoList.append( [ localeInfo.DETAILS_43, localeInfo.DETAILS_TOOLTIP_43, 61 ] )
        self.InfoList.append( [ localeInfo.DETAILS_44, localeInfo.DETAILS_TOOLTIP_44, 62 ] )
        self.InfoList.append( [ localeInfo.DETAILS_45, localeInfo.DETAILS_TOOLTIP_44, 95 ] )
        self.InfoList.append( [ "", "", self.CATEGORY_ENDLINE ] )
        
        ## 무기 속성
        self.InfoList.append( [ localeInfo.DETAILS_CATE_4, "", self.CATEGORY_STARTLINE ] )
        self.InfoList.append( [ localeInfo.DETAILS_46, localeInfo.DETAILS_TOOLTIP_46, 69 ] )
        self.InfoList.append( [ localeInfo.DETAILS_47, localeInfo.DETAILS_TOOLTIP_47, 70 ] )
        self.InfoList.append( [ localeInfo.DETAILS_48, localeInfo.DETAILS_TOOLTIP_48, 71 ] )
        # self.InfoList.append( [ localeInfo.DETAILS_49, localeInfo.DETAILS_TOOLTIP_49, item.APPLY_RESIST_CLAW ] )
        self.InfoList.append( [ localeInfo.DETAILS_50, localeInfo.DETAILS_TOOLTIP_50, 72 ] )
        self.InfoList.append( [ localeInfo.DETAILS_51, localeInfo.DETAILS_TOOLTIP_51, 73 ] )
        self.InfoList.append( [ localeInfo.DETAILS_52, localeInfo.DETAILS_TOOLTIP_52, 74 ] )
        # if app.ENABLE_PENDANT:
            # self.InfoList.append( [ localeInfo.DETAILS_ATTBONUS_SWORD,        localeInfo.DETAILS_TOOLTIP_ATTBONUS_SWORD    , item.APPLY_ATTBONUS_SWORD ] )
            # self.InfoList.append( [ localeInfo.DETAILS_ATTBONUS_TWOHAND,    localeInfo.DETAILS_TOOLTIP_ATTBONUS_TWOHAND, item.APPLY_ATTBONUS_TWOHAND ] )
            # self.InfoList.append( [ localeInfo.DETAILS_ATTBONUS_DAGGER,        localeInfo.DETAILS_TOOLTIP_ATTBONUS_DAGGER    , item.APPLY_ATTBONUS_DAGGER ] )
            # self.InfoList.append( [ localeInfo.DETAILS_ATTBONUS_BELL,            localeInfo.DETAILS_TOOLTIP_ATTBONUS_BELL    , item.APPLY_ATTBONUS_BELL ] )
            # self.InfoList.append( [ localeInfo.DETAILS_ATTBONUS_FAN    ,            localeInfo.DETAILS_TOOLTIP_ATTBONUS_FAN    , item.APPLY_ATTBONUS_FAN ] )
            # self.InfoList.append( [ localeInfo.DETAILS_ATTBONUS_BOW,            localeInfo.DETAILS_TOOLTIP_ATTBONUS_BOW    , item.APPLY_ATTBONUS_BOW ] )
            # self.InfoList.append( [ localeInfo.DETAILS_ATTBONUS_CLAW,            localeInfo.DETAILS_TOOLTIP_ATTBONUS_CLAW    , item.APPLY_ATTBONUS_CLAW ] )
            # self.InfoList.append( [ localeInfo.DETAILS_RESIST_MOUNT_FALL,    localeInfo.DETAILS_TOOLTIP_RESIST_MOUNT_FALL    , item.APPLY_RESIST_MOUNT_FALL ] )
        self.InfoList.append( [ "", "", self.CATEGORY_ENDLINE ] )
        
        ## 기타
        self.InfoList.append( [ localeInfo.DETAILS_CATE_5, "", self.CATEGORY_STARTLINE ] )
        self.InfoList.append( [ localeInfo.DETAILS_53, localeInfo.DETAILS_TOOLTIP_53, 38 ] )
        self.InfoList.append( [ localeInfo.DETAILS_54, localeInfo.DETAILS_TOOLTIP_54, 39 ] )
        self.InfoList.append( [ localeInfo.DETAILS_55, localeInfo.DETAILS_TOOLTIP_55, 37 ] )
        self.InfoList.append( [ localeInfo.DETAILS_56, localeInfo.DETAILS_TOOLTIP_56, 81 ] )
        # self.InfoList.append( [ localeInfo.DETAILS_57, localeInfo.DETAILS_TOOLTIP_57, item.APPLY_BLEEDING_PCT ] )
        # self.InfoList.append( [ localeInfo.DETAILS_58, localeInfo.DETAILS_TOOLTIP_58, item.APPLY_BLEEDING_REDUCE ] )
        self.InfoList.append( [ localeInfo.DETAILS_59, localeInfo.DETAILS_TOOLTIP_59, 63 ] )
        self.InfoList.append( [ localeInfo.DETAILS_60, localeInfo.DETAILS_TOOLTIP_60, 64 ] )
        self.InfoList.append( [ localeInfo.DETAILS_61, localeInfo.DETAILS_TOOLTIP_61, 32 ] )
        self.InfoList.append( [ localeInfo.DETAILS_62, localeInfo.DETAILS_TOOLTIP_62, 33 ] )
        self.InfoList.append( [ localeInfo.DETAILS_63, localeInfo.DETAILS_TOOLTIP_63, 67 ] )
        self.InfoList.append( [ localeInfo.DETAILS_64, localeInfo.DETAILS_TOOLTIP_64, 68 ] )
        self.InfoList.append( [ localeInfo.DETAILS_65, localeInfo.DETAILS_TOOLTIP_65, 79 ] )
        self.InfoList.append( [ localeInfo.DETAILS_66, localeInfo.DETAILS_TOOLTIP_66, 87 ] )
        self.InfoList.append( [ localeInfo.DETAILS_67, localeInfo.DETAILS_TOOLTIP_67, 82 ] )
        self.InfoList.append( [ localeInfo.DETAILS_68, localeInfo.DETAILS_TOOLTIP_68, 83 ] )
        self.InfoList.append( [ localeInfo.DETAILS_69, localeInfo.DETAILS_TOOLTIP_69, 84 ] )
        self.InfoList.append( [ localeInfo.DETAILS_70, localeInfo.DETAILS_TOOLTIP_70, 85 ] )
        self.InfoList.append( [ "", "", self.CATEGORY_ENDLINE ] )
        
        ## MALL
        self.InfoList.append( [ localeInfo.DETAILS_CATE_6, "", self.CATEGORY_STARTLINE ] )
        self.InfoList.append( [ localeInfo.DETAILS_71, localeInfo.DETAILS_TOOLTIP_71, 114 ] )
        self.InfoList.append( [ localeInfo.DETAILS_72, localeInfo.DETAILS_TOOLTIP_72, 115 ] )
        self.InfoList.append( [ localeInfo.DETAILS_73, localeInfo.DETAILS_TOOLTIP_73, 116 ] )
        self.InfoList.append( [ localeInfo.DETAILS_74, localeInfo.DETAILS_TOOLTIP_74, 117 ] )
        self.InfoList.append( [ localeInfo.DETAILS_75, localeInfo.DETAILS_TOOLTIP_75, 118 ] )
        #self.InfoList.append( [ "", "", self.CATEGORY_ENDLINE ] )
        
        self.Diff = len(self.InfoList) - self.UI_MAX_COUNT
        stepSize = 1.0 / self.Diff
        self.ScrollBar.SetScrollStep( stepSize )
        self.ScollPos = 0
        self.RefreshLabel()
        
    def Show(self):
        ui.ScriptWindow.Show(self)
        self.SetTop()
        
    def Close(self):
        self.Hide()
        
    def OnUpdate(self):
        self.__Initialize()
    
    def AdjustPosition(self, x, y):
        self.SetPosition(x + self.Width, y)
    
    def OnScroll(self):
        self.RefreshLabel()
            
    def RefreshLabel(self):
        self.ScollPos = int(self.ScrollBar.GetPos() * self.Diff)
        self.LabelLineCount = 0
        self.startline_endlinecount = 0
        for i in xrange(self.UI_MAX_COUNT) :
            idx = i + self.ScollPos
            
            if idx < len(self.InfoList) :
                text = self.InfoList[idx][self.INFO_TEXT]
                type = self.InfoList[idx][self.INFO_VALUE]
                
                if type == self.CATEGORY_STARTLINE:
                    self.__LabelTitleLine(i+self.LabelLineCount, text)
                    self.startline_endlinecount += 1
                elif type == self.CATEGORY_ENDLINE:
                    self.__EmptyLine(i+self.LabelLineCount)
                    self.startline_endlinecount += 1
                else:
                    value = player.GetStatus(type)
                    self.__LabelLine(i+self.LabelLineCount, text, value)
                    if i+self.LabelLineCount < self.UI_MAX_COUNT:
                        self.labelTextList[i+self.LabelLineCount].SetOverEvent( ui.__mem_func__(self.__ButtonOverIn), self.LabelLineCount + self.startline_endlinecount )
                        self.labelTextList[i+self.LabelLineCount].SetOverOutEvent( ui.__mem_func__(self.__ButtonOverOut), self.LabelLineCount + self.startline_endlinecount )
                    self.LabelLineCount + = 1
            else:
                self .__ EmptyLine (i + self.LabelLineCount)

                
    def __LabelTitleLine (self, idx, text):
        if (idx <self.UI_MAX_COUNT):
            self.labelList [idx] .Hide ()
            self.labelTextList [idx] .Hide ()
            self.horizonBarList [idx] .Show ()
            self.horizonBarNameList [idx] .SetText (text)
                
    def __EmptyLine (self, idx):
        if (idx <self.UI_MAX_COUNT):
            self.labelList [idx] .Hide ()
            self.labelTextList [idx] .Hide ()
            self.horizonBarList [idx] .Hide ()
        
    def __LabelLine (self, idx, text, value):
        if (idx <self.UI_MAX_COUNT):
            self.labelTextList [idx] .Show ()
            self.horizonBarList [idx] .Hide ()
            self.labelList [idx] .Hide ()
        
            self.labelTextList [idx] .SetText (text)
        
            if (idx + 1 <self.UI_MAX_COUNT):
                self.labelList [idx + 1] .Show ()
                self.horizonBarList [idx + 1] .Hide ()
                self.labelTextList [idx + 1] .Hide ()
                self.labelValueList [idx + 1] .SetText (str (value))

    def __ButtonOverIn (self, i):
        idx = i + self.ScollPos
        tooltip = self.InfoList [idx] [self.INFO_TOOLTIP]
        
        arglen = len (str (tooltip))
        pos_x, pos_y = wndMgr.GetMousePosition ()
        
        self.toolTip.ClearToolTip ()
        self.toolTip.SetThinBoardSize (11 * arglen)
        self.toolTip.SetToolTipPosition (pos_x + 50, pos_y + 50)
        self.toolTip.AppendTextLine (tooltip, 0xffffff00)
        self.toolTip.Show ()
        
    def __ButtonOverOut (self, idx):
        self.toolTip.Hide ()
        
    def OnTop (self):
        if self.uiCharacterStatus:
            self.uiCharacterStatus.SetTop () [/ CODE]
 
şu adımları uygulayıp denermisin ? Bu kodların içerdiği görsellerini bulup bu yoruma eklerim.
Thinboard.7z indir ve etc>ymirwork>ui>pattern kısmına at
 

Dosya Eklentileri

Son düzenleme:
Çözüm
Hayır yorulmadık biz yardım etmeyi seviyoruz :D Bir problemin olursa konu açmaktan çekinme.

Sorun çözüldüğüne göre konu kapatılmıştır.
 
Durum
İçerik kilitlendiği için mesaj gönderimine kapatıldı.
Geri
Üst