public AccountUI(MainUI frmMain, Guid accountId) { this.frmMain = frmMain; formMode = FormMode.Edit; this.accountId = accountId; accountRepository = new AccountRepository(); InitializeComponent(); }
public ReminderUI(MainUI frmMain, Guid reminderId) { this.frmMain = frmMain; formMode = FormMode.Edit; this.reminderId = reminderId; reminderRepository = new ReminderRepository(); InitializeComponent(); }
/// <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(); } }
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); }
private void Awake() { if (Instance != null) { Destroy(this.gameObject); } else { Instance = this; } }
// 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); }
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>(); }
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; } }
public ChromeTab(MainUI parent) { InitializeComponent(); this.parent = parent; }
// 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>(); }
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; } }
void Awake() { instance = this; }
void Awake() { Instance = this; }
public virtual void Awake() { Assert.IsNull(s_Manager); s_Manager = this; }
// Use this for initialization void Start() { currentSelect = transform.GetComponent<selection>(); mUI = transform.GetComponent<MainUI>(); }