-
Posts
3 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by MindShift
-
-
Hello guys how can i transalte item_proto and mob_proto from client side?
When i open them looks like this" MIPX œ * @ MCOZ0 % ˜ ”ÿ˜ÃþÅ Uü3;jÅjå”bâ;‡tCz½àÃL˜‰Wz÷\>x*ßûNßÆ7Q>’ ís¬›2Ê¢+ù k·÷¶ šÓHiÕGäVüšý!ñ)F#tmý„ }†o†nT%R5 °ÂòKbÒÆ}ñ½=ÀùÀJ.ð|˜5hwFßúÔœB:’I ÿ\"
Some help please
-
Reupload please
Where to change the position of buttons in dialog.
in Community Support - Questions & Answers
Posted · Edited by Metin2 Dev
Core X - External 2 Internal
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