Esempio n. 1
0
	def CreateGridSlotWindow(self, parent, x, y, arrayslot, image):
		gridslotwindow = ui.GridSlotWindow()
		gridslotwindow.SetParent(parent)
		gridslotwindow.SetPosition(x, y)
		gridslotwindow.ArrangeSlot(arrayslot[0], arrayslot[1], arrayslot[2], arrayslot[3], arrayslot[4], arrayslot[5], arrayslot[6])
		wndMgr.SetSlotBaseImage(gridslotwindow.hWnd, image, 1.0, 1.0, 1.0, 1.0)
		gridslotwindow.Show()
		return gridslotwindow
Esempio n. 2
0
		def __init__(self):
			ui.SlotWindow.__init__(self)

			self.event = 0
			self.arg = 0

			self.slotIndex = 0
			self.skillIndex = 0

			slotIndex = 0
			wndMgr.SetSlotBaseImage(self.hWnd, "d:/ymir work/ui/public/slot_base.sub", 1.0, 1.0, 1.0, 1.0)
			wndMgr.AppendSlot(self.hWnd, slotIndex, 0, 0, 32, 32)
			self.SetCoverButton(slotIndex,	"d:/ymir work/ui/public/slot_cover_button_01.sub",\
											"d:/ymir work/ui/public/slot_cover_button_02.sub",\
											"d:/ymir work/ui/public/slot_cover_button_03.sub",\
											"d:/ymir work/ui/public/slot_cover_button_04.sub", True, False)
			self.SetSize(32, 32)