|
Oddity Newbie
Joined: 04 Nov 2007 Posts: 3
|
Posted: Thu Mar 06, 2008 8:44 am
CMud Button Images |
Apologies if this is answered somewhere, but I can't seem to find it. Is there a way to use custom images from my hardrive as the images for my buttons?
|
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Thu Mar 06, 2008 2:10 pm |
Don't think so, but one of the Guru's may know a way.
|
|
_________________ Asati di tempari! |
|
|
|
Arminas Wizard
Joined: 11 Jul 2002 Posts: 1265 Location: USA
|
Posted: Thu Mar 06, 2008 2:28 pm |
Good Question!
edit
I'm Sure that you used to be able to browse to the image location by clicking that button beside the box.
It appears that it was changed so that when you share a package you have to realize that it is located elsewhere...
Anyway you can put any bitmap image you like into the spot on the options tab that says Image Name.
I'm on XP and I just used C:\WINDOWS\Web\Wallpaper\Bliss.bmp as my image and it worked.
I just tried a jpg file before that though and Cmud Thew an error. |
|
_________________ Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Thu Mar 06, 2008 3:02 pm |
In CMUD, there's no browse button, but you can type in the path to a local image if you want. Just remember, as Arminas was getting to, that if you share your package afterwards, it might stop working.
I seem to remember using images I made myself for it - try .gif and .png as well if .jpg doesn't work for you. Jpgs are bad for simple things like buttons anyway. |
|
|
|
Dharkael Enchanter
Joined: 05 Mar 2003 Posts: 593 Location: Canada
|
Posted: Thu Mar 06, 2008 3:54 pm |
It would be nice if in the future CMUD allowed one to save small images as a package level resource encoded in Base64.
That could then be referred to by other elements using a resource moniker.
Allowing small custom images to be distributed with packages. |
|
_________________ -Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style." |
|
|
|
ralgith Sorcerer
Joined: 13 Jan 2006 Posts: 715
|
Posted: Thu Mar 06, 2008 4:02 pm |
Dharkael wrote: |
It would be nice if in the future CMUD allowed one to save small images as a package level resource encoded in Base64.
That could then be referred to by other elements using a resource moniker.
Allowing small custom images to be distributed with packages. |
Agreed. |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Thu Mar 06, 2008 5:50 pm |
It's been asked before (though more generally allowing any image), so it's probably on the wishlist.
|
|
|
|
oldguy2 Wizard
Joined: 17 Jun 2006 Posts: 1201
|
Posted: Thu Mar 06, 2008 7:13 pm Re: CMud Button Images |
Oddity wrote: |
Apologies if this is answered somewhere, but I can't seem to find it. Is there a way to use custom images from my hardrive as the images for my buttons? |
Yes.
Just place the images you want to use (must use bitmaps only) in the main CMUD directory.
Example:
C:\Program Files\CMUD\conan.bmp
Then all you have to enter in the button options for Image Name is conan.bmp. |
|
|
|
Dharkael Enchanter
Joined: 05 Mar 2003 Posts: 593 Location: Canada
|
Posted: Fri Mar 07, 2008 6:54 pm |
You can script the writing of custom images (or any other file) to disk, then refer to them in the rest of your scripts.
Maybe use the OnLoad event to see if the files already exist and if not create them. |
|
_________________ -Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style." |
|
|
|
|
|