Include sheet knowing which layout

Get help using Construct 2

Post » Sun May 11, 2014 7:20 pm

Is there a way for an included event sheet to know which layout it is on?

I've created a menu system (with pressed buttons) using an event sheet to be included on all layouts. I would like to be able to have the image of a pressed button depending on which layout is active.

For example if on layout one then the first menu item will show a 'pushed button' image whilst all the rest will not whilst if on layout three then the third button will be pressed.

tldr: I want to pass what layout is active to an included event sheet.

Any help appreciated. :D
B
72
S
25
G
10
Posts: 383
Reputation: 11,171

Post » Sun May 11, 2014 8:35 pm

https://www.scirra.com/manual/126/system-expressions

LayoutName
Get the name of the current layout.
ImageImageImage
B
71
S
22
G
258
Posts: 3,791
Reputation: 143,198

Post » Sun May 11, 2014 9:11 pm

Thanks. :)
B
72
S
25
G
10
Posts: 383
Reputation: 11,171


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, Yahoo [Bot] and 2 guests