Teleport Scroll Image

Bvural41

Üye
Üye
Mesaj
2
Beğeni
16
Puan
405
Ticaret Puanı
0
Teleport Scroll Image

Proof;

0711_183101.jpg


uitooltip.py:
Genişlet Daralt Kopyala
search:

if itemVnum in WARP_SCROLLS:

change block:

            if itemVnum in WARP_SCROLLS:
                if 0 != metinSlot:
                    xPos = int(metinSlot[0])
                    yPos = int(metinSlot[1])

                    if xPos != 0 and yPos != 0:
                        (mapName, xBase, yBase) = background.GlobalPositionToMapInfo(xPos, yPos)
                       
                        localeMapName=localeInfo.MINIMAP_ZONE_NAME_DICT.get(mapName, "")

                        self.AppendSpace(5)

                        if localeMapName!="":
                            self.AppendTextLine(localeInfo.TOOLTIP_MEMORIZED_POSITION % (localeMapName, int(xPos-xBase)/100, int(yPos-yBase)/100), self.NORMAL_COLOR)
                            self.AppendMapImage(mapName, int(xPos-xBase)/100, int(yPos-yBase)/100)
                        else:
                            self.AppendTextLine(localeInfo.TOOLTIP_MEMORIZED_POSITION_ERROR % (int(xPos)/100, int(yPos)/100), self.NORMAL_COLOR)
                            dbg.TraceError("NOT_EXIST_IN_MINIMAP_ZONE_NAME_DICT: %s" % mapName)
                           
search:
def __DragonSoulInfoString (self, dwVnum):

