Onforum.net - Web and gaming resource community

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members .

Quests /Python Displays the recharge time for skills

Vanilla

Elite
Elite
Credits
1,180
0c51f0568e9284d618e245d2f28ac57d.png

As you whatever you broke the clients may lead to the collapse of the post with immediate login, it is strongly suggested to root about and locale_hu about back up prepare before you go !

Well, you need to break down locale_en eix and epk, look for the taskbar.py in the ui folder :
Python:
"name" : "quick_slot_1",
Well look for the parentheses of this child 's song, write the code between parentheses with this:
Python:
                        {
                            "name" : "slot_1",
                            "type" : "image",
                            "x" : 3,
                            "y" : 3,
                            "image" : "d:/ymir work/ui/game/taskbar/1.sub",
                            "children" :
                            (
                                {
                                    "name" : "slot_1_cd",
                                    "type" : "text",
                                    "x" : 0,
                                    "y" : 0,
                                    "horizontal_align" : "center",
                                    "vertical_align" : "center",
                                    "text" : "10",
                                    "fontname" : "Tahoma Bold:16",
                                    "r" : 1, "g" : 1, "b" : 0, "a" : 0,
                                },
                            ),
                        },
                        {
                            "name" : "slot_2",
                            "type" : "image",
                            "x" : 35,
                            "y" : 3,
                            "image" : "d:/ymir work/ui/game/taskbar/2.sub",
                            "children" :
                            (
                                {
                                    "name" : "slot_2_cd",
                                    "type" : "text",
                                    "x" : 0,
                                    "y" : 0,
                                    "horizontal_align" : "center",
                                    "vertical_align" : "center",
                                    "text" : "10",
                                    "fontname" : "Tahoma Bold:16",
                                    "r" : 1, "g" : 1, "b" : 0, "a" : 0,
                                },
                            ),
                        },
                        {
                            "name" : "slot_3",
                            "type" : "image",
                            "x" : 67,
                            "y" : 3,
                            "image" : "d:/ymir work/ui/game/taskbar/3.sub",
                            "children" :
                            (
                                {
                                    "name" : "slot_3_cd",
                                    "type" : "text",
                                    "x" : 0,
                                    "y" : 0,
                                    "horizontal_align" : "center",
                                    "vertical_align" : "center",
                                    "text" : "10",
                                    "fontname" : "Tahoma Bold:16",
                                    "r" : 1, "g" : 1, "b" : 0, "a" : 0,
                                },
                            ),
                        },{
                            "name" : "slot_4",
                            "type" : "image",
                            "x" : 99,
                            "y" : 3,
                            "image" : "d:/ymir work/ui/game/taskbar/4.sub",
                            "children" :
                            (
                                {
                                    "name" : "slot_4_cd",
                                    "type" : "text",
                                    "x" : 0,
                                    "y" : 0,
                                    "horizontal_align" : "center",
                                    "vertical_align" : "center",
                                    "text" : "10",
                                    "fontname" : "Tahoma Bold:16",
                                    "r" : 1, "g" : 1, "b" : 0, "a" : 0,
                                },
                            ),
                        },
