I have a clickable phone display; screen phone_home: with an imagebutton "change_phone_bg".
I'd like to be able to click on that imagebutton to change the background image of the phone from a list of let's say, 5 background images. [bg1,bg2,bg3,bg4,bg5]
I also need the chosen bg to stay as the bg on all phone screens, like on phone_settings screen and phone_messages screen. Then if I were to change the bg again, I need the change to be implemented to other phone screens as well.
This is how I have it set up:
Code: Select all
1 screen phone_home:
2 add "bg0" ### So I need this line to change to bg1,bg2,bg3,bg4 or bg5 when I change the bg with imagebutton on line 12.
3
4 imagebutton auto "images/phone/message_icon.png":
5 focus_mask True
6 action Show("message")
7
8 imagebutton auto "images/phone/settings_icon.png":
9 focus_mask True
10 action Show("settings")
11
12 imagebutton auto "images/phone/change_phone_bg.png":
13 focus_mask True
14 action(?????) ## How to make it so that bg1~bg5 is shown one by one so the player can choose.
15
16 screen message:
17
18
19 screen settings: