Hi,
With my 9-slice extension, you can create an object with 9 images (4 angles, 4 sides and 1 center image).
http://www.otarix.com/upload/9Slice_exemple.png
Extension's Page (it's a french page but you can download the extension en English HERE
Printable View
Hi,
With my 9-slice extension, you can create an object with 9 images (4 angles, 4 sides and 1 center image).
http://www.otarix.com/upload/9Slice_exemple.png
Extension's Page (it's a french page but you can download the extension en English HERE
Neat (you showed this object on Gwerdy Chat before). :)
The integral dimensions behaviour is kind of buggy it seems.
Also, it would be nice to be able to load slices at runtime, and an option to use stretching instead of repeating the tiles.
Welcome to the world of extension development!
Thanks Looki :)
I will try to implement this in a next version :)
Very nice! :)
very lovely
I wish the standard active object had all these kind of features though so I wouldn't have to use a million different objects for different purposes :P
That would suck, you wouldn't need it in 95% of the cases and it's just another feature that increases file size and loading time.
yes but how would you merge some of the features
I have not tried it just yet but the 9-slice extension looks great for message boxes. Looks sort of like how they are coded for websites so they can expand without resizing the edges also. Thanks :)
Makes me wonder what the speed/optimization would be like if MMF had dynamic code compilation so it only exports the code of the features the user has in the project always. I think right now it would store/use the whole extensions code always but i might be wrong, maybe for MMF3 though... :DQuote:
Originally Posted by Looki
A. This extension is great and is only missing what Looki stated, and,
B. I agree with Atom on the ability to only compile the code a user actually used. Of course this would be a nightmare for the extension developers to try and make it compatable, since alot of code is inter-twined in places it doesn't need to be. Easiest way I can think of is to make each action, expression, and conditions a sort of function.
I have tested this and it is very nice, one thing i notice is that the properties dialog (by that i mean in the frame when you double click the object) that some of the text is french.
Like Looki says i also think changing the images at runtime would be great, this way you could change the style of the box without needing multiple objects etc. It is good to know you will be adding this. This will be a very useful object, thanks :D
Yeah i don't know how it would be done but it would probably need a new SDK/system. I think though if it was ever done it could speed up certain projects a great amount and also lower filesize a lot so it would be closer to just C++ coding things.Quote:
Originally Posted by LB
I like this extension! While it needs some touch-ups, like the text translation and loading slices at runtime, it appears to work as advertised.
Nice work!
Hey this extension is pretty neat. I hope you develop it further!
Everything that wizkidweb said is a good idea. Being able to change the image at runtime would definitely be awesome and translation would be good too.
I did notice however that if you don't have all 9 images it doesn't always display properly. I had two and only sometimes all of the images would display.
Thanks for the extension!
You could consider releasing it on Released Extensions forum to show it's workable. :)
That would be great to support alpha channel. :)
and maybe adding the ability to add text on the left/center/right
Theres not been any news on this for a while although hopefully they will update this with some of these feature ideas as they would be really great.
Changing images at runtime is the main thing wanted from me. I like the idea of alpha channel support also, if it was available at runtime also this would be a very useful object. :D
I'm also still gunning for an update to this extension :)
+1 for changing images at runtime & alpha channel support.
hey! This extension is definitely great. I'd like to use it in the game I'm currently working on, but I wonder, would you consider it stable enough to use in a large project?
Also, I agree about alpha channel support. Is that coming soon too? (Pretty please?) :)
Edit: I can really get this thing to glitch out graphically by setting it to dimensions below that of the combined width of the edges. The graphical glitches sometimes persist even after the size should be OK to display normally. View MFA
After about 10 times or so moving the 9slice window up and down, the glitches start to become visible and mess up the display.
The dev of this extension is french so they might not check this forum often. Xenon3000 said that runtime image loading would be implemented in the next version though so hopefully a update will happen sometime soon. :)
Hello, I send the source code to Pkeod because I'm not really the time at the moment :)
Wait so it is still being developed but now by another extension developer?
Any news from the new dev in this case, did you plan to add the features requested in this thread?
We will fund the improvements which we all want to be made, and then send the source changes back to Xenon3000 so he can publish a new version of the extension with the improvements included.
Cool thanks Pkeod, this extension will be great :)
Hi everyone.
This is the new version of 9-slice. The only difference is the alpha chanel.
I try to program HWA version but it don't works at the moment :(
Version 1.3
Forgive me Xenon3000, but which is the proper link to download?
Marv
Here you go, Marv.
Extension Page
Direct Link
I forgot to say : the alpha chanel must be active in all of the 9 images.
Thank you StevenL and Xenon3000.
Marv
Thanks for the update, i am slightly disappointed you didn't make the alpha channel grayscale based and load separately though. That way if you could load from events at runtime also you could have say 1 texture and 4 different alphas so it looked like 4 different boxes and it would be easy to make and change them. The way it is now you have to use all alphas and also make 4 different box graphics, this is ok but with separate alphas it would make it very powerful then and you could use it for something like a RPG game text box where the user can change it in the options etc.
What i was hoping for would be like this with events -
Images - Load - Slots 1-9
Images - Clear - Slots 1-9
Alpha - Load - Slots 1-9
Alpha - Clear - Slots 1-9
Set Mode - Stretching / Repeating / Other
Then maybe transparency and effects for Slots 1-9 and the whole box also with HWA if you do this sometime. It would also be good to have both solid and transparent parts rather than needing all of one type. I hope you don't mind me saying that it is very nice now but this type of stuff would make this a very useful extension i would use a lot then.
I Agree with Atom it shouldbe in next version, but still great job with adding Alpha channeling to this one!
I appreciate the alpha channel support.By the way, there seems to be a rather nasty memory or surface leak of some kind which occurs when the object is sized at a non-regular interval, or sized below the combined size of the corner and edge pieces. When it is sized at the "wrong" size multiple times, the graphical glitches become more apparent, even at sizes where it shouldn't produce these glitches.
I have attached an example. [url=http://mfa.aquadasoft.com/view/1272778534-9slice]View MFA[/url]
There are several ways to fix this behavior, with the easiest simply being to refuse to calculate out of bounds sizes, or returning a deliberately blank image to the drawing surface. Currently, the surface appears to be drawing from a leak from the bitmap data of the other pieces on the middle part, it's a really weird bug, but check it out.
I apologize, I already made a post saying this exact same thing. I should state that the surface bug still exists in this version, and hopefully you'll figure out where it's at and can stomp it :)
Thanks again !
possible to add a "load image into slice" feature?
Hello, I search onyone who help me for add features in my Extension like:
- HWA support.
- Change the slice in RunTime.
Send me a personal message if you can help me. thanks!
http://www.LB-Stuff.com/MMF2/9SliceFreakout.png
The white areas in the border and the whole middle should be transparent. While this is a totally awesome look, it is a bug >_>
It only happens in small sizes and the lines keep piling up in different ways based on how it is resizing. It goes away if it gets big enough.
It looks really awesome, so can this bug be toggled by a property? :D
For my part, i've made a miniature Dialogbox with.
4 angles, 4 sides, (32x32px).
Then if i load a center Image, it's weird, because the center image don't appear in my Edditime or Runtime.
-But appear if i see the "Editor" of the object.
But, cannot see when i'm Eddittime or Runtime..
I can Send an example if you want.. (in PM Xenon3000)