Jump to content

AmoreMioo - erro interface :D COD Phyton


trample
 Share

Recommended Posts

introLogin.py(line:513) __LoadScript
ui.py(line:3306) LoadScriptFile
ui.py(line:3425) LoadChildren
ui.py(line:2340) __init__

LoginWindow.__LoadScript.LoadObject - <type 'exceptions.AttributeError'>:'Bar' object has no attribute 'LoadImage'

0222 19:32:00956 :: ============================================================================================================
0222 19:32:00956 :: Abort!!!!

 

 

Citar

Hidden Content

    Give reaction to this post to see the hidden content.

 

 

Link to comment
Share on other sites

Mesmo corrigindo o problema eu nao encontro a opçao para almentar a imagem tipo a na imagem de fundo aparece ela pequena e o restante fica transparente sabe aonde fica para eu arrumar deixar o marrom maior e prencher a transparencia?

Hidden Content

    Give reaction to this post to see the hidden content.

Link to comment
Share on other sites

38 minutos atrás, trample disse:

Mesmo corrigindo o problema eu nao encontro a opçao para almentar a imagem tipo a na imagem de fundo aparece ela pequena e o restante fica transparente sabe aonde fica para eu arrumar deixar o marrom maior e prencher a transparencia?

Hidden Content

    Give reaction to this post to see the hidden content.


Tens de fazer a imagem então ..

Hidden Content

    Give reaction to this post to see the hidden content.

Edited by мαяcσ
Link to comment
Share on other sites

e a resoluçao que entre o bord com a imagem nao adianta eu apenas almentar a imagems penso eu se nao os bord vai continuar transparente

deve ser alguma aplicaçao na base

olha

Citar

