LordZiege 279 Posted March 12, 2020 Share Posted March 12, 2020 (edited) 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, 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 August 25, 2022 by Metin2 Dev Core X - External 2 Internal 1 Link to comment Share on other sites More sharing options...
S4llios 1 Posted March 12, 2020 Share Posted March 12, 2020 Hello, In UIScript/MoveChannelDialog.py did you got: Quote "type" : "radio_button", or: Quote "type" : "button", ? If you got type as button, change it to radio_button. 1 Link to comment Share on other sites More sharing options...
LordZiege 279 Posted March 12, 2020 Author Share Posted March 12, 2020 13 minutes ago, S4llios said: Hello, In UIScript/MoveChannelDialog.py did you got: or: ? If you got type as button, change it to radio_button. ty, i edit my solution in my post 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