private void InitMenuPanel() { menuPanel = new UITweenPanel(); menuPanel.AddConstraint(Edge.CenterXY, null, Edge.CenterXY); menuPanel.Alpha = 0.5f; menuPanel.AddChild(GetMenuEntry("New Game")); menuPanel.AddChild(GetMenuEntry("Continue")); menuPanel.AddChild(GetMenuEntry("Options")); menuPanel.AddChild(GetMenuEntry("Help")); menuPanel.AddChild(GetMenuEntry("Exit")); uiManager.Add(menuPanel); }
public Menu() { //UIManager.DrawDebug = true; uiManager = new UIManager(); uiManager.EnableProfilling = true; UITweenPanel menuPanel = new UITweenPanel(); menuPanel.Alpha = 0f; menuPanel.AddConstraint( Edge.CenterXY, null, Edge.CenterXY ); menuPanel.AddChild( GetMenuEntry( menuPanel, "New Game" ) ); menuPanel.AddChild( GetMenuEntry( menuPanel, "Continue" ) ); menuPanel.AddChild( GetMenuEntry( menuPanel, "Options" ) ); menuPanel.AddChild( GetMenuEntry( menuPanel, "Help" ) ); menuPanel.AddChild( GetMenuEntry( menuPanel, "Exit" ) ); uiManager.Add( menuPanel ); }
public Menu() { //UIManager.DrawDebug = true; uiManager = new UIManager(); uiManager.EnableProfilling = true; UITweenPanel menuPanel = new UITweenPanel(); menuPanel.Alpha = 0f; menuPanel.AddConstraint(Edge.CenterXY, null, Edge.CenterXY); menuPanel.AddChild(GetMenuEntry(menuPanel, "New Game")); menuPanel.AddChild(GetMenuEntry(menuPanel, "Continue")); menuPanel.AddChild(GetMenuEntry(menuPanel, "Options")); menuPanel.AddChild(GetMenuEntry(menuPanel, "Help")); menuPanel.AddChild(GetMenuEntry(menuPanel, "Exit")); uiManager.Add(menuPanel); }