Now look for her:
Python:
"name" : "quick_slot_2",
Proceed as before, write the code between the child's parentheses:
Python:
   {
                            "name" : "slot_f1",
                            "type" : "image",
                            "x" : 3,
                            "y" : 3,
                            "image" : "d:/ymir work/ui/game/taskbar/f1.sub",
                            "children" :
                            (
                                {
                                    "name" : "slot_f1_cd",
                                    "type" : "text",
                                    "x" : 0,
                                    "y" : 0,
                                    "horizontal_align" : "center",
                                    "vertical_align" : "center",
                                    "text" : "10",
                                    "fontname" : "Tahoma Bold:16",
                                    "r" : 1, "g" : 1, "b" : 0, "a" : 0,
                                },
                            ),
                        },
                        {
                            "name" : "slot_f2",
                            "type" : "image",
                            "x" : 35,
                            "y" : 3,
                            "image" : "d:/ymir work/ui/game/taskbar/f2.sub",
                            "children" :
                            (
                                {
                                    "name" : "slot_f2_cd",
                                    "type" : "text",
                                    "x" : 0,
                                    "y" : 0,
                                    "horizontal_align" : "center",
                                    "vertical_align" : "center",
                                    "text" : "10",
                                    "fontname" : "Tahoma Bold:16",
                                    "r" : 1, "g" : 1, "b" : 0, "a" : 0,
                                },
                            ),
                        },
                        {
                            "name" : "slot_f3",
                            "type" : "image",
                            "x" : 67,
                            "y" : 3,
                            "image" : "d:/ymir work/ui/game/taskbar/f3.sub",
                            "children" :
                            (
                                {
                                    "name" : "slot_f3_cd",
                                    "type" : "text",
                                    "x" : 0,
                                    "y" : 0,
                                    "horizontal_align" : "center",
                                    "vertical_align" : "center",
                                    "text" : "10",
                                    "fontname" : "Tahoma Bold:16",
                                    "r" : 1, "g" : 1, "b" : 0, "a" : 0,
                                },
                            ),
                        },{
                            "name" : "slot_f4",
                            "type" : "image",
                            "x" : 99,
                            "y" : 3,
                            "image" : "d:/ymir work/ui/game/taskbar/f4.sub",
                            "children" :
                            (
                                {
                                    "name" : "slot_f4_cd",
                                    "type" : "text",
                                    "x" : 0,
                                    "y" : 0,
                                    "horizontal_align" : "center",
                                    "vertical_align" : "center",
                                    "text" : "10",
                                    "fontname" : "Tahoma Bold:16",
                                    "r" : 1, "g" : 1, "b" : 0, "a" : 0,
                                },
                            ),
                        },
And with this locale section, we'd like to pack it up, the next thing we need to do is root, inside uitaskbar.py where to find the following codes:
Python:
self.quickslot = []
self.quickslot.append(self.GetChild("quick_slot_1"))
self.quickslot.append(self.GetChild("quick_slot_2"))
It is then put in the following code above:
Python:
self.cooldownText = []
self.cooldownText.append(self.GetChild("slot_1_cd"))
self.cooldownText.append(self.GetChild("slot_2_cd"))
self.cooldownText.append(self.GetChild("slot_3_cd"))
self.cooldownText.append(self.GetChild("slot_4_cd"))
self.cooldownText.append(self.GetChild("slot_f1_cd"))
self.cooldownText.append(self.GetChild("slot_f2_cd"))
self.cooldownText.append(self.GetChild("slot_f3_cd"))
self.cooldownText.append(self.GetChild("slot_f4_cd"))
for i in xrange(8):
    self.cooldownText[i-1].Hide()
Look for def __OnUpdate (self) :
Python:
if True == self.expGaugeBoard.IsIn():
            self.tooltipEXP.Show()
        else:
            self.tooltipEXP.Hide()
Insert this:
Python:
    startNumber = 0
        for slot in self.quickslot:
            for i in xrange(4):
                slotNumber = i+startNumber
                (Type, Position) = player.GetLocalQuickSlot(slotNumber)
                if player.IsSkillCoolTime(Position):
                    (coolTime, elapsedTime) = player.GetSkillCoolTime(Position)
                    slot.SetSlotCoolTime(slotNumber, coolTime, elapsedTime)

                    cooldownDelay = 0
                    cooldown = int(coolTime-elapsedTime+cooldownDelay)
                    self.cooldownText[slotNumber].SetOutline()
                    self.cooldownText[slotNumber].SetText("%d" % cooldown)
                    cooldown = str(cooldown)
                    self.cooldownText[slotNumber].SetPosition((7, 2, -1)[len(cooldown) - 1],0)
                    self.cooldownText[slotNumber].Show()
                else:
                    self.cooldownText[slotNumber].Hide()
            startNumber += 4
Well, you're ready , pack your root, and you can upload to your patcher storage with locale_en
 
Top

Dear User!

We found that you are blocking the display of ads on our site.

Please add it to the exception list or disable AdBlock.

The advertises that you'll see aren't intrusive they just help us to keep the community alive

If you don't want to see those ads just buy an upgrade.

Thank you for understanding!

Rogue

Rogue Purchase

User upgrade! at

🔥 Upgrade Now
Baba2

Baba2 Purchase

User upgrade! at

🔥 Upgrade Now

Escanor25 Purchase

User upgrade! at

🔥 Upgrade Now