def OnMouseOverIn(self):
     app.SetCursor(app.VSIZE)
예제 #2
0
    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
예제 #3
0
 def OnMouseOverOut(self):
     app.SetCursor(app.NORMAL)
예제 #4
0
 def CancelShopping(self):
     self.btnBuy.SetUp()
     self.btnSell.SetUp()
     app.SetCursor(app.NORMAL)
예제 #5
0
 def OnSell(self):
     chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.SHOP_SELL_INFO)
     app.SetCursor(app.SELL)
     self.btnBuy.SetUp()
예제 #6
0
 def OnBuy(self):
     chat.AppendChat(chat.CHAT_TYPE_INFO, localeInfo.SHOP_BUY_INFO)
     app.SetCursor(app.BUY)
     self.btnSell.SetUp()