JackD83 / PyMenu

Menu for the PAP KIII Plus written in python and pygame
GNU General Public License v3.0
34 stars 9 forks source link

Possible to set default view / preview? #7

Closed TheTrainGoes closed 5 years ago

TheTrainGoes commented 5 years ago

Is it possible to set the default view and preview options on the game selection screen?

I have looked in the ConfigMenu.py file but cannot get anything to change by default.

JackD83 commented 5 years ago

What do you mean by "default view and preview options"? The default paths for the previews?

TheTrainGoes commented 5 years ago

Hello,

After selecting a system, you are brought to the file browser / selector.

By default, I am brought to a screen that shows the directory contents on the right, and, presumably, the preview section on the left. Pressing X changes the view to where the preview is in the top right, and then pressing Y removes the preview altogether.

I would like to have that be the default view. How can I change this? I was not able to find it in the .py files.

Thanks!

I have attached two pics for you.

img_3013 img_3388

JackD83 commented 5 years ago

Thats easy. I called the things on the left "sidebar". How the list is rendered is controlled by some options that are defined on opening.

The parameter you seek is in MainMenu.py line 195

options["useSidebar"] = False

Set this to False and the list for emulators will start only with the header

ghost commented 5 years ago

Thank you! That part worked like a charm!

Is there any way to default without the preview section?

This is the part where pressing the X button toggles is.

Amazing work by the way! And thank you so much for the replies :)

img_7127 img_2895

JackD83 commented 5 years ago

Do you have the latest git version? X toggles now between the preview image and a possible description. The box should be long gone

ghost commented 5 years ago

Newest version causes no sound (my other open issue), and I have yet to troubleshoot that.

I am going to try re-downloading the base image and adding PyMenu again then see what happens. Will be easier to troubleshoot if I am using the most recent version.

Thank you for your help so far!