forked from metin-server/m2dev-client
LoadImageFromFile for ui.ImageBox and guild mark list display fixed
This commit is contained in:
@@ -822,6 +822,13 @@ class ImageBox(Window):
|
||||
|
||||
if len(self.eventDict)!=0:
|
||||
print "LOAD IMAGE", self, self.eventDict
|
||||
|
||||
def LoadImageFromFile(self, imageName):
|
||||
self.name=imageName
|
||||
wndMgr.LoadImageFromFile(self.hWnd, imageName)
|
||||
|
||||
if len(self.eventDict)!=0:
|
||||
print "LOAD IMAGE", self, self.eventDict
|
||||
|
||||
def SetAlpha(self, alpha):
|
||||
wndMgr.SetDiffuseColor(self.hWnd, 1.0, 1.0, 1.0, alpha)
|
||||
|
||||
@@ -38,7 +38,7 @@ class MarkItem(ui.ListBoxEx.Item):
|
||||
imgBox.AddFlag("not_pick")
|
||||
imgBox.SetParent(self)
|
||||
imgBox.SetPosition(0, 2)
|
||||
imgBox.LoadImage(fileName)
|
||||
imgBox.LoadImageFromFile(fileName)
|
||||
imgBox.Show()
|
||||
return imgBox
|
||||
else:
|
||||
@@ -221,6 +221,8 @@ class MarkSelectDialog(ui.ScriptWindow):
|
||||
self.__AppendFileList("bmp")
|
||||
self.__AppendFileList("tga")
|
||||
self.__AppendFileList("jpg")
|
||||
self.__AppendFileList("jpeg")
|
||||
self.__AppendFileList("png")
|
||||
|
||||
def __ClearFileList(self):
|
||||
self.markListBox.RemoveAllItems()
|
||||
|
||||
Reference in New Issue
Block a user