def OnMouseOverIn(self): app.SetCursor(app.VSIZE)
def Create(self): self.IsSoftwareCursor = systemSetting.IsSoftwareCursor() self.cursorDict = { app.NORMAL: CursorImage("D:/Ymir Work/UI/Cursor/cursor.sub"), app.ATTACK: CursorImage("D:/Ymir Work/UI/Cursor/cursor_attack.sub"), app.TARGET: CursorImage("D:/Ymir Work/UI/Cursor/cursor_attack.sub"), app.TALK: CursorImage("D:/Ymir Work/UI/Cursor/cursor_talk.sub"), app.CANT_GO: CursorImage("D:/Ymir Work/UI/Cursor/cursor_no.sub"), app.PICK: CursorImage("D:/Ymir Work/UI/Cursor/cursor_pick.sub"), app.DOOR: CursorImage("D:/Ymir Work/UI/Cursor/cursor_door.sub"), app.CHAIR: CursorImage("D:/Ymir Work/UI/Cursor/cursor_chair.sub"), app.MAGIC: CursorImage("D:/Ymir Work/UI/Cursor/cursor_chair.sub"), app.BUY: CursorImage("D:/Ymir Work/UI/Cursor/cursor_buy.sub"), app.SELL: CursorImage("D:/Ymir Work/UI/Cursor/cursor_sell.sub"), app.CAMERA_ROTATE: CursorImage("D:/Ymir Work/UI/Cursor/cursor_camera_rotate.sub"), app.HSIZE: CursorImage("D:/Ymir Work/UI/Cursor/cursor_hsize.sub"), app.VSIZE: CursorImage("D:/Ymir Work/UI/Cursor/cursor_vsize.sub"), app.HVSIZE: CursorImage("D:/Ymir Work/UI/Cursor/cursor_hvsize.sub"), } self.cursorPosDict = { app.NORMAL: (0, 0), app.TARGET: (0, 0), app.ATTACK: (0, 0), app.TALK: (0, 0), app.CANT_GO: (0, 0), app.PICK: (0, 0), app.DOOR: (0, 0), app.CHAIR: (0, 0), app.MAGIC: (0, 0), app.BUY: (0, 0), app.SELL: (0, 0), app.CAMERA_ROTATE: (0, 0), app.HSIZE: (-16, -16), app.VSIZE: (-16, -16), app.HVSIZE: (-16, -16), } app.SetCursor(app.NORMAL) """ AttachedCountTextLineHandle = grpText.Generate() grpText.SetFontName(AttachedCountTextLineHandle, localeInfo.UI_DEF_FONT_SMALL) grpText.SetText(AttachedCountTextLineHandle, "1234") grpText.SetPosition(AttachedCountTextLineHandle, 100, 100) grpText.SetOutline(AttachedCountTextLineHandle, True) grpText.SetFontColor(AttachedCountTextLineHandle, 1.0, 1.0, 1.0) grpText.SetHorizontalAlign(AttachedCountTextLineHandle, wndMgr.TEXT_HORIZONTAL_ALIGN_CENTER) self.AttachedCountTextLineHandle = AttachedCountTextLineHandle """ self.countNumberLine = ui.NumberLine("CURTAIN") self.countNumberLine.SetHorizontalAlignCenter() self.countNumberLine.Hide() return True
def OnMouseOverOut(self): app.SetCursor(app.NORMAL)
def CancelShopping(self): self.btnBuy.SetUp() self.btnSell.SetUp() app.SetCursor(app.NORMAL)
def OnSell(self): chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.SHOP_SELL_INFO) app.SetCursor(app.SELL) self.btnBuy.SetUp()
def OnBuy(self): chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.SHOP_BUY_INFO) app.SetCursor(app.BUY) self.btnSell.SetUp()