add under:

    def AppendMapImage(self, mapName, xPos, yPos):
        mapImage = ui.ImageBox()
        mapImage.SetParent(self)
        mapImage.Show()
   
        try:
            mapImage.LoadImage("d:/ymir work/ui/atlas/%s/atlas.sub" % (mapName))
        except:
            dbg.LogBox("Harita resmi yüklenemedi: %s" % mapName)
            return
   
        mapImage.SetPosition(0, self.toolTipHeight)
        mapImage.SetWindowHorizontalAlignCenter()
       
        mapSizeDict = {
            "map_a2": [6, 6],
            "map_b2": [6, 6],
            "map_c2": [6, 6],
            "map_n_snowm_01": [6, 6],
            "metin2_map_a1": [4, 5],
            "metin2_map_a3": [4, 4],
            "metin2_map_b1": [4, 5],
            "metin2_map_b3": [4, 4],
            "metin2_map_c1": [4, 5],
            "metin2_map_c3": [4, 4],
            "metin2_map_deviltower1": [3, 3],
            "metin2_map_milgyo": [4, 4],
            "metin2_map_n_desert_01": [6, 6],
            "metin2_map_n_flame_01": [6, 6],
            "metin2_map_spiderdungeon": [3, 3],
            "metin2_map_spiderdungeon_02": [4, 4],
            "metin2_map_t1": [3, 3],
            "metin2_map_t2": [1, 1],
            "metin2_map_t3": [1, 1],
            "metin2_map_t4": [1, 1],
            "metin2_map_t5": [1, 1],
            "metin2_map_monkeydungeon": [3, 3],
            "metin2_map_monkeydungeon_02": [3, 3],
            "metin2_map_monkeydungeon_03": [3, 3],
            "metin2_map_wedding_01": [1, 1],
            "metin2_map_guild_01": [2, 2],
            "metin2_map_guild_02": [2, 2],
            "metin2_map_guild_03": [2, 2],
            "metin2_map_trent": [2, 2],
            "metin2_map_trent02": [4, 4],
            "gm_guild_build": [1, 1],
            "metin2_map_duel": [1, 1],
            "season1/metin2_map_WL_01": [6, 6],
            "season1/metin2_map_nusluck01": [4, 4],
            "season1/metin2_map_oxevent": [2, 2],
            "season1/metin2_map_sungzi": [2, 2],
            "metin2_map_bf": [2, 2],
            "metin2_map_bf_02": [2, 2],
            "metin2_map_bf_03": [2, 2],
            "metin2_map_sungzi_flame_pass01": [4, 4],
            "metin2_map_sungzi_flame_pass02": [4, 4],
            "metin2_map_sungzi_flame_pass03": [4, 4],
            "season1/metin2_map_sungzi_flame_hill_01": [2, 4],
            "season1/metin2_map_sungzi_flame_hill_02": [2, 4],
            "season1/metin2_map_sungzi_flame_hill_03": [2, 4],
            "season1/metin2_map_sungzi_snow": [3, 3],
            "season1/metin2_map_sungzi_snow_pass01": [2, 4],
            "season1/metin2_map_sungzi_snow_pass02": [2, 4],
            "season1/metin2_map_sungzi_snow_pass03": [2, 4],
            "season1/metin2_map_sungzi_desert_01": [4, 4],
            "season1/metin2_map_sungzi_desert_hill_01": [2, 4],
            "season1/metin2_map_sungzi_desert_hill_02": [2, 4],
            "season1/metin2_map_sungzi_desert_hill_03": [2, 4],
            "season1/metin2_map_sungzi_milgyo": [3, 3],
            "season1/metin2_map_sungzi": [3, 3],
            "season1/metin2_map_sungzi_snow": [3, 3],
            "season1/metin2_map_sungzi_desert_01": [3, 3],
            "season1/metin2_map_sungzi_milgyo_pass01": [2, 4],
            "season1/metin2_map_sungzi_milgyo_pass02": [2, 4],
            "season1/metin2_map_sungzi_milgyo_pass03": [2, 4],
            "season1/metin2_map_sungzi_flame_hill_01": [2, 4],
            "season1/metin2_map_sungzi_flame_hill_02": [2, 4],
            "season1/metin2_map_sungzi_flame_hill_03": [2, 4],
            "season1/metin2_map_sungzi_snow_pass01": [2, 4],
            "season1/metin2_map_sungzi_snow_pass02": [2, 4],
            "season1/metin2_map_sungzi_snow_pass03": [2, 4],
            "season1/metin2_map_sungzi_desert_hill_01": [2, 4],
            "season1/metin2_map_sungzi_desert_hill_02": [2, 4],
            "season1/metin2_map_sungzi_desert_hill_03": [2, 4],
            "season1/metin2_map_ew02": [4, 4],
            "season2/metin2_map_empirewar01": [2, 2],
            "season2/metin2_map_empirewar02": [2, 2],
            "season2/metin2_map_empirewar03": [2, 2],
            "season2/map_n_snowm_02": [6, 6],
            "season2/metin2_map_milgyo_a": [4, 4],
            "season2/metin2_map_n_desert_02": [6, 6],
            "season2/metin2_map_n_flame_02": [6, 6],
            "season2/metin2_map_a2_1": [6, 6],
            "season2/metin2_map_trent_a": [2, 2],
            "season2/metin2_map_trent02_a": [3, 3],
            "season2/metin2_map_skipia_dungeon_01": [6, 6],
            "season2/metin2_map_skipia_dungeon_02": [6, 6],
            "season2/metin2_map_empirewar01": [2, 2],
            "season2/metin2_map_empirewar02": [2, 2],
            "season2/metin2_map_empirewar03": [2, 2],
            "season1/metin2_map_spiderdungeon_02": [4, 4],
            "season1/metin2_map_oxevent": [2, 2],
            "season2/metin2_map_skipia_dungeon_boss": [2, 2],
            "metin2_map_devilsCatacomb": [8, 8],
            "metin2_map_spiderdungeon_03": [3, 3],
            "metin2_guild_village_01": [2, 2],
            "metin2_guild_village_02": [2, 2],
            "metin2_guild_village_03": [2, 2],
            "Metin2_map_CapeDragonHead": [6, 6],
            "metin2_map_Mt_Thunder": [4, 6],
            "metin2_map_dawnmistwood": [7, 4],
            "metin2_map_BayBlackSand": [3, 6],
            "metin2_map_n_flame_dungeon_01": [3, 3],
            "metin2_map_n_snow_dungeon_01": [4, 3],
            "metin2_map_e1": [2, 2],
            "metin2_map_Mt_Th_dungeon_01": [3, 3],
            "metin2_map_dawnmist_dungeon_01": [3, 4],
            "metin2_map_n_flame_dragon": [1, 1],
            "metin2_map_battlefied": [2, 2],
            "metin2_map_defensewave": [3, 3],
            "metin2_map_defensewave_port": [3, 3],
            "metin2_12zi_stage": [6, 6],
            "metin2_map_mushroom_dungeon": [4, 4],
            "metin2_map_orclabyrinth": [3, 6],
            "crystal_dungeon": [4, 4],
            "metin2_map_labyrinth": [1, 1],
            "metin2_map_n_flame_dungeon_02": [3, 3],
            "metin2_map_n_snow_dungeon_02": [4, 3],
            "metin2_map_smhdungeon_01": [1, 1],
            "metin2_map_smhdungeon_02": [2, 2],
            "metin2_guild_pve": [2, 2],
            "metin2_map_privateshop": [2, 2],
            "metin2_map_kingdoomswar": [2, 2],
            "metin2_map_empirecastle": [2, 2],
            "metin2_map_eastplain_01": [4, 5],
            "metin2_map_eastplain_02": [3, 6],
            "metin2_map_eastplain_03": [4, 2],
            "metin2_map_maze_dungeon1": [3, 3],
            "metin2_map_maze_dungeon2": [3, 3],
            "metin2_map_maze_dungeon3": [3, 3],
            "metin2_map_snakevalley": [6, 3],
            "metin2_map_snake_temple_01": [3, 3],
            "metin2_map_snake_temple_02": [3, 3],
            "metin2_map_elemental_01": [5, 5],
            "metin2_map_elemental_02": [5, 5],
            "metin2_map_elemental_03": [5, 5],
            "metin2_map_elemental_04": [1, 2],
            "metin2_map_anglar_dungeon_01": [6, 6],
            "metin2_map_icecrystalcave": [5, 4],
            "metin2_map_whitdragonvalley": [3, 3],
            "metin2_map_whitedragoncave_01": [6, 6],
            "metin2_map_whitedragoncave_02": [3, 3],
            "metin2_map_whitedragoncave_boss": [2, 2],
        }
       
        if mapName in mapSizeDict:
            pointImageX = (xPos / float(mapSizeDict[mapName][0] * (128 * 200)) * float(mapImage.GetWidth())) * 100 - 15.0
            pointImageY = (yPos / float(mapSizeDict[mapName][1] * (128 * 200)) * float(mapImage.GetHeight())) * 100 - 15.0
           
            pointImage = ui.AniImageBox()
            pointImage.SetParent(mapImage)
            pointImage.SetDelay(6)
            for i in xrange(1, 15):
                pointImage.AppendImage("d:/ymir work/ui/minimap/waypoint%02d.sub" % i)
            pointImage.SetPosition(pointImageX, pointImageY)
            pointImage.Show()
       
        self.toolTipHeight += mapImage.GetHeight()
        self.childrenList.append(mapImage)
        if mapName in mapSizeDict:
            self.childrenList.append(pointImage)
        self.ResizeToolTipAppenImage()

    def ResizeToolTipAppenImage(self):
        max_width = 0
        for child in self.childrenList:
            w = child.GetWidth()
            if w > max_width:
                max_width = w
   
        new_width = max(200, max_width + 20)
       
        self.toolTipWidth = new_width
        self.SetSize(new_width, self.TOOL_TIP_HEIGHT + self.toolTipHeight)
 
Geri
Üst