Skip to content

Commit

Permalink
add framerate
Browse files Browse the repository at this point in the history
  • Loading branch information
Firebladedoge229 authored May 22, 2024
1 parent 6fb2688 commit 2e85c3d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion robloxstudiomanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def update_settings():
visual_verified = visual_verified_var.get()
old_font = old_font_var.get()
classic_error = classic_error_var.get()
framerate_cap = framerate_cap_var.get()

flags = {
"FFlagDebugGraphicsPreferD3D11": "true", # directx 11 usage
Expand Down Expand Up @@ -150,6 +151,9 @@ def update_settings():
if classic_error:
flags["FFlagErrorPromptResizesHeight"] = "false"

if framerate_cap:
flags["FFlagGameBasicSettingsFramerateCap5"] = "true"

versions_dir = os.path.join(os.environ['LOCALAPPDATA'], 'Roblox', 'Versions')

max_files_count = 0
Expand Down Expand Up @@ -236,6 +240,7 @@ def studio_running():
visual_verified_var = tk.BooleanVar(value=False)
old_font_var = tk.BooleanVar(value=True)
classic_error_var = tk.BooleanVar(value=True)
framerate_cap_var = tk.BooleanVar()

ttk.Label(root, text="Roblox Settings Manager", font=("Segoe UI", 16)).grid(row=0, column=0, columnspan=4, pady=10)

Expand Down Expand Up @@ -274,7 +279,8 @@ def studio_running():
ttk.Checkbutton(root, text="Verified Badge", variable=visual_verified_var).grid(row=9, column=2, sticky=tk.W, padx=10, pady=3)
ttk.Checkbutton(root, text="Classic Font", variable=old_font_var).grid(row=1, column=3, sticky=tk.W, padx=10, pady=3)
ttk.Checkbutton(root, text="Classic Error", variable=classic_error_var).grid(row=2, column=3, sticky=tk.W, padx=10, pady=3)
ttk.Checkbutton(root, text="Enable Internal", variable=enable_internal_var).grid(row=3, column=3, sticky=tk.W, padx=10, pady=3)
ttk.Checkbutton(root, text="Framerate Settings", variable=framerate_cap_var).grid(row=3 column=3, sticky=tk.W, padx=10, pady=3)
ttk.Checkbutton(root, text="Enable Internal", variable=enable_internal_var).grid(row=4, column=3, sticky=tk.W, padx=10, pady=3)

ttk.Button(root, text="Apply Settings", command=update_settings).grid(row=10, column=0, columnspan=4, pady=20)

Expand Down

0 comments on commit 2e85c3d

Please sign in to comment.