Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Oddity
Newbie


Joined: 04 Nov 2007
Posts: 3

PostPosted: 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?
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Thu Mar 06, 2008 2:10 pm   
 
Don't think so, but one of the Guru's may know a way.
_________________
Asati di tempari!
Reply with quote
Arminas
Wizard


Joined: 11 Jul 2002
Posts: 1265
Location: USA

PostPosted: 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. Confused
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
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: 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.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Dharkael
Enchanter


Joined: 05 Mar 2003
Posts: 593
Location: Canada

PostPosted: 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."
Reply with quote
ralgith
Sorcerer


Joined: 13 Jan 2006
Posts: 715

PostPosted: 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.
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: 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.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
oldguy2
Wizard


Joined: 17 Jun 2006
Posts: 1201

PostPosted: 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.
Reply with quote
Dharkael
Enchanter


Joined: 05 Mar 2003
Posts: 593
Location: Canada

PostPosted: 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."
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net