Aaron Franke 7d64830cfe Ensure most demos have descriptions and screenshots il y a 3 ans
..
screenshots fcc7d5c723 Optimize PNG images using oxipng il y a 4 ans
MonoTest.cs 2979f85185 Update C# demos for Godot 3.2.3 il y a 4 ans
Operating System Testing.csproj 31bb09233b Update the OS test demo for Godot 3.3 il y a 3 ans
Operating System Testing.sln 2979f85185 Update C# demos for Godot 3.2.3 il y a 4 ans
README.md fc54dd9c23 Fix README files, especially in Android IAP demos il y a 4 ans
actions.gd eac96a9148 Add a README and screenshots to the OS test demo il y a 4 ans
icon.png 50fb2071a0 Improve icon.png for projects using default icon il y a 4 ans
icon.png.import 4bafb96fcb Add an operating system testing demo il y a 4 ans
noto_sans_ui_bold.ttf 4bafb96fcb Add an operating system testing demo il y a 4 ans
noto_sans_ui_regular.ttf 4bafb96fcb Add an operating system testing demo il y a 4 ans
os_test.gd 2ce76ff4e5 Update web deploy CI to use Godot 3.3 il y a 3 ans
os_test.tscn 814909538f Update projects to Godot 3.3 il y a 3 ans
project.godot 7d64830cfe Ensure most demos have descriptions and screenshots il y a 3 ans

README.md

Operating System Testing

This demo showcases various OS-specific features in Godot. It can be used to test Godot while porting it to a new platform or to check for regressions.

In a nutshell, this demo shows how you can get information from the operating system, or interact with the operating system.

Language: GDScript and some C# (Mono is NOT required to run this demo)

Renderer: GLES 2

Check out this demo on the asset library: https://godotengine.org/asset-library/asset/677

How does it work?

The OS class provides an abstraction layer over the platform-dependent code. OS wraps the most common functionality to communicate with the host operating system, such as the clipboard, video driver, date and time, timers, environment variables, execution of binaries, command line, etc.

The buttons are connected to a node with the actions.gd script, which perform actions using the OS class. The text on the left is filled in using the os_test.gd script, which gathers information about the OS using the OS class.

On a Mono-enabled version of Godot, Godot will load MonoTest.cs into the MonoTest node. Then, information determined by C# preprocessor defines will be added to the left panel.

Screenshots

Top HiDPI

Mono