Inheritance: BaseUI
示例#1
0
        public AccountUI(MainUI frmMain, Guid accountId)
        {
            this.frmMain      = frmMain;
            formMode          = FormMode.Edit;
            this.accountId    = accountId;
            accountRepository = new AccountRepository();

            InitializeComponent();
        }
示例#2
0
        public ReminderUI(MainUI frmMain, Guid reminderId)
        {
            this.frmMain    = frmMain;
            formMode        = FormMode.Edit;
            this.reminderId = reminderId;

            reminderRepository = new ReminderRepository();
            InitializeComponent();
        }
示例#3
0
 /// <summary>
 /// Renders a single frame of the game, and also ticks.
 /// </summary>
 /// <param name="sender">Irrelevant.</param>
 /// <param name="e">Holds the frame time (delta).</param>
 private void Window_RenderFrame(object sender, FrameEventArgs e)
 {
     try
     {
         StackNoteHelper.Push("GameClientWindow - Render and tick frame", this);
         // First step: check delta
         if (e.Time <= 0.0)
         {
             return;
         }
         // Mouse handling
         PreviousMouse = CurrentMouse;
         CurrentMouse  = Mouse.GetState();
         // Standard pre-tick
         PreTick(e.Time);
         ErrorCode ec = GL.GetError();
         while (ec != ErrorCode.NoError)
         {
             SysConsole.Output(OutputType.WARNING, "Uncaught GL Error: " + ec);
             ec = GL.GetError();
         }
         // Second step: clear the screen
         GL.ClearBuffer(ClearBuffer.Color, 0, ScreenClearColor);
         GL.ClearBuffer(ClearBuffer.Depth, 0, DepthClear);
         GL.BindFramebuffer(FramebufferTarget.Framebuffer, 0);
         GL.DrawBuffer(DrawBufferMode.Back);
         GraphicsUtil.CheckError("GameClient - Pre");
         // Tick helpers
         Models.Update(GlobalTickTime);
         GraphicsUtil.CheckError("GameClient - PostModelUpdate");
         // Third step: general game rendering
         CurrentEngine.RenderSingleFrame();
         GraphicsUtil.CheckError("GameClient - PostMainEngine");
         // Add the UI Layer too
         MainUI.Draw();
         GraphicsUtil.CheckError("GameClient - PostUI");
         // Fourth step: clean up!
         GL.BindTexture(TextureTarget.Texture2D, 0);
         GL.BindVertexArray(0);
         GL.UseProgram(0);
         // Semi-final step: Tick logic!
         GraphicsUtil.CheckError("GameClient - PreTick");
         // Main instance tick.
         Tick();
         // Primary UI tick
         MainUI.Tick();
         Resized = false;
         GraphicsUtil.CheckError("GameClient - PostTick");
         // Final step: Swap the render buffer onto the screen!
         Window.SwapBuffers();
         GraphicsUtil.CheckError("GameClient - Post");
     }
     finally
     {
         StackNoteHelper.Pop();
     }
 }
示例#4
0
 public CustomRun(MainUI parent, List<LabClient> clients)
 {
     InitializeComponent();
     isEnabledSingle = false;
     isEnabledDir = false;
     this.parent = parent;
     TimeStamp = service.GetCurrentTimestamp();
     lblTimestmp.Content = "Timestamp: " + TimeStamp;
     extensions = new List<string>();
     InitProcList(clients);
 }
示例#5
0
 private void Awake()
 {
     if (Instance != null)
     {
         Destroy(this.gameObject);
     }
     else
     {
         Instance = this;
     }
 }
示例#6
0
 // Use this for initialization
 void Start()
 {
     adminUI = transform.Find("admin").GetComponent<AdminUI>();
     mainUI = transform.Find("menu").GetComponent<MainUI>();
     accountUI = transform.Find("account").GetComponent<AccountUI>();
     loginUI = transform.Find("login").GetComponent<LoginUI>();
     passwordUI = transform.Find("password").GetComponent<PasswordUI>();
     charactersUI = transform.Find("characters").GetComponent<CharactersUI>();
     characterUI = transform.Find("character").GetComponent<CharacterUI>();
     playerUI = transform.Find("player").GetComponent<PlayerUI>();
 }
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            MainUI main = new MainUI();

            if(args.Length > 0)
                if (System.IO.File.Exists(args[0]))
                    main.openPassedFile(args[0]);

            Application.Run(main);
        }
