Buttons to change floor of map interface - help!
Posted: Wed Jan 25, 2017 8:22 pm
Hi all
Long time since I've been in here, hope everyone is well!
I'm trying to modify an old skin to allow multiple floors of a building to be navigated in the map interface by clicking on buttons which refer to the floors.
Having learned a great deal about using variables to make things appear and disappear on mouse clicks in this thread:
viewtopic.php?f=6&t=10852
... I thought I had it sussed, but I'm struggling to make a simple image disappear when clicking on it at the moment!
My logic is this:
– 4 floors in total, want to start by default at the Ground floor
- Have created 4 buttons (one for each floor) and two images per button (one green button for the currently active floor, and one grey button for the non-selected floor).
- The grey button images sit above the green buttons in the skin layer tree, and I was planning to simply hide the relevant grey button on the active floors (revealing the green 'button' image below), and leave the rest visible.
- I will create a directory / folder in the skin editor for each floor, containing the image of the floor, and all the nodes that are clickable on that floor. So far I've just done the ground and first floor.
- By default when opening the map for the first time I want the ground floor map to be displayed, the green G button to be displayed, and the remaining floor buttons to be grey.
- When clicking on the floor 1 button for example, I want the grey floor 1 button to disappear (exposing the green one underneath it), the floor 1 directory / folder to be made visible, and all the other floors to be made invisible.
The logic of getting this to work seems relatively straight forward (everything being controlled by clicking on one of the grey button images), but I'm struggling to even get the grey '1' button image to disappear when clicked at the moment!
If someone could have a look at the attached skin and let me know what I'm doing wrong (or what I should be doing) it would be much appreciated. I'm certain it's a simple error, perhaps to do with the default alpha values, or by using the wrong set logic ...
Many thanks in advance for your help
All the best,
David
Long time since I've been in here, hope everyone is well!
I'm trying to modify an old skin to allow multiple floors of a building to be navigated in the map interface by clicking on buttons which refer to the floors.
Having learned a great deal about using variables to make things appear and disappear on mouse clicks in this thread:
viewtopic.php?f=6&t=10852
... I thought I had it sussed, but I'm struggling to make a simple image disappear when clicking on it at the moment!
My logic is this:
– 4 floors in total, want to start by default at the Ground floor
- Have created 4 buttons (one for each floor) and two images per button (one green button for the currently active floor, and one grey button for the non-selected floor).
- The grey button images sit above the green buttons in the skin layer tree, and I was planning to simply hide the relevant grey button on the active floors (revealing the green 'button' image below), and leave the rest visible.
- I will create a directory / folder in the skin editor for each floor, containing the image of the floor, and all the nodes that are clickable on that floor. So far I've just done the ground and first floor.
- By default when opening the map for the first time I want the ground floor map to be displayed, the green G button to be displayed, and the remaining floor buttons to be grey.
- When clicking on the floor 1 button for example, I want the grey floor 1 button to disappear (exposing the green one underneath it), the floor 1 directory / folder to be made visible, and all the other floors to be made invisible.
The logic of getting this to work seems relatively straight forward (everything being controlled by clicking on one of the grey button images), but I'm struggling to even get the grey '1' button image to disappear when clicked at the moment!
If someone could have a look at the attached skin and let me know what I'm doing wrong (or what I should be doing) it would be much appreciated. I'm certain it's a simple error, perhaps to do with the default alpha values, or by using the wrong set logic ...
Many thanks in advance for your help
All the best,
David