// 디버그 창 생성 시에 호출. 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; * } * });*/ }
// アクティブなウインドウをセットする. 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) { 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 dbwin.Window createWindow(string title) { var window = new dbwin.Window(this.next_window_id, title); this.next_window_id++; this.resisterWindow(window); return(window); }
// ================================================================ // // 디버그 창 생성시에 호출. public override void createDebugWindow(dbwin.Window window) { window.createButton("보스 쓰러뜨리기") .setOnPress(() => { this.boss.causeVanish(); }); window.createButton("보스의 적 리스트 갱신") .setOnPress(() => { this.boss.updateTargetPlayers(); }); }
//=================================================================== // 디버그 창 생성 시에 호출. 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 virtual void createDebugWindow(dbwin.Window window) { } // 디버그 창 생성시 호출.
//=================================================================== // 디버그 윈도 생성 시에 호출. public override void createDebugWindow(dbwin.Window window) { window.createButton("클리어").setOnPress(() => { this.step.set_next(STEP.FINISH); }); }
// 윈도 만들기. public dbwin.Window createWindow(string title) { var window = new dbwin.Window(this.next_window_id, title); this.next_window_id++; this.resisterWindow(window); return(window); }
// ================================================================ // // 디버그 창 생성 시 호출. public override void createDebugWindow(dbwin.Window window) { }