In this recipe we are going to create a simple "Hello World" application, implemented using a Panel
and a Label
widget from the HighLevel.UI
library.
Load up PlayStation Mobile Studio and create a new project. Add a reference to Sce.PlayStation.HighLevel.UI
. You can download this complete project as Ch6_Example1
.
Edit the AppMain.cs
file to match the following:
using System; using Sce.PlayStation.Core; using Sce.PlayStation.Core.Graphics; using Sce.PlayStation.Core.Input; using Sce.PlayStation.HighLevel.UI; namespace Ch6_Example1 { public class AppMain { public static void Main() { GraphicsContext graphics = new GraphicsContext(); UISystem.Initialize(graphics); var scene = new Sce.PlayStation.HighLevel.UI.Scene(); var panel = new Sce.PlayStation.HighLevel.UI.Panel(); panel.Width = graphics.Screen.Width; panel.Height = graphics.Screen.Height; var label = new Sce...