Exemple #1
0
	// 디버그 창 생성 시에 호출.
	public override void		createDebugWindow(dbwin.Window window)
	{
		this.window = window;

		/*window.createButton("다음")
			.setOnPress(() =>
			{
				switch(this.step.get_current()) {

					case STEP.VS_BOSS:
					{
						this.boss.causeVanish();
					}
					break;

					case STEP.CAKE_BIKING:
					{
						this.is_cake_time_over = true;
					}
					break;

					case STEP.RESULT:
					{
						this.is_result_done = true;
					}
					break;
				}
			});*/
	}
	protected float		time_limit = 30.0f;		// [sec] 제한시간(임시).

	// ================================================================ //

	// 디버그 창 생성 시 호출.
	public override void		createDebugWindow(dbwin.Window window)
	{
		window.createButton("케이크 타임 끝")
			.setOnPress(() =>
			{
				this.step.do_execution(this.time_limit);
			});
	}
	// ================================================================ //

	// 디버그 창 생성시에 호출.
	public override void		createDebugWindow(dbwin.Window window)
	{
		window.createButton("보스 쓰러뜨리기")
			.setOnPress(() =>
			{
				this.boss.causeVanish();
			});
		window.createButton("보스의 적 리스트 갱신")
			.setOnPress(() =>
			            {
				this.boss.updateTargetPlayers();
			});
	}
Exemple #4
0
	//===================================================================

	// 디버그 창 생성 시에 호출.
	public override void		createDebugWindow(dbwin.Window window)
	{
		window.createButton("다음 플로어로")
			.setOnPress(() =>
			{
				switch(this.step.get_current()) {

					case STEP.IN_ACTION:
					{
						this.step.set_next(STEP.FINISH);
					}
					break;
				}
			});
	}
	//===================================================================
	
	// 디버그 윈도 생성 시에 호출.
	public override void		createDebugWindow(dbwin.Window window)
	{
		window.createButton("클리어").setOnPress(() =>{ this.step.set_next(STEP.FINISH);});
	}
Exemple #6
0
	// 윈도 등록.
	public void		resisterWindow(dbwin.WindowBase window)
	{
		if(this.windows.Count > 0) {

			dbwin.WindowBase	last_win = this.windows[this.windows.Count - 1].window;

			window.setPosition(last_win.win_rect.x, 20);
		}

		float	x, y;
	
		x = 10.0f + 100.0f*this.windows.Count;
		y = Screen.height - 20.0f;

		WindowResist		resist = new WindowResist();

		resist.window          = window;
		resist.hot_button_rect = new Rect(x, y, 100.0f, 20.0f);

		this.windows.Add(resist);
	}
Exemple #7
0
	// 액티브 윈도우를 설정=.
	public void		setActiveWindow(dbwin.Window window)
	{
		do {

			if(window == null) {

				this.active_window = null;
				break;
			}

			WindowResist	resist = this.windows.Find(x => x.window == window);

			if(resist == null) {

				break;
			}

			if(this.active_window != null) {
	
				this.active_window.window.is_active = false;
				this.active_window = null;
			}

			this.active_window = resist;

		} while(false);
	}
	// ================================================================ //

	// 디버그 창 생성 시 호출.
	public override void		createDebugWindow(dbwin.Window window)
	{
	}