creating_splash_screen.rst 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. Splash Screen
  2. =============
  3. Tutorial
  4. --------
  5. This will be a simple tutorial to cement the basic idea of how the GUI
  6. subsystem works. The goal will be to create a really simple, static,
  7. splash screen.
  8. Following is a file with the assets that will be used:
  9. attachment:robisplash\_assets.zip
  10. Setting Up
  11. ----------
  12. Create a scene with screen resolution 800x450, and set it up like this:
  13. .. image:: /img/robisplashscene.png
  14. .. image:: /img/robisplashpreview.png
  15. The nodes 'background" and "logo" are of
  16. `TextureFrame <https://github.com/okamstudio/godot/wiki/class_textureframe>`__
  17. type. These have a special property for setting the texture to be
  18. displayed, just load the corresponding file.
  19. .. image:: /img/texframe.png
  20. The node "start" is a
  21. `TextureButton <https://github.com/okamstudio/godot/wiki/class_texturebutton>`__,
  22. it takes several images for different states, but only the normal and
  23. pressed will be supplied in this example:
  24. .. image:: /img/texbutton.png
  25. Finally, the node "copyright" is a
  26. `Label <https://github.com/okamstudio/godot/wiki/class_label>`__. Labels
  27. can be set a custom font by editing the following property:
  28. .. image:: /img/label.png
  29. As a side note, the font was imported from a TTF, there is a [[Importing
  30. Fonts]] for importing fonts.
  31. *Juan Linietsky, Ariel Manzur, Distributed under the terms of the `CC
  32. By <https://creativecommons.org/licenses/by/3.0/legalcode>`__ license.*