Blamite Game Engine - blam!  00296.01.12.21.0102.blamite
The core library for the Blamite Game Engine.
ip_test.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include "../../debug_ui.h"
4 
5 
7 {
19  {
20  public:
24  IPTest() {};
25 
29  ~IPTest() {};
30 
34  void Draw()
35  {
36  //Master server connection
37  if (show)
38  {
39  ImGui::Begin("Test Master Server Connection", &show, ImGuiWindowFlags_AlwaysAutoResize/* | ImGuiWindowFlags_HasBorder*/);
40  static char iptest[255] = "343.host.elaztek.com"; //dedicatedHost
41 
42 
43 
44  ImGui::Text("This tool is used to test the connection to the Elaztek Master Server.\nAlternatively, you can test any of the fallback servers by changing the IP.\n");
45 
46  ImGui::InputText("IP:", iptest, IM_ARRAYSIZE(iptest));
47  ImGui::SameLine(); Blam::DebugUI::Widgets::ShowHelpMarker("Input the IP address to test in this box.\nYou may use a DNS host (dns.domain.com) or a direct IP (1.2.3.4)");
48 
49  ImGui::Separator();
50  if (ImGui::Button("Test", ImVec2(120, 0))) { /*ping*/ }
51 
52  ImGui::End();
53 
54  }
55  }
56  };
57 }
Blam::DebugUI::Widgets::ShowHelpMarker
BLAM void ShowHelpMarker(const char *desc)
Shows a help indicator.
Definition: widgets.cpp:7
Blam::DebugUI::Windows::IPTest::IPTest
IPTest()
Empty constructor.
Definition: ip_test.hpp:24
Blam::DebugUI::Windows::IPTest
Legacy IP test dialog.
Definition: ip_test.hpp:18
Blam::DebugUI::ImGUIDrawingGroup::show
bool show
Controls whether or not the group should be shown. May not be used in all groups.
Definition: debug_ui.h:362
Blam::DebugUI::ImGUIDrawingGroup
Class representing an ImGUI drawing group/draw list item.
Definition: debug_ui.h:359
Blam::DebugUI::Windows::IPTest::Draw
void Draw()
Draws the window.
Definition: ip_test.hpp:34
Blam::DebugUI::Windows::IPTest::~IPTest
~IPTest()
Empty destructor.
Definition: ip_test.hpp:29
Blam::DebugUI::Windows
Legacy namespace to contain data for the legacy ImGUI console.
Definition: debug_ui.h:434
Text
@ Text
Master text object that wraps around both BitmapText and DWText.
Definition: render_stack.h:73