class ThinBoard(Window):

    CORNER_WIDTH = 21
    CORNER_HEIGHT = 21
    LINE_WIDTH = 21
    LINE_HEIGHT = 21

 

 

    BOARD_COLOR = grp.GenerateColor(0.0, 0.0, 0.0, 0.51)

    UL = 0
    UR = 1
    UT = 2
    UB = 3
    ULT = 0
    ULB = 1
    URT = 2
    URB = 3
    LT = 0
    LB = 1
    RT = 2
    RB = 3
    L = 0
    R = 1
    T = 2
    B = 3

    def __init__(self, layer = "UI"):
        Window.__init__(self, layer)

        ShadowbarFileNames = [ "kanort_work/images/controls/common/thinboard_transparent/shadow_bar_"+dir+".tga" for dir in ["left","right","top","bottom"] ]
        ShadowcornerFileNames = [ "kanort_work/images/controls/common/thinboard_transparent/shadow_corner_"+dir+".tga" for dir in ["lefttop","leftbottom","righttop","rightbottom"] ]
        CornerFileNames = [ "kanort_work/images/controls/common/thinboard_transparent/corner_"+dir+".tga" for dir in ["lefttop","leftbottom","righttop","rightbottom"] ]
        LineFileNames = [ "kanort_work/images/controls/common/thinboard_transparent/bar_"+dir+".tga" for dir in ["left","right","top","bottom"] ]

        self.Shadowbars = []
        for fileName in ShadowbarFileNames:
            Shadowbar = ExpandedImageBox()
            Shadowbar.AddFlag("attach")
            Shadowbar.AddFlag("not_pick")
            Shadowbar.LoadImage(fileName)
            Shadowbar.SetParent(self)
            Shadowbar.SetPosition(0, 0)
            Shadowbar.Show()
            self.Shadowbars.append(Shadowbar)

        self.Shadowcorners = []
        for fileName in ShadowcornerFileNames:
            Shadowcorner = ExpandedImageBox()
            Shadowcorner.AddFlag("attach")
            Shadowcorner.AddFlag("not_pick")
            Shadowcorner.LoadImage(fileName)
            Shadowcorner.SetParent(self)
            Shadowcorner.SetPosition(0, 0)
            Shadowcorner.Show()
            self.Shadowcorners.append(Shadowcorner)

        self.Corners = []
        for fileName in CornerFileNames:
            Corner = ExpandedImageBox()
            Corner.AddFlag("attach")
            Corner.AddFlag("not_pick")
            Corner.LoadImage(fileName)
            Corner.SetParent(self)
            Corner.SetPosition(0, 0)
            Corner.Show()
            self.Corners.append(Corner)

        self.Lines = []
        for fileName in LineFileNames:
            Line = ExpandedImageBox()
            Line.AddFlag("attach")
            Line.AddFlag("not_pick")
            Line.LoadImage(fileName)
            Line.SetParent(self)
            Line.SetPosition(0, 0)
            Line.Show()
            self.Lines.append(Line)            

        Base = ExpandedImageBox()

        Base.SetParent(self)
        Base.AddFlag("attach")
        Base.AddFlag("not_pick")
        Base.SetPosition(self.CORNER_WIDTH, self.CORNER_HEIGHT)
        Base.LoadImage("kanort_work/images/controls/common/thinboard_transparent/fill.tga")

        Base.Show()
        self.Base = Base            

        self.Shadowbars[self.UL].SetPosition(-41, self.CORNER_HEIGHT)
        self.Shadowbars[self.UT].SetPosition(self.CORNER_WIDTH, -41)
        self.Lines[self.L].SetPosition(0, self.CORNER_HEIGHT)
        self.Lines[self.T].SetPosition(self.CORNER_WIDTH, 0)
        

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

    if app.ENABLE_SEND_TARGET_INFO:
        def ShowCorner(self, corner):
            self.Corners[corner].Show()
            self.SetSize(self.GetWidth(), self.GetHeight())

        def HideCorners(self, corner):
            self.Corners[corner].Hide()
            self.SetSize(self.GetWidth(), self.GetHeight())

        def ShowLine(self, line):
            self.Lines[line].Show()
            self.SetSize(self.GetWidth(), self.GetHeight())

        def HideLine(self, line):
            self.Lines[line].Hide()
            self.SetSize(self.GetWidth(), self.GetHeight())

    def SetSize(self, width, height):

        width = max(self.CORNER_WIDTH*2, width)
        height = max(self.CORNER_HEIGHT*2, height)
        Window.SetSize(self, width, height)
        
        self.Shadowcorners[self.ULT].SetPosition(-11, -11)
        self.Shadowcorners[self.ULB].SetPosition(-11, height - self.CORNER_HEIGHT)
        self.Shadowcorners[self.URT].SetPosition(width - self.CORNER_WIDTH, -11)
        self.Shadowcorners[self.URB].SetPosition(width - self.CORNER_WIDTH, height - self.CORNER_HEIGHT)
        self.Shadowbars[self.UR].SetPosition(width - self.CORNER_WIDTH, self.CORNER_HEIGHT)
        self.Shadowbars[self.UB].SetPosition(self.CORNER_HEIGHT, height - self.CORNER_HEIGHT)

        self.Corners[self.LB].SetPosition(0, height - self.CORNER_HEIGHT)
        self.Corners[self.RT].SetPosition(width - self.CORNER_WIDTH, 0)
        self.Corners[self.RB].SetPosition(width - self.CORNER_WIDTH, height - self.CORNER_HEIGHT)
        self.Lines[self.R].SetPosition(width - self.CORNER_WIDTH, self.CORNER_HEIGHT)
        self.Lines[self.B].SetPosition(self.CORNER_HEIGHT, height - self.CORNER_HEIGHT)

        verticalShowingPercentage = float((height - self.CORNER_HEIGHT*2) - self.LINE_HEIGHT) / self.LINE_HEIGHT
        horizontalShowingPercentage = float((width - self.CORNER_WIDTH*2) - self.LINE_WIDTH) / self.LINE_WIDTH
        self.Lines[self.L].SetRenderingRect(0, 0, 0, verticalShowingPercentage)
        self.Lines[self.R].SetRenderingRect(0, 0, 0, verticalShowingPercentage)
        self.Lines[self.T].SetRenderingRect(0, 0, horizontalShowingPercentage, 0)
        self.Lines[self.B].SetRenderingRect(0, 0, horizontalShowingPercentage, 0)
        self.Base.SetRenderingRect(0, 0, width - self.CORNER_WIDTH*2 - 1, height - self.CORNER_HEIGHT*2 - 1)
        self.Shadowbars[self.UT].SetRenderingRect(0, 0, width - self.CORNER_WIDTH*2 - 1, 0)
        self.Shadowbars[self.UB].SetRenderingRect(0, 0, width - self.CORNER_WIDTH*2 - 1, 0)
        self.Shadowbars[self.UR].SetRenderingRect(0, 0, 0, height - self.CORNER_HEIGHT*2 - 1)
        self.Shadowbars[self.UL].SetRenderingRect(0, 0, 0, height - self.CORNER_HEIGHT*2 - 1)

 

 

Link to comment
Share on other sites

21 minutos atrás, trample disse:

e a resoluçao que entre o bord com a imagem nao adianta eu apenas almentar a imagems penso eu se nao os bord vai continuar transparente

deve ser alguma aplicaçao na base

olha

 

eu editei *  se estás a usar estas imagens 

Hidden Content

    Give reaction to this post to see the hidden content.
 edita ai

Link to comment
Share on other sites

11 minutos atrás, trample disse:

na realidade editei Conteudo da Root , mais vou ver se funfa editar a imagem pq nao mostra a reslouçao da imagem achei muito estranho

Edita a imagem que resolve, contudo tem atenção que in-game irá mudar também 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...