Active Member Dex 521 Posted October 23, 2021 Active Member Share Posted October 23, 2021 Hello there, here is a little improvement for the characterwindow which looks like that: You will be able to switch between tabs with the MouseWheel, so lets get started. First of all you need to put this in your source, after that simply do the following changes to the uicharacter.py: Spoiler Look for this: def GetState(self): return self.state Add under it this: def OnRunMouseWheel(self, nLen): if nLen > 0: if self.GetState() == "STATUS": self.SetState("SKILL") elif self.GetState() == "SKILL": self.SetState("EMOTICON") elif self.GetState() == "EMOTICON": self.SetState("QUEST") else: if self.GetState() == "SKILL": self.SetState("STATUS") elif self.GetState() == "EMOTICON": self.SetState("SKILL") elif self.GetState() == "QUEST": self.SetState("EMOTICON") Kind Regards, Dex 1 3 1 Link to comment Share on other sites More sharing options...
Active Member Volvox 1510 Posted October 23, 2021 Active Member Share Posted October 23, 2021 Simple and useful. Thanks Link to comment Share on other sites More sharing options...
Active Member Helia01 2134 Posted October 27, 2021 Active Member Share Posted October 27, 2021 It is better to do it where it is really necessary. For example, in the bonus viewing panel. 2 Link to comment Share on other sites More sharing options...
SamuraiHUN 1548 Posted October 27, 2021 Share Posted October 27, 2021 7 hours ago, Helia01 said: It is better to do it where it is really necessary. For example, in the bonus viewing panel. uicharacterdetails.py search this.: def OnScroll(self): self.RefreshLabel() add under this: def OnRunMouseWheel(self, nLen): if nLen > 0: self.ScrollBar.OnUp() else: self.ScrollBar.OnDown() 2 Link to comment Share on other sites More sharing options...
Active Member Helia01 2134 Posted October 30, 2021 Active Member Share Posted October 30, 2021 (edited) This is the hidden content, please Sign In or Sign Up Edited October 30, 2021 by Helia01 39 9 5 3 Link to comment Share on other sites More sharing options...
SamuraiHUN 1548 Posted October 30, 2021 Share Posted October 30, 2021 uimessenger.py search this: def OnScroll(self): scrollLineCount = len(self.showingItemList) - (self.showingPageSize/20) startLine = int(scrollLineCount * self.scrollBar.GetPos()) if startLine != self.startLine: self.startLine = startLine self.__LocateMember() add under this: def OnRunMouseWheel(self, nLen): if nLen > 0: self.scrollBar.OnUp() else: self.scrollBar.OnDown() uiwhisper.py search this: def OnScroll(self): chat.SetWhisperPosition(self.targetName, self.scrollBar.GetPos()) add under this: def OnRunMouseWheel(self, nLen): if nLen > 0: self.scrollBar.OnUp() else: self.scrollBar.OnDown() uiselectmusic.py search this: def __OnRefresh(self): self.__RefreshFileList() add under this: def OnRunMouseWheel(self, nLen): self.fileListBox.RunMouseWheel(nLen) 1 Link to comment Share on other sites More sharing options...
Active Member Helia01 2134 Posted October 30, 2021 Active Member Share Posted October 30, 2021 (edited) 21 hours ago, SamuraiHUN said: uiselectmusic.py search this: def __OnRefresh(self): self.__RefreshFileList() add under this: def OnRunMouseWheel(self, nLen): self.fileListBox.RunMouseWheel(nLen) it' dont work for me. I did it like this This is the hidden content, please Sign In or Sign Up Edited October 31, 2021 by Helia01 25 3 2 Link to comment Share on other sites More sharing options...
SamuraiHUN 1548 Posted October 31, 2021 Share Posted October 31, 2021 18 hours ago, Helia01 said: it' dont work for me. I did it like this Hidden Content #in file uiselectmusic.py #in class FileListDialog(ui.ScriptWindow): #under self.fileListBox=None #add this: self.ScrollBar=None #in function: def __Load_BindObject(self): #under self.fileListBox.SetScrollBar(self.GetChild("ScrollBar")) #add this self.ScrollBar=self.GetChild("ScrollBar") #under def __OnRefresh(self): #add this def OnRunMouseWheel(self, nLen): if nLen > 0: self.ScrollBar.OnUp() else: self.ScrollBar.OnDown() Yeah i forgeted, thank you the anwser, dear @ Helia01 Link to comment Share on other sites More sharing options...
Active Member Helia01 2134 Posted October 31, 2021 Active Member Share Posted October 31, 2021 2 hours ago, SamuraiHUN said: Yeah i forgeted, thank you the anwser, dear @ Helia01 I corrected the code from my comment. Now it is more correct. Link to comment Share on other sites More sharing options...
Mohseini 0 Posted November 5, 2021 Share Posted November 5, 2021 (edited) Is any additional code required? I can only scroll if i have the mouse pointed on the scroll bar (distraught system only) Whatever modifications i made from this post, didn't work. Anyone having any suggestion? Edited November 5, 2021 by Mohseini Link to comment Share on other sites More sharing options...
Active Member Helia01 2134 Posted November 6, 2021 Active Member Share Posted November 6, 2021 1 hour ago, Mohseini said: Is any additional code required? I can only scroll if i have the mouse pointed on the scroll bar (distraught system only) Whatever modifications i made from this post, didn't work. Anyone having any suggestion? You may have forgotten to do this. 1 Link to comment Share on other sites More sharing options...
Active Member Vaynz 1893 Posted December 5, 2021 Active Member Share Posted December 5, 2021 (edited) For special storage - "categories" Search Search def SetCategoryPage(self, page): [...] Add after def OnRunMouseWheel(self, nLen): if nLen > 0: if self.categoryPageIndex < 3: self.SetCategoryPage(self.categoryPageIndex + 1) else: if self.categoryPageIndex > 0: self.SetCategoryPage(self.categoryPageIndex - 1) " < 3 : " change with how much categories you have. Edited December 5, 2021 by Vaynz Link to comment Share on other sites More sharing options...
Recommended Posts