I'll show the overall code and then state some of the issues.
Code: Select all
screen home:
tag menu
add "browser_gfx/home_screen_bg.png"
imagebutton auto "browser_gfx/home_icon1_%s.png" focus_mask True action Show("deeble_home")
imagebutton auto "browser_gfx/home_icon2_%s.png" focus_mask True action Show("deeble_home")
imagebutton auto "browser_gfx/home_button_%s.png" xpos 0 ypos 0 focus_mask True action Jump("not_done")
screen deeble_home:
$ site = "d_home"
tag menu
use home
add "browser_gfx/deeble_search_bg.png"
imagebutton auto "browser_gfx/deeble_search_searchbox_%s.png" focus_mask True action Show("deeble_results")
use browser_bar
screen deeble_results:
$ site = "d_results"
tag menu
use home
add "browser_gfx/deeble_results_bg.png"
imagebutton auto "browser_gfx/deeble_results_ad_%s.png" focus_mask True action Jump("dont_click")
imagebutton auto "browser_gfx/deeble_results_tdn_%s.png" focus_mask True action Show("tdn")
imagebutton auto "browser_gfx/deeble_results_swb_%s.png" focus_mask True action Show("swb")
use browser_bar
screen tdn:
$ site = "tdn"
$ viewedtdn = True
use home
add "browser_gfx/tdn_bg.png"
use browser_bar
screen swb:
$ site = "swb"
$ viewedswb = True
use home
add "browser_gfx/swb_bg.png"
use browser_bar
screen browser_bar:
modal False
tag menu
add "browser_gfx/scrollbar.png"
add "browser_gfx/toolbar_bg.png"
imagebutton auto "browser_gfx/toolbar_buttons_%s.png" focus_mask True action Show("home")
if site == "d_home":
imagebutton auto "browser_gfx/toolbar_back_%s.png" focus_mask True action NullAction()
add "browser_gfx/toolbar_info_deeblehome.png"
if site == "d_results":
imagebutton auto "browser_gfx/toolbar_back_%s.png" focus_mask True action Show("deeble_home")
add "browser_gfx/toolbar_info_deebleresults.png"
if site == "tdn":
imagebutton auto "browser_gfx/toolbar_back_%s.png" focus_mask True action Show("deeble_results")
add "browser_gfx/toolbar_info_tdn.png"
if site == "swb":
imagebutton auto "browser_gfx/toolbar_back_%s.png" focus_mask True action Show("deeble_results")
add "browser_gfx/toolbar_info_swb.png"
else:
imagebutton auto "browser_gfx/toolbar_back_%s.png" focus_mask True action NullAction()
- At the end there is a series of code that says "if site == 'name': ". The issue here is that the imagebuttons under each of those if statements do not work. They also don't respond to hover/unhover actions. This hasn't been working since the striked out issue posted below.
- In screen browser_bar, before the if statements, there is an imagebutton. This imagebutton will work in screen deeble_home and occasionally deeble_results, but does not work at all in screen tdn or screen swb. Not at all sure why it works in some screens and not in others.
- Sometimes the imagebuttons in screen deeble_results do not work until several consecutive clicks. This leads me to believe that maybe there is an issue loading/predicting the screen but if I'm right Ren'Py loads screens before hand, so this is a total mystery.
Code: Select all
screen deeble_results:
$ site = "d_results"
tag menu
use home
add "browser_gfx/deeble_results_bg.png"
imagebutton auto "browser_gfx/deeble_results_ad_%s.png" focus_mask True action Jump("dont_click")
imagebutton auto "browser_gfx/deeble_results_tdn_%s.png" focus_mask True action Show("tdn")
imagebutton auto "browser_gfx/deeble_results_swb_%s.png" focus_mask True action Show("swb")
use browser_bar
Lastly, lets say you go to screen swb. If when in screen swb, you click in the screen where this
Code: Select all
imagebutton auto "browser_gfx/deeble_results_ad_%s.png" focus_mask True action Jump("dont_click")
In my opinion, my code doesn't seem to have many issues or problems, and it doesnt return tracebacks or anything, but its an obvious issue to have random things happening when you click the screen. Any help would be GREATLY appreciated, and if you need more information let me know.
Thanks again.
There are two screens which I have that I stack and add to other screens using "use". However, the screen on the very top isnt letting any of the buttons underneath it be used, nor does IT react.
I've tried using modal False but it has no effect.
Does it have something to do with the fact that this screen on the top is functional as well?
Anyways, here is my code
Code: Select all
screen home:
tag menu
add "browser_gfx/home_screen_bg.png"
imagebutton auto "browser_gfx/home_icon1_%s.png" focus_mask True action Show("deeble_home")
imagebutton auto "browser_gfx/home_icon2_%s.png" focus_mask True action Show("deeble_home")
imagebutton auto "browser_gfx/home_button_%s.png" xpos 0 ypos 0 focus_mask True action Jump("not_done")
screen deeble_home:
$ site = "d_home"
tag menu
use home
add "browser_gfx/deeble_search_bg.png"
add "browser_gfx/scrollbar.png"
imagebutton auto "browser_gfx/deeble_search_searchbox_%s.png" focus_mask True action Show("deeble_results")
use browser_bar
screen deeble_results:
$ site = "d_results"
tag menu
use home
add "browser_gfx/scrollbar.png"
add "browser_gfx/deeble_results_bg.png"
screen browser_bar:
modal False
add "browser_gfx/toolbar_bg.png"
imagebutton auto "browser_gfx/toolbar_buttons_%s.png" focus_mask True action Show("home")
if site == "d_home":
imagebutton auto "browser_gfx/toolbar_back_%s.png" action NullAction()
add "browser_gfx/toolbar_info_deeblehome.png"
if site == "d_results":
imagebutton auto "browser_gfx/toolbar_back_%s.png" action Show("deeble_home")
add "browser_gfx/toolbar_info_deebleresults.png"
if site == "tdn":
imagebutton auto "browser_gfx/toolbar_back_%s.png" action Show("deeble_results")
add "browser_gfx/toolbar_info_tdn.png"
if site == "swb":
imagebutton auto "browser_gfx/toolbar_back_%s.png" action Show("deeble_results")
add "browser_gfx/toolbar_info_swb.png"
else:
imagebutton auto "browser_gfx/toolbar_back_%s.png" action NullAction()
add "browser_gfx/toolbar_info_deeblehome.png"
All the functions in screen "deeble_home" do not work unless I comment out "use browser_bar"
Definitely let me know if there's any other information I can supply.
Thanks (again) in advance.[/s]