Exemplo n.º 1
0
 public override void Awake(GameObject go)
 {
     SetButtonListener("Bottom/BtnClose", ClosePage);
     SetButtonListener("Bottom/BtnScan", ShowPage <ScanDialog>);
     _fileListView = FindCompoment <USimpleListView>("Viewport/Content/FileList");
     _title        = FindCompoment <Text>("Title");
     _scanTipText  = FindCompoment <Text>("Viewport/Content/ScanTip");
 }
Exemplo n.º 2
0
 public override void Awake(GameObject go)
 {
     SetButtonListener("Bottom/BtnClose", ClosePage);
     _btnScan = FindCompoment <Button>("Bottom/BtnScan");
     UiUtils.SetButtonListener(_btnScan, ShowPage <ScanDialog>);
     _btnSwitchMode = FindCompoment <Button>("Bottom/BtnSwitchMode");
     UiUtils.SetButtonListener(_btnSwitchMode, () =>
     {
         _context.PathMode = !_context.PathMode;
         Refresh();
     });
     SetButtonListener("Path/DirectoryUp", () =>
     {
         var parent = new DirectoryInfo(_context.Path).Parent;
         if (parent == null)
         {
             return;
         }
         var oldPath   = _context.Path;
         _context.Path = parent.FullName;
         try
         {
             Refresh();
         }
         catch (Exception e)
         {
             _context.Path = oldPath;
             Refresh();
         }
     });
     _fileListView  = FindCompoment <USimpleListView>("Viewport/Content/FileList");
     _title         = FindCompoment <Text>("Title");
     _scanTipText   = FindCompoment <Text>("Viewport/Content/ScanTip");
     _pathBar       = FindCompoment <RectTransform>("Path");
     _viewPort      = FindCompoment <RectTransform>("Viewport");
     _titleBar      = FindCompoment <RectTransform>("Header");
     _directoryName = FindCompoment <Text>("Path/DirectoryName");
 }
Exemplo n.º 3
0
 public override void Awake(GameObject go)
 {
     _modelListView = FindCompoment <USimpleListView>("Viewport/Content/SceneList");
     SetButtonListener("Bottom/BtnClose", ClosePage);
 }