Piccolo said:I recommend Python + Qt if you haven't tested it yet.
O Ilusionista said:Plombo, how hard it would be to implement animated gif support for things like data/bgs/title.gif, data/bgs/select.gif, etc ?
SimonSmith said:It's already supported.O Ilusionista said:
SimonSmith said:Hello Plombo.
Would you mind taking a look of this thread please?
http://www.chronocrash.com/forum/index.php?topic=2006.msg26731;topicseen#new
Qt's also nice as well, lots of apps made using it as well. Although Qt's C++ based and GTK is native C.Plombo said:One of these days I will get around to learning to use Qt.
I think I do...UT has added this feature long time ago.Quote from: SimonSmith on Today at 08:40:54 AM
Quote from: O Ilusionista on Today at 07:49:00 AM
...
It's already supported.
No, it isn't? I don't think you understood his question.
#define gep getentityproperty
#define self getlocalvar("self")
void reopengif()
{
void gif = openanigif("data/scenes/"+gep(self,"name")+".gif");
setlocalvar("gif", gif);
setlocalvar("giftime", openborvariant("elapsed_time")*5);
decodeanigif(gif);
return gif;
}
void main()
{
void gif = getlocalvar("gif");
if(!gif)
{
gif = reopengif();
}
else if(getanigifinfo(gif, "nextframe")+getlocalvar("giftime")<=openborvariant("elapsed_time")*5)
{
if(decodeanigif(gif)) gif=reopengif();
}
drawscreen(getanigifinfo(gif, "buffer"), gep(self,"x"),gep(self,"y"),gep(self,"z"));
}
void ondestroy()
{
void gif = getlocalvar("gif");
if(gif)
{
free(gif);
setlocalvar("gif", NULL());
}
setlocalvar("giftime", NULL());
}
Haha, with the great power comes great responsibility... ;DI'm trying to stay away from the Android port for now. It sounds like a mountain of headaches.
SimonSmith said:I think I do...UT has added this feature long time ago.
Code:...
CRxTRDude said:Qt's also nice as well, lots of apps made using it as well. Although Qt's C++ based and GTK is native C.
Here's a comparison between these two UI systems: http://www.wikivs.com/wiki/GTK_vs_Qt
Plombo said:I'm trying to stay away from the Android port for now. It sounds like a mountain of headaches.
SimonSmith said:I think I do...UT has added this feature long time ago.
Code:#define gep getentityproperty #define self getlocalvar("self") void reopengif() { void gif = openanigif("data/scenes/"+gep(self,"name")+".gif"); setlocalvar("gif", gif); setlocalvar("giftime", openborvariant("elapsed_time")*5); decodeanigif(gif); return gif; } void main() { void gif = getlocalvar("gif"); if(!gif) { gif = reopengif(); } else if(getanigifinfo(gif, "nextframe")+getlocalvar("giftime")<=openborvariant("elapsed_time")*5) { if(decodeanigif(gif)) gif=reopengif(); } drawscreen(getanigifinfo(gif, "buffer"), gep(self,"x"),gep(self,"y"),gep(self,"z")); } void ondestroy() { void gif = getlocalvar("gif"); if(gif) { free(gif); setlocalvar("gif", NULL()); } setlocalvar("giftime", NULL()); }
O Ilusionista said:This is something I hope DC would fix on his new engine: the lack of documentation. Ok, I am not that old with the engine, but I never saw things like "decodeanigif", "getanigifinfo" and there is no documentation about this.
Plombo said:
- Finish GUI for tool to create alpha masks from 24-bit PNGs
- Look into measuring frames per second with better precision
- Look into alpha masking for bglayer/fglayer (note: will be incompatible with 24-bit bg/fg images)
Well, this is the most important thing I care about.......Im also wondering if performance hit wouldnt be too big with 24bit pngs
SimonSmith said:Well, this is the most important thing I care about.......Im also wondering if performance hit wouldnt be too big with 24bit pngs
Without GPU supports, if it's too heavy for CPU.
SimonSmith said:I also have a question Plombo.
I wonder if the speed of script can be executed faster ?
According to my test, compared with javascript, the efficiency of c-script that OpenBOR used is much slow(about 10 times slower).
And I hope I was wrong....
You are missing one more: layer. Its undocumented (and I forgot to add it to the manual as well). Works like fglayer, you can take a look at the post I got an error with the mirror feature - linkLook into alpha masking for bglayer/fglayer
O Ilusionista said:You are missing one more: layer. Its undocumented (and I forgot to add it to the manual as well). Works like fglayer, you can take a look at the post I got an error with the mirror feature - linkLook into alpha masking for bglayer/fglayer