Jump to content

MindShift

Inactive Member
  • Posts

    3
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by MindShift

  1. 4 hours ago, Tatsumaru said:

    Hello

    How to lower these buttons? I suspect that in the uiquest.py file, but where exactly? Or maybe somewhere else?

    ixWfGwt.jpg

    I think is at  class BarButton, you need to edit it

     

    Try to use this:

     

    class BarButton(ui.Button):
        ColorUp = 0x40999999
        ColorDown = 0x40aaaacc
        ColorOver = 0x40ddddff

        UP=0
        DOWN=1
        OVER=2

        def __init__(self, layer = "UI", 
                aColorUp   = ColorUp, 
                aColorDown = ColorDown, 
                aColorOver = ColorOver):
            ui.Button.__init__(self,layer)
            self.state = self.UP
            self.colortable = aColorUp, aColorDown, aColorOver

        def OnRender(self):
            x,y = self.GetGlobalPosition()
            grp.SetColor(self.colortable[self.state])
            grp.RenderBar(x,y,self.GetWidth(),self.GetHeight())

        def CallEvent(self):
            self.state = self.UP
            ui.Button.CallEvent(self)

        def DownEvent(self):
            self.state = self.DOWN

        def ShowToolTip(self):
            self.state = self.OVER

        def HideToolTip(self):
            self.state = self.UP

     

     

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.