about CreateMapImageLabel

Filion
Posts: 93
Joined: Sat Mar 26, 2011 4:21 pm

about CreateMapImageLabel

Post by Filion »

So I've written the following alias in order to test.
Code: [show] | [select all] lua
local pathToFile = getMudletHomeDir()..[[\rand.jpg]] 
echo(pathToFile)
imagelabelid = createMapImageLabel(101,pathToFile, 4, 4, 0, 413/100,568/100, 100	,true) 
echo(imagelabelid)
When i press the alias it gives me for example:
C:\Users\Fanis\.config\mudlet\profiles\wotmud2\rand.jpg2
but no image is shown on the map.
furthermore, the images seems to be slowing down the map render time. I want to use Images to impy doors, so given the amount of images that I will put, will it slow down mudlet by a lot?

User avatar
Heiko
Site Admin
Posts: 1548
Joined: Wed Mar 11, 2009 6:26 pm

Re: about CreateMapImageLabel

Post by Heiko »

It seems that you're not using the function correctly unless your door image is supposed to be 4 rooms wide in world coordinates :) The zoom is also not ideal.

User avatar
Vadi
Posts: 5041
Joined: Sat Mar 14, 2009 3:13 pm

Re: about CreateMapImageLabel

Post by Vadi »

C:\Users\Fanis\.config\mudlet\profiles\wotmud2\rand.jpg2 ?

Also, try png format.

Filion
Posts: 93
Joined: Sat Mar 26, 2011 4:21 pm

Re: about CreateMapImageLabel

Post by Filion »

Vadi wrote:C:\Users\Fanis\.config\mudlet\profiles\wotmud2\rand.jpg2 ?

Also, try png format.
the after jpg was from an echo("labelID) or so. It isn't an error

User avatar
Heiko
Site Admin
Posts: 1548
Joined: Wed Mar 11, 2009 6:26 pm

Re: about CreateMapImageLabel

Post by Heiko »

Mudlet only supports images in PNG format because of license issues.

User avatar
Heiko
Site Admin
Posts: 1548
Joined: Wed Mar 11, 2009 6:26 pm

Re: about CreateMapImageLabel

Post by Heiko »

I'll add direct mapper support for doors and exit weights in the next Mudlet-2.1 release eta tonight.

Delrayne
Posts: 159
Joined: Tue Jun 07, 2011 7:07 pm
Contact:

Re: about CreateMapImageLabel

Post by Delrayne »

Heiko wrote:Mudlet only supports images in PNG format because of license issues.
It might only 'support' PNG but I'm pretty sure I had jpg's in my GUI, because I recall Vadi telling me to try png when I had some code to display the images wrong, and when I fixed the code the jpg's worked. None the less, I bow to the knowledge of those who actually develop the client rather than play with it.

User avatar
Vadi
Posts: 5041
Joined: Sat Mar 14, 2009 3:13 pm

Re: about CreateMapImageLabel

Post by Vadi »

It depends on the platform you're using... but I believe in Qt for Windows, there's only png support.

Delrayne
Posts: 159
Joined: Tue Jun 07, 2011 7:07 pm
Contact:

Re: about CreateMapImageLabel

Post by Delrayne »

Ah yes, Ubuntu user here.

User avatar
kevutian
Posts: 217
Joined: Fri Aug 20, 2010 8:18 pm
Location: United Kingdom
Contact:

Re: about CreateMapImageLabel

Post by kevutian »

Unless I am missing something, I see no evidence at all that Mudlet supports jpg.

[phasma@localhost src (master)]$ grep -l jpg *
dlgTriggerEditor.cpp
grep: doc: Is a directory
grep: fonts: Is a directory
grep: icons: Is a directory
grep: irc: Is a directory
Makefile
mudlet
mudlet_alpha.qrc
mudlet_documentation.html
grep: mudlet-lua: Is a directory
grep: old_mudlet-lua: Is a directory
qrc_mudlet_alpha.cpp
grep: quazip: Is a directory
grep: tmp: Is a directory
grep: ui: Is a directory
[phasma@localhost src (master)]$ cat dlgTriggerEditor.cpp |grep jpg
tr("Images (*.png *.xpm *.jpg)"));
[phasma@localhost src (master)]$

Post Reply