Using a bitmap for MCM or SkyUI Widget

Post » Tue Dec 24, 2013 1:55 am

Hi all!

As you might know I'm working on a new version of the "A Matter of Time" mod. Therefore I need to integrate some bitmaps into the SWF file. They should be displayed on the splash screen in the MCM (via LoadCustomContent) and for a widget. I was able to import them and using the flash preview, everything shows up perfectly.

The hassle starts when loading into Skyrim: The SWF itself gets loaded in both situations (MCM and widget) but the bitmaps are missing... All vector based parts (like some text or a circle I added) are displayed :(.

I also noted that SkyUI uses bitmaps at some places and they are displayed so I guess I'm doing something wrong. Does anyone of you know what?

Thanks in advance,

Amigo

User avatar
Betsy Humpledink
 
Posts: 3443
Joined: Wed Jun 28, 2006 11:56 am

Post » Tue Dec 24, 2013 3:26 am

Is there a specific reason for using bitmaps instead of vector art? If it is a matter of only having bitmaps, then you could try using Inkscape to make vector art out of bitmaps.

User avatar
Alina loves Alexandra
 
Posts: 3456
Joined: Mon Jan 01, 2007 7:55 pm

Post » Tue Dec 24, 2013 10:13 am

If you're using JPEG compression, that's not supported. PNG should work. I've forgotten if/how its possible to specify this inside Flash. If that's feasible in your case, you can also store bitmaps externally as .dds and load them at runtime with loadMovie.
User avatar
OJY
 
Posts: 3462
Joined: Wed May 30, 2007 3:11 pm

Post » Tue Dec 24, 2013 12:51 am

Cool! That's exactly the hint I needed. BTW: One can change the way flash exports the graphics using the settings of the image. Here you can choose if it's exported using JPEG or PNG.

@MrJack: It's not a vector graphic. It's more like a photo. So converting to a vector graphic would ether result in a bad looking graphic or one square per pixel... :wink:

User avatar
u gone see
 
Posts: 3388
Joined: Tue Oct 02, 2007 2:53 pm

Post » Mon Dec 23, 2013 7:24 pm

Ok, cool. But also keep the tip about .dds + loadMovie in mind if you run into problems with image quality (or maybe performance, though I doubt that).
User avatar
Melis Hristina
 
Posts: 3509
Joined: Sat Jun 17, 2006 10:36 pm


Return to V - Skyrim