示例#1
0
 public static void ShowScreen(this object sender, UIIDs id, IScreenSettings settings = null)
 {
     sender.SendGlobalEvent(new ShowWindowEvent
     {
         Id       = (ushort)id,
         Settings = settings
     });
 }
示例#2
0
 public static void HideScreen(this object sender, UIIDs id, bool dontAnimate = false)
 {
     sender.SendGlobalEvent(new HideWindowEvent
     {
         Id = (ushort)id,
         WithoutAnimation = dontAnimate
     });
 }
示例#3
0
 public static TSettings GetScreenSettings <TSettings>(this object sender, UIIDs id)
     where TSettings : IScreenSettings
 {
     return(GetScreen <IScreen <ushort, TSettings> >(sender, id).Settings);
 }
示例#4
0
 public static TScreen GetScreen <TScreen>(this object sender, UIIDs id) where TScreen : IScreen
 {
     return((TScreen)GetScreen(sender, id));
 }
示例#5
0
 public static IScreen GetScreen(this object sender, UIIDs id)
 {
     return(Core.Instance.Get <DataUIManager>().Value.Get((ushort)id));
 }