Page 1 of 1

New object functions

PostPosted: January 31st, 2008, 10:06 am
by lanang jagad
Cliff, I have a request. I think it would be great if you add some new object functions. I have one in mind, an object function that could enable you to make some specified layers to show and hide other specified layer at the same time. :)

PostPosted: January 31st, 2008, 11:08 am
by SLoB
you can use modify(a,b,c,d,e,f,g) etc.
you could setup those ids to hide/show specific layers easily enough

not tried using multiple modifies on a layer tho, hmm

Re: New object functions

PostPosted: January 31st, 2008, 2:13 pm
by Cliff Cawley
lanang jagad Wrote:Cliff, I have a request. I think it would be great if you add some new object functions. I have one in mind, an object function that could enable you to make some specified layers to show and hide other specified layer at the same time. :)


Could you give me an example of what you mean?

Currently you can use a button object and then use as SLoB said, the modify() keyword with a list of id's separated by commas, so for example:

Code: Select All Code
button_normal modify(panel1,panel2,panel3) action_layer_show


Or do you mean that you'd like the ability to do the following?:

Code: Select All Code
button_normal modify(panel1) action_layer_show modify(panel2) action_layer_hide


(Which allows you to show one layer and hide the other layer on the same button)

?

Cliff :)

PostPosted: January 31st, 2008, 6:26 pm
by lanang jagad
Never known those before. I thought the modify() could only control one id. :oops:

I'm working on my new skin which has menu arranged in 5 coloumns and 3 rows like you found on a cell phone. And the skin have a 4-way navigation key, which enables you to navigate through menus in four different ways.

The problem is besides the nav key I want it only has one main button. Now I have three, one for each row.

And thanks to you guys, I think the problem gonna be solved :D

PostPosted: January 31st, 2008, 8:04 pm
by SLoB
cool :)
don't forget you can create animation sets and trigger those off so you could do all manner of things
you could create 2 sets, 1 to show things and clone it and change it to hide
then you could use modify(a,b) acanplay and it will go through those sets showing and hiding stuff

there in adds a bit more complexity to the skin logic but then that is what your after anyways, mark groups/sets with a colour so that you can distinguish them apart from other layers/sets