void CSH()//打开关卡
{

	Vector4 BgColor = Vector4(0,0,0,1.0);
	Vector2 Position = Vector2(0.3, 0.0);
 	   auto screenSize = ImGui_GetDisplaySize();
  	  ImGui_SetNextWindowPos(screenSize * Position);
   	 int windowFlags = 
			ImGuiWindowFlags_NoTitleBar | 
  	      ImGuiWindowFlags_NoMove |  
  	 		ImGuiWindowFlags_NoResize |  
   	    ImGuiWindowFlags_NoInputs | 
  	     ImGuiWindowFlags_NoScrollbar | 
    	   ImGuiWindowFlags_AlwaysAutoResize|
    	    0;
    	ImGui_PushStyleColor(ImGuiCol_WindowBg, BgColor);
 	   ImGui_PushStyleVar(ImGuiStyleVar_WindowPadding,  Vector2(10,10));
   	 ImGui_PushStyleVar(ImGuiStyleVar_IndentSpacing,  0.0);
  	  ImGui_PushStyleVar(ImGuiStyleVar_WindowBorderSize, 5.0f);
  	  bool open = true;
  	  if (ImGui_Begin("地图选择" +  open, windowFlags)){
  	      ImGui_Text("【F5】打开关闭副本");
  }

    ImGui_PopStyleVar();
    ImGui_PopStyleVar();
    ImGui_PopStyleVar();
    ImGui_PopStyleColor();
    ImGui_End();	
}
void CSH2()//选择关卡
{

	Vector4 BgColor = Vector4(0,0,0,1.0);
	Vector2 Position = Vector2(0.38, 0.45);
 	   auto screenSize = ImGui_GetDisplaySize();
  	  ImGui_SetNextWindowPos(screenSize * Position);
   	 int windowFlags = 
			ImGuiWindowFlags_NoTitleBar | 
  	      ImGuiWindowFlags_NoMove |  
  	 		ImGuiWindowFlags_NoResize |  
   	    ImGuiWindowFlags_NoInputs | 
  	     ImGuiWindowFlags_NoScrollbar | 
    	   ImGuiWindowFlags_AlwaysAutoResize|
    	    0;
    	ImGui_PushStyleColor(ImGuiCol_WindowBg, BgColor);
 	   ImGui_PushStyleVar(ImGuiStyleVar_WindowPadding,  Vector2(10,10));
   	 ImGui_PushStyleVar(ImGuiStyleVar_IndentSpacing,  0.0);
  	  ImGui_PushStyleVar(ImGuiStyleVar_WindowBorderSize, 5.0f);
  	  bool open = true;
  	  if (ImGui_Begin("地图选择2" +  open, windowFlags)){
		ImGui_Text("                             请选择关卡");
  	      ImGui_Text("【1】威震八方");
  }

    ImGui_PopStyleVar();
    ImGui_PopStyleVar();
    ImGui_PopStyleVar();
    ImGui_PopStyleColor();
    ImGui_End();	
}


bool g_forceHide = false;
int g_randNum;
double Duration;
int trg0 = 0;

void OnStart(){


}


void OnUpdate(){
        if (g_forceHide){
        return;
    }
	if(trg0 == 0)
	{
		CSH();
	}
	if(ImGui_IsKeyPressed(ImGuiKey_F5))
	{
		if(trg0 == 0)
		{
			trg0 = 1;
		}
		else{
			trg0 = 0;
		}
	}
	if(ImGui_IsKeyPressed(ImGuiKey_1))
	{
		if(trg0 == 1)
		{
		EnterScene(22);
		trg0 = 0;
		}
	}
	if(trg0 == 1)
	{
		CSH2();
	}



}

void Scene_OnInit(){
    // 进入场景后强制隐藏
    g_forceHide = true;
}

void Scene_OnStop(){
    // 退出场景后取消强制隐藏
    g_forceHide = false;
}