示例#8
0
    private void Awake()
    {
        GameResourceManager.Instance.Load ("main", "main_resources");
        GameUIManager.Instance.Load ("main", "main_ui");

        GameObject instant = GameResourceManager.Instance.GetSingleUI ("main_ui");
        if (instant != null) {
            this._mainUI = instant.GetComponent<MainUI> ();
            if (this._mainUI != null) {
                this._mainUI.Initialize (OnStart, OnRank, OnOption);
                this._mainUI.SetEnable (true);
            }
        }
    }
 // Use this for initialization
 void Start()
 {
     cp = transform.GetComponent<CharacterProperty>();
     PassiveDict = new Dictionary<PassiveType, bool>();
     foreach(PassiveType passive in Enum.GetValues(typeof(PassiveType))){
         PassiveDict.Add(passive, false);
     }
     if((PassiveAbility!=null) && (PassiveAbility.Length>0)){
         foreach(PassiveType p in PassiveAbility){
             PassiveDict[p] = true;
         }
     }
     rUI = Camera.mainCamera.GetComponent<RoundUI>();
     infoUI = Camera.mainCamera.transform.GetComponent<MainInfoUI>();
     mUI = Camera.mainCamera.transform.GetComponent<MainUI>();
 }
示例#10
0
        public TabControl(MainUI parent, TestApp testApp)
        {
            InitializeComponent();
            this.parent = parent;
            this.testApp = testApp;

            if (testApp is ZTree)
            {
                inited = true;

                ztreeCtrl = new ZtreeControl((ZTree) testApp);
                ztreeControls.Children.Add(ztreeCtrl);
                btnDelResults.IsEnabled = true;
                btnGetResults.IsEnabled = true;
            }
        }
示例#11
0
 public ChromeTab(MainUI parent)
 {
     InitializeComponent();
     this.parent = parent;
 }
示例#12
0
 // Use this for initialization
 void Start()
 {
     mUI = transform.GetComponent<MainUI>();
     sUI = transform.GetComponent<DamageSlidingUI>();
     fb = transform.GetComponent<FightBack>();
     chessUI = transform.GetComponent<MainInfoUI>();
     cFX =  transform.GetComponent<CommonFX>();
     //currentSel = transform.GetComponent<selection>();
 }
示例#13
0
 public override void PreStartClient()
 {
     Debug.Log("PreStartClient");
     mainUI = GameObject.FindObjectOfType<MainUI>();
 }
    // Use this for initialization
    void Start()
    {
        dataFolder = Application.dataPath+"/" + GData.dataResultsPath;
        Debug.Log("dataFolder:"+dataFolder);

        // setup play mode
        if (playMode == GData.PlayMode.Read_From_GData)
        {
            playMode = GData.playMode;
        }
        else
        {
            GData.playMode = playMode;
        }

        missionSys = GameObject.FindObjectOfType<MissionSystem>();

        mainUI = GameObject.FindObjectOfType<MainUI>();

        // according to the play mode, select a data collecter
        switch (playMode)
        {
        case GData.PlayMode.Free_Style:
        {
            db = ScriptableObject.CreateInstance<DataBase>();

            mainUI.mission_description.text
                = "<size=24><b>Mission Description:</b></size>\n" +
                    "        Free Looking.";

            string str = "<b>Free Looking</b>\n" ;
                //+ "Please go back to Main Menu by Ctrl + U.";
            mainUI.SetTips(str);
            }
            break;

        }
    }
示例#15
0
 void Awake()
 {
     instance = this;
 }
示例#16
0
 void Awake()
 {
     Instance = this;
 }
示例#17
0
 public virtual void Awake()
 {
     Assert.IsNull(s_Manager);
     s_Manager = this;
 }
示例#18
0
 // Use this for initialization
 void Start()
 {
     currentSelect = transform.GetComponent<selection>();
     mUI = transform.GetComponent<MainUI>();
 }