Page 1 of 1

Navigation Menu Help?

Posted: Tue Jan 07, 2014 10:00 pm
by jacobjumper
How would I change the original navigation menu to a pop up style where it appears in the middle of the screen? I know it's really basic but I'm stuck...

Re: Navigation Menu Help?

Posted: Wed Jan 08, 2014 12:25 am
by akemicchi
This is for the title menu, right? Open up your screen.rpy and scroll down to screen main_menu. There should be a frame block there. Change xalign and yalign to 0.5 like so:

Code: Select all

    # The main menu buttons.
    frame:
        style_group "mm"
        xalign 0.5
        yalign 0.5
I'm not sure what you mean by pop-up style though, so tell me if this isn't what you wanted. :)

Re: Navigation Menu Help?

Posted: Wed Jan 08, 2014 12:59 am
by jacobjumper
Umm.. it kind of helped. I would however like to know how to get rid of the default stuff. That would help me so much

Re: Navigation Menu Help?

Posted: Wed Jan 08, 2014 1:09 am
by akemicchi
'Default stuff'? I'm not sure what you mean. Do you mean the buttons themselves? Change the text? Change the look entirely? I can't really imagine you're asking to get rid of the main menu, because how can players choose to start the game? xD

Re: Navigation Menu Help?

Posted: Wed Jan 08, 2014 1:21 am
by jacobjumper
Image

See there? And I planned on redesigning it with custom images.

Re: Navigation Menu Help?

Posted: Wed Jan 08, 2014 1:26 am
by akemicchi
Oh! Why don't you just hide everything with a comment, then? (Starting every line with #) Rather, hiding/deleting the line use file_picker in the screen save and screen load?

Re: Navigation Menu Help?

Posted: Wed Jan 08, 2014 1:35 am
by jacobjumper
Everything?

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "renpy/common/_layout/screen_load_save.rpym", line 17, in script
  File "game/screens.rpy", line 318, in python
Exception: Screen u'navigation' is not known.

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "C:\Users\Jacob\Downloads\renpy-6.16.5-sdk\renpy\execution.py", line 288, in run
    node.execute()
  File "C:\Users\Jacob\Downloads\renpy-6.16.5-sdk\renpy\ast.py", line 720, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "C:\Users\Jacob\Downloads\renpy-6.16.5-sdk\renpy\python.py", line 1308, in py_exec_bytecode
    exec bytecode in globals, locals
  File "renpy/common/_layout/screen_load_save.rpym", line 17, in <module>
    $ ui.interact()
  File "C:\Users\Jacob\Downloads\renpy-6.16.5-sdk\renpy\ui.py", line 237, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "C:\Users\Jacob\Downloads\renpy-6.16.5-sdk\renpy\display\core.py", line 1853, in interact
    repeat, rv = self.interact_core(preloads=preloads, **kwargs)
  File "C:\Users\Jacob\Downloads\renpy-6.16.5-sdk\renpy\display\core.py", line 2095, in interact_core
    root_widget.visit_all(lambda i : i.per_interact())
  File "C:\Users\Jacob\Downloads\renpy-6.16.5-sdk\renpy\display\core.py", line 246, in visit_all
    d.visit_all(callback)
  File "C:\Users\Jacob\Downloads\renpy-6.16.5-sdk\renpy\display\core.py", line 246, in visit_all
    d.visit_all(callback)
  File "C:\Users\Jacob\Downloads\renpy-6.16.5-sdk\renpy\display\core.py", line 246, in visit_all
    d.visit_all(callback)
  File "C:\Users\Jacob\Downloads\renpy-6.16.5-sdk\renpy\display\core.py", line 248, in visit_all
    callback(self)
  File "C:\Users\Jacob\Downloads\renpy-6.16.5-sdk\renpy\display\core.py", line 2095, in <lambda>
    root_widget.visit_all(lambda i : i.per_interact())
  File "C:\Users\Jacob\Downloads\renpy-6.16.5-sdk\renpy\display\screen.py", line 166, in per_interact
    self.update()
  File "C:\Users\Jacob\Downloads\renpy-6.16.5-sdk\renpy\display\screen.py", line 266, in update
    self.screen.function(**self.scope)
  File "C:\Users\Jacob\Downloads\renpy-6.16.5-sdk\renpy\screenlang.py", line 1217, in __call__
    renpy.python.py_exec_bytecode(self.code.bytecode, locals=scope)
  File "C:\Users\Jacob\Downloads\renpy-6.16.5-sdk\renpy\python.py", line 1308, in py_exec_bytecode
    exec bytecode in globals, locals
  File "game/screens.rpy", line 318, in <module>
    use navigation
  File "C:\Users\Jacob\Downloads\renpy-6.16.5-sdk\renpy\display\screen.py", line 579, in use_screen
    raise Exception("Screen %r is not known." % name)
Exception: Screen u'navigation' is not known.

Windows-7-6.1.7601-SP1
Ren'Py 6.16.5.525
Familiarity 0.0
It gives me a lot of errors. Is there anyway I can just change it so that code doesn't appear? Sorry if I seem like an idiot...

Re: Navigation Menu Help?

Posted: Wed Jan 08, 2014 1:40 am
by akemicchi
No no no, not everything! Sorry, that's bad advice! Hahaha. ;;; Put everything back.

Just hide use file_picker from screen save and screen load. Does that work? Just add a # in front of it so you can uncomment it later just in case something wrong happens. (Like deleting everything, haha, don't do that x'D)

Re: Navigation Menu Help?

Posted: Wed Jan 08, 2014 1:51 am
by jacobjumper
Oh my goodness it worked thank you! !

Re: Navigation Menu Help?

Posted: Wed Jan 08, 2014 1:54 am
by akemicchi
No problem! Glad it worked, haha.