Jump to content

Problem about Button class


Recommended Posts

FIX:

 

ui.py add:

 

def MakeRadioButton(parent, x, y, tooltipText, path, up, over, down):
	button = RadioButton()
	button.SetParent(parent)
	button.SetPosition(x, y)
	button.SetUpVisual(path + up)
	button.SetOverVisual(path + over)
	button.SetDownVisual(path + down)
	button.SetToolTipText(tooltipText)
	button.Show()
	return button

 

class MoveChannelDialog replace this:

 

self.channelButtonList.append(ui.MakeButton(self.blackBoard, 7, 7+30*i, "", "d:/ymir work/ui/game/myshop_deco/", "select_btn_01.sub", "select_btn_02.sub", "select_btn_03.sub"))

with this:

 

self.channelButtonList.append(ui.MakeRadioButton(self.blackBoard, 7, 7+30*i, "", "d:/ymir work/ui/game/myshop_deco/", "select_btn_01.sub", "select_btn_02.sub", "select_btn_03.sub"))

Hey there,

 

EL7Yv.gif

 

this is my problem. the down event not working right (only in this window)

 

i hope someone have any idea. (i didnt changed anything in the class and source)

Edited by Metin2 Dev
Core X - External 2 Internal
  • Love 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.