Jump to content

[IMAGE]Not found


Go to solution Solved by luzzo,

Recommended Posts

def __setluckyslot(self, luckyimg):
		#vnum = str(luckyimg)
                #i tried replacing +luckyimg with +vnum too but no luck
		self.luckyimg.AppendImage("d:/icon/item/"+luckyimg)
		self.luckytxt.SetText("d:/icon/item/"+luckyimg)

I tried the above, in combination with

local i = "00010.tga"
cmdchat("showluckyslot")
cmdchat("setluckyslot "..i)
syschat("d:/icon/item/"..i)

i get the text normaly as i wished d:/ymir work/icon/item/00010.tga but the image is not shown!

I have the image in /icon/item/

 

log.txt

CResource::Load file not exist d:iconitem00010.tga

I think it has to do with variable types...

Any expert help? o.O

Link to comment
Share on other sites

  • Replies 13
  • Created
  • Last Reply

Top Posters In This Topic

def __setluckyslot(self, luckyimg):
		#vnum = str(luckyimg)
                #i tried replacing +luckyimg with +vnum too but no luck
		self.luckyimg.AppendImage("d:/icon/item/"+luckyimg)
		self.luckytxt.SetText("d:/icon/item/"+luckyimg)

I tried the above, in combination with

local i = "00010.tga"
cmdchat("showluckyslot")
cmdchat("setluckyslot "..i)
syschat("d:/icon/item/"..i)

i get the text normaly as i wished d:/ymir work/icon/item/00010.tga but the image is not shown!

I have the image in /icon/item/

 

log.txt

CResource::Load file not exist d:iconitem00010.tga

I think it has to do with variable types...

Any expert help? o.O

 

 

 

Yours icon's path is wrong..

 

Just use

self.luckyimg.AppendImage("icon/item/"+luckyimg)

and remeber witch variable are you using

 

The element + can sum string with string and int with int.

 

Reguars Luzzo

 

Link to comment
Share on other sites

Here u have all AniImageBox method

class AniImageBox(Window):
	def __init__(self, layer = "UI"):
		Window.__init__(self, layer)

	def __del__(self):
		Window.__del__(self)

	def RegisterWindow(self, layer):
		self.hWnd = wndMgr.RegisterAniImageBox(self, layer)

	def SetDelay(self, delay):
		wndMgr.SetDelay(self.hWnd, delay)

	def AppendImage(self, filename):
		wndMgr.AppendImage(self.hWnd, filename)

	def SetPercentage(self, curValue, maxValue):
		wndMgr.SetRenderingRect(self.hWnd, 0.0, 0.0, -1.0 + float(curValue) / float(maxValue), 0.0)

	def OnEndFrame(self):
		pass
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.