本文整理汇总了C#中UIPanel.BringToFront方法的典型用法代码示例。如果您正苦于以下问题:C# UIPanel.BringToFront方法的具体用法?C# UIPanel.BringToFront怎么用?C# UIPanel.BringToFront使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UIPanel
的用法示例。
在下文中一共展示了UIPanel.BringToFront方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CreateGraphics
internal void CreateGraphics()
{
try {
var uiView = UIView.GetAView();
TextureDB.LoadFavCimsTextures();
Atlas.LoadAtlasIcons();
////////////////////////////////////////////////
///////////Favorite Button Manu Panel/////////
///////////////////////////////////////////////
//MainMenuPos = UIView.GetAView().FindUIComponent<UITabstrip> ("MainToolstrip");
MainMenuPos = UIView.Find<UITabstrip> ("MainToolstrip");
if(MainMenuPos.Find<FavoritesCimsButton>("FavCimsMenuPanel") != null) {
FavCimsMenuPanel = MainMenuPos.Find<FavoritesCimsButton>("FavCimsMenuPanel");
}else{
FavCimsMenuPanel = MainMenuPos.AddUIComponent(typeof(FavoritesCimsButton)) as FavoritesCimsButton;
}
////////////////////////////////////////////////
////////////////Favorite Panel////////////////
///////////////////////////////////////////////
FullScreenContainer = UIView.Find<UIPanel> ("FullScreenContainer");
FavCimsPanel = FullScreenContainer.AddUIComponent<FavoriteCimsMainPanel> ();
FavCimsPanel.Hide ();
FullScreenContainer.eventMouseDown += delegate {
if (!FavCimsPanel.containsMouse) {
FavCimsPanel.SendToBack ();
} else {
FavCimsPanel.BringToFront ();
}
};
////////////////////////////////////////////////
////////////Humans Button & Subscribe///////////
///////////////////////////////////////////////
FavCimsHumanPanel = FullScreenContainer.Find<UIPanel> ("(Library) CitizenWorldInfoPanel");
if (FavCimsHumanPanel != null) {
if(FavCimsHumanPanel.GetComponentInChildren<AddToFavButton>() != null) {
FavStarButton = FavCimsHumanPanel.GetComponentInChildren<AddToFavButton>();
}else{
FavStarButton = FavCimsHumanPanel.AddUIComponent(typeof(AddToFavButton)) as AddToFavButton;
}
}
GenerateFamilyDetailsTpl();
} catch (Exception e) {
Debug.Error ("OnLoad List Error : " + e.ToString ());
}
}