diff --git a/assets/root/ui.py b/assets/root/ui.py index 7362ee56..a6e3381c 100644 --- a/assets/root/ui.py +++ b/assets/root/ui.py @@ -778,7 +778,7 @@ class EditLine(TextLine): def OnIMEUpdate(self): snd.PlaySound("sound/ui/type.wav") - TextLine.SetText(self, ime.GetText()) + self.SetText(ime.GetText()) def OnIMETab(self): if self.eventTab: diff --git a/assets/root/uitip.py b/assets/root/uitip.py index f8f09afa..cc820ed2 100644 --- a/assets/root/uitip.py +++ b/assets/root/uitip.py @@ -236,13 +236,13 @@ class BigBoard(ui.Bar): if len(self.tipList) == 1: checkTime, text = self.tipList[0] (text_width, text_height) = self.textBar.GetTextExtent(text) - self.textBar.TextOut((500-text_width)/2, (self.STEP_HEIGHT-8-text_height)/2, text) + self.textBar.TextOut((500-text_width)//2, (self.STEP_HEIGHT-8-text_height)//2, text) else: index = 0 for checkTime, text in self.tipList: (text_width, text_height) = self.textBar.GetTextExtent(text) - self.textBar.TextOut((500-text_width)/2, index*self.LINE_HEIGHT, text) + self.textBar.TextOut((500-text_width)//2, index*self.LINE_HEIGHT, text) index += 1 def SetTip(self, text):