Tasho 243 Posted September 27, 2014 Share Posted September 27, 2014 Hi dev, I want to know what function had Metin2 Exodius used to make this killgui appear and disappear that slowly, my`n disappear instant. Min : 0:45 I have it like this: sistem_onoare_bg = ui.Button() sistem_onoare_bg.SetUpVisual("sistem_onoare/fundal.tga") sistem_onoare_bg.SetOverVisual("sistem_onoare/fundal.tga") sistem_onoare_bg.SetDownVisual("sistem_onoare/fundal.tga") self.sistem_onoare_bg = sistem_onoare_bg self.sistem_onoare_bg.SetPosition(wndMgr.GetScreenWidth()/2-229,0) self.sistem_onoare_bg.SetSize(459, 204) self.sistem_onoare_bg.SetEvent(self.__CloseKillGui) self.sistem_onoare_bg.Hide() Thanks Link to comment Share on other sites More sharing options...
RatCatcher 77 Posted September 27, 2014 Share Posted September 27, 2014 It's not that easy, probably, the easiest way would be to use OnUpdate function, or make some kind of while loop which will change position of the window by one pixel to the default position. Little advice: y = 0 x = 100 while(x < 100): x += 1 Enough is enough Link to comment Share on other sites More sharing options...
Faby 20 Posted September 27, 2014 Share Posted September 27, 2014 There is a function for images, SetAlpha. image.SetAlpha(0.59) example 1 Link to comment Share on other sites More sharing options...
Tasho 243 Posted September 27, 2014 Author Share Posted September 27, 2014 can you make an example on how to use it? Link to comment Share on other sites More sharing options...
Adrian1428 31 Posted September 27, 2014 Share Posted September 27, 2014 can you make an example on how to use it? try this: self.sistem_onoare_bg.set_alpha(50) Link to comment Share on other sites More sharing options...
Tasho 243 Posted September 27, 2014 Author Share Posted September 27, 2014 Button' object has no attribute 'set_alpha' I think ui.button dosen't support this function :-? Link to comment Share on other sites More sharing options...
Denis 1474 Posted September 27, 2014 Share Posted September 27, 2014 Jesus! He said that the function is only for images not buttons Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now