Download world/scripts/world_ui_debug.gd from NeatoGames/saddle-up: direct link, hf CLI and curl.
- Browser
- Download file 3.79 kB
-
https://huggingface.co/datasets/NeatoGames/saddle-up/resolve/main/world/scripts/world_ui_debug.gd
- Command line
-
hf download hf://datasets/NeatoGames/saddle-up/world/scripts/world_ui_debug.gd
-
curl -L -o world_ui_debug.gd https://huggingface.co/datasets/NeatoGames/saddle-up/resolve/main/world/scripts/world_ui_debug.gd
3.79 kB
| extends VBoxContainer | |
| func _ready(): | |
| Settings.update_settings_config_info.connect(update_config_info) | |
| %SysInfoLabel.hide() | |
| %FPSLabel.hide() | |
| %ConfigLabel.hide() | |
| update_sys_info() | |
| update_config_info() | |
| func _process(_delta): | |
| %FPSLabel.text = str(Engine.get_frames_per_second()) | |
| func update_sys_info(): | |
| %SysInfoLabel.text = "Godot version: " + Engine.get_version_info().string | |
| %SysInfoLabel.text += "\nDebug build: " + str(OS.is_debug_build()) | |
| %SysInfoLabel.text += "\nDisplay server: " + DisplayServer.get_name() | |
| %SysInfoLabel.text += "\nDevice vendor: " + RenderingServer.get_rendering_device().get_device_vendor_name() | |
| %SysInfoLabel.text += "\nAdapter name: " + RenderingServer.get_video_adapter_name() | |
| match RenderingServer.get_video_adapter_type(): | |
| RenderingDevice.DEVICE_TYPE_INTEGRATED_GPU: | |
| %SysInfoLabel.text += "\nVideo adapter type: Integrated GPU" | |
| RenderingDevice.DEVICE_TYPE_DISCRETE_GPU: | |
| %SysInfoLabel.text += "\nVideo adapter type: Discrete GPU" | |
| RenderingDevice.DEVICE_TYPE_VIRTUAL_GPU: | |
| %SysInfoLabel.text += "\nVideo adapter type: Virtual GPU" | |
| RenderingDevice.DEVICE_TYPE_CPU: | |
| %SysInfoLabel.text += "\nVideo adapter type: Software" | |
| _: | |
| %SysInfoLabel.text += "\nVideo adapter type: Unknown" | |
| %SysInfoLabel.text += "\nApi version: " + RenderingServer.get_video_adapter_api_version() | |
| func update_config_info(): | |
| print('world_ui_debug:update_config_info') | |
| %FPSLabel.visible = Settings.config_show_fps | |
| %SysInfoLabel.visible = Settings.config_show_sys_info | |
| %ConfigLabel.visible = Settings.config_show_config | |
| var text := "" | |
| text += "Screen: " + str(Settings.config_screen) | |
| match Settings.config_display_mode: | |
| DisplayServer.WINDOW_MODE_EXCLUSIVE_FULLSCREEN: | |
| text += "\nDisplay mode: Exclusive fullscreen" | |
| DisplayServer.WINDOW_MODE_FULLSCREEN: | |
| text += "\nDisplay mode: Fullscreen" | |
| DisplayServer.WINDOW_MODE_MAXIMIZED: | |
| text += "\nDisplay mode: Maximized" | |
| DisplayServer.WINDOW_MODE_WINDOWED: | |
| text += "\nDisplay mode: Windowed" | |
| _: | |
| text += "\nDisplay mode: Unknown" | |
| match Settings.config_vsync_mode: | |
| DisplayServer.VSYNC_ENABLED: | |
| text += "\nDisplay mode: Enabled" | |
| DisplayServer.VSYNC_DISABLED: | |
| text += "\nDisplay mode: Disabled" | |
| DisplayServer.VSYNC_ADAPTIVE: | |
| text += "\nDisplay mode: Adaptive" | |
| DisplayServer.VSYNC_MAILBOX: | |
| text += "\nDisplay mode: Mailbox" | |
| _: | |
| text += "\nDisplay mode: Unknown" | |
| match Settings.config_scale_mode: | |
| Settings.ScaleMode.NONE: | |
| text += "\nScale mode: None" | |
| Settings.ScaleMode.BILINEAR: | |
| text += "\nScale mode: Bilinear" | |
| Settings.ScaleMode.FSR1: | |
| text += "\nScale mode: FSR 1.0" | |
| Settings.ScaleMode.FSR2: | |
| text += "\nScale mode: FSR 2.2" | |
| _: | |
| text += "\nScale mode: Unknown" | |
| text += "\nScale 3D: %0.02f" % [Settings.config_scale_3d] | |
| text += "\nUse FSR AA: " + str(Settings.config_use_fsr2aa) | |
| match Settings.config_msaa: | |
| Viewport.MSAA_DISABLED: | |
| text += "\nMSAA: Disabled" | |
| Viewport.MSAA_2X: | |
| text += "\nMSAA: 2X" | |
| Viewport.MSAA_4X: | |
| text += "\nMSAA: 4X" | |
| Viewport.MSAA_8X: | |
| text += "\nMSAA: 8X" | |
| _: | |
| text += "\nMSAA: Unknown" | |
| text += "\nScreen space Anti-Aliasing: " + str(Settings.config_ssaa) | |
| text += "\nTAA: " + str(Settings.config_use_taa) | |
| text += "\nDebanding: " + str(Settings.config_use_debanding) | |
| match Settings.config_indirect_light: | |
| Settings.IndirectLight.NONE: | |
| text += "\nIndirect light: None" | |
| Settings.IndirectLight.LIGHTMAP: | |
| text += "\nIndirect light: Ligtmap" | |
| Settings.IndirectLight.SDFGI: | |
| text += "\nIndirect light: SDFGI" | |
| _: | |
| text += "\nIndirect light: Unknown" | |
| text += "\nVolumetric fog: " + str(Settings.config_vfog) | |
| text += "\nSSAO: " + str(Settings.config_ssao) | |
| text += "\nSSIL: " + str(Settings.config_ssil) | |
| text += "\nGlow: " + str(Settings.config_glow) | |
| %ConfigLabel.text = text | |