• Announcement:
    In order to download VIP files, you need to UPGRADE your account.

[Python]Shop Title like Ikarus

Baldwin
Co-Admin
Premium
VIP
Developer
Mar
Threads
118
248
1,520
93
HubMoney
1,693
ui.py xxthinboard(window) change class
thx:metin2008

Hidden content
You need to reply to this thread in order to see this content.
 

Attachments

  • 131490_21cee5ac084478355e2782a8f268a602.png
    131490_21cee5ac084478355e2782a8f268a602.png
    934 KB · Views: 125
Last edited by a moderator:
Metin2Hub Bot
M2Hub Bot
Feb
Threads
65
1,484
1
607
113
HubMoney
972
ui.py xxthinboard(window) change class

Python:
    class ThinBoard(Window):
        CORNER_WIDTH = 0
        CORNER_HEIGHT = 0
        BOARD_COLOR = grp.GenerateColor(0.0, 0.0, 0.0, 0.25)
        BOARD_BASE_COLOR = grp.GenerateColor(0.0, 0.0, 0.0, 0.50)
        def __init__(self):
            Window.__init__(self)

            Box = Box()
            Box.SetParent(self)
            Box.AddFlag("attach")
            Box.AddFlag("not_pick")
            Box.SetPosition(self.CORNER_WIDTH, self.CORNER_HEIGHT)
            Box.SetColor(self.BOARD_BASE_COLOR)
            Box.Show()
            self.Box = Box

            Base = Bar()
            Base.SetParent(self.Box)
            Base.AddFlag("attach")
            Base.AddFlag("not_pick")
            Base.SetPosition(self.CORNER_WIDTH, self.CORNER_HEIGHT)
            Base.SetColor(self.BOARD_COLOR)
            Base.Show()
            self.Base = Base

        def __del__(self):
            Window.__del__(self)

        def SetSize(self, width, height=33):
            width = max(self.CORNER_WIDTH*2, width-60)
            height = max(self.CORNER_HEIGHT*2, height)
            Window.SetSize(self, width, height)
            self.Base.SetSize(width - self.CORNER_WIDTH*2, height - self.CORNER_HEIGHT*2)
            self.Box.SetSize(width - self.CORNER_WIDTH*2, height - self.CORNER_HEIGHT*2)

        def ShowInternal(self):
            self.Base.Show()
            self.Box.Show()

        def HideInternal(self):
            self.Base.Hide()
            self.Box.Hide()

Hello dear user,

Your post will be under surveillance by bots for the next few hours.

Forum description : Metin2 private server, Metin2 download, Metin2 support, Metin2 Forum, Metin2 Pvp Servers, Errors, Bugs, Requests, Metin2 Pvp Forum, Everything About Metin2.
 
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock