Elaztek Developer Hub
Blamite Game Engine - blam!  00398.09.22.23.2015.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 
50  if (ImGui::Button("Test", ImVec2(120, 0))) { /*ping*/ }
51 
52  ImGui::End();
53 
54  }
55  }
56  };
57 }
ImGuiTextFilter::Draw
IMGUI_API bool Draw(const char *label="Filter (inc,-exc)", float width=0.0f)
Definition: imgui.cpp:2080
BlamRendering::SetClearColor
BLAM void SetClearColor(ImVec4 color)
Changes the color to used to clear the render target.
Definition: rendering_abstraction.cpp:27
Blam::DebugUI::Widgets::ShowHelpMarker
BLAM void ShowHelpMarker(const char *desc)
Shows a help indicator.
Definition: widgets.cpp:7
InternalUI::Colors::crash_col
UI_API ImVec4 crash_col()
Definition: debug_ui_colors.cpp:21
curcmd
std::string curcmd
Definition: console_hack.cpp:12
ImGuiTextFilter::IsActive
bool IsActive() const
Definition: imgui.h:1606
ImGuiTextFilter::PassFilter
IMGUI_API bool PassFilter(const char *text, const char *text_end=NULL) const
Definition: imgui.cpp:2129
ImVector::clear
void clear()
Definition: imgui.h:1251
ImGui::LogToClipboard
IMGUI_API void LogToClipboard(int auto_open_depth=-1)
Definition: imgui.cpp:9297
Blam::Logger::LogEvent
BLAM void LogEvent(std::string message)
Logs a message to the log and/or console.
Definition: aliases.cpp:142
Blam::GetConsoleCommand2
BLAM std::string GetConsoleCommand2()
i have no idea why this exists
Definition: console_hack.cpp:123
Blam::GetConsoleState2
BLAM bool GetConsoleState2()
i have no idea why this exists
Definition: console_hack.cpp:108
ImGuiTextBuffer
Definition: imgui.h:1626
Blam::DebugUI::Windows::IPTest::IPTest
IPTest()
Empty constructor.
Definition: ip_test.hpp:24
logger.h
InternalUI::ShowHaloConsole
UI_API void ShowHaloConsole(bool *p_open)
Legacy function that was used to open the ImGUI-based console.
Definition: legacy_halo_prompt.cpp:1794
InternalUI::ShowCrashScreen
UI_API void ShowCrashScreen(std::string crash_message)
Show the engine's crash screen.
Definition: crash_screen.cpp:11
ImGuiWindowFlags_NoTitleBar
@ ImGuiWindowFlags_NoTitleBar
Definition: imgui.h:714
ImGui::PopStyleColor
IMGUI_API void PopStyleColor(int count=1)
Definition: imgui.cpp:6341
ImVector::push_back
void push_back(const T &v)
Definition: imgui.h:1268
BlamLogger::Filter
ImGuiTextFilter Filter
Definition: console_hack.cpp:142
crash_message
std::string crash_message
The message to display on the crash screen.
Definition: render_manage.cpp:62
ImGuiTextBuffer::begin
const char * begin() const
Definition: imgui.h:1633
ImGui::InputText
IMGUI_API bool InputText(const char *label, char *buf, size_t buf_size, ImGuiInputTextFlags flags=0, ImGuiInputTextCallback callback=NULL, void *user_data=NULL)
Definition: imgui_widgets.cpp:3068
Blam::DebugUI::Windows::HackConsole
BLAM void HackConsole(bool *show_console)
Definition: console_hack.cpp:14
IM_FMTARGS
#define IM_FMTARGS(FMT)
Definition: imgui.h:72
copy
ARPHIC PUBLIC LICENSE Ltd Yung Chi Taiwan All rights reserved except as specified below Everyone is permitted to copy and distribute verbatim copies of this license but changing it is forbidden Preamble The licenses for most software are designed to take away your freedom to share and change it By the ARPHIC PUBLIC LICENSE specifically permits and encourages you to use this provided that you give the recipients all the rights that we gave you and make sure they can get the modifications of this software Legal Terms Font means the TrueType fonts AR PL Mingti2L AR PL KaitiM AR PL KaitiM and the derivatives of those fonts created through any modification including modifying reordering converting changing font or adding deleting some characters in from glyph table PL means Public License Copyright Holder means whoever is named in the copyright or copyrights for the Font You means the or person redistributing or modifying the Font Freely Available means that you have the freedom to copy or modify the Font as well as redistribute copies of the Font under the same conditions you not price If you you can charge for this service Copying &Distribution You may copy and distribute verbatim copies of this Font in any without provided that you retain this license including modifying reordering converting changing font or adding deleting some characters in from glyph and copy and distribute such modifications under the terms of Section provided that the following conditions are such as by offering access to copy the modifications from a designated or distributing the modifications on a medium customarily used for software interchange c If the modified fonts normally reads commands interactively when you must cause when started running for such interactive use in the most ordinary to print or display an announcement including an appropriate copyright notice and a notice that there is no and telling the user how to view a copy of this License These requirements apply to the modified work as a whole If identifiable sections of that work are not derived from the and can be reasonably considered independent and separate works in then this License and its do not apply to those sections when you distribute them as separate works mere aggregation of another work not based on the Font with the Font on a volume of a storage or distribution medium does not bring the other work under the scope of this License Condition Subsequent You may not copy
Definition: ARPHICPL.TXT:41
ImGui::End
IMGUI_API void End()
Definition: imgui.cpp:6016
Blam::DebugUI::Windows::IPTest
Legacy IP test dialog.
Definition: ip_test.hpp:18
ImGuiIO
Definition: imgui.h:1338
command_current
const char * command_current
Definition: console_hack.cpp:11
ImGui::GetTime
IMGUI_API double GetTime()
Definition: imgui.cpp:3319
ImGuiWindowFlags_NoSavedSettings
@ ImGuiWindowFlags_NoSavedSettings
Definition: imgui.h:722
rendering.h
BlamLogger
Definition: console_hack.cpp:139
ImGui::SameLine
IMGUI_API void SameLine(float offset_from_start_x=0.0f, float spacing=-1.0f)
Definition: imgui.cpp:7147
Blam::SetConsoleState
BLAM void SetConsoleState(bool state)
Legacy function to control legacy ImGUI console visibility.
Definition: console_hack.cpp:99
ImVec2
Definition: imgui.h:179
NULL
Add a fourth parameter to bake specific font ranges NULL
Definition: README.txt:57
Blam::GetConsoleState
BLAM bool GetConsoleState()
Legacy function to retrieve legacy ImGUI console visibility.
Definition: console_hack.cpp:128
Blam::EngineDefs::GetVersionBuildString
BLAM std::string GetVersionBuildString(BlamVersionStringDisplayMode display_mode)
Retrieves the build string of the engine.
Definition: engine_definitions.cpp:53
BlamLogger::Clear
void Clear()
Definition: console_hack.cpp:149
InternalUI::Colors::console_color
UI_API ImVec4 console_color()
Definition: debug_ui_colors.cpp:27
BlamLogger::Draw
void Draw(const char *title, bool *p_open=NULL)
Definition: console_hack.cpp:168
ImGui::Begin
IMGUI_API bool Begin(const char *name, bool *p_open=NULL, ImGuiWindowFlags flags=0)
Definition: imgui.cpp:5397
show_console
bool show_console
Definition: console_hack.cpp:6
ImGui::Text
IMGUI_API void Text(const char *fmt,...) IM_FMTARGS(1)
Definition: imgui_widgets.cpp:238
ImGui::GetIO
IMGUI_API ImGuiIO & GetIO()
Definition: imgui.cpp:3300
show_crash_info
bool show_crash_info
Definition: crash_screen.cpp:9
ImGui::SetNextWindowPos
IMGUI_API void SetNextWindowPos(const ImVec2 &pos, ImGuiCond cond=0, const ImVec2 &pivot=ImVec2(0, 0))
Definition: imgui.cpp:6731
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::Windows::HackConsoleNew
BLAM void HackConsoleNew(bool *show_testing_newconsole)
Definition: console_hack.cpp:71
BlamVersionStringDisplayMode::CrashScreen
@ CrashScreen
Indicates the build string should be formatted for the crash screen.
state
sock planetquake com All rights reserved Quake III Arena is a registered trademark of id Inc This level may be electronically distributed only at NO CHARGE to the recipient in its current state
Definition: chiropteraDM.txt:94
Blam::DebugUI::ImGUIDrawingGroup
Class representing an ImGUI drawing group/draw list item.
Definition: debug_ui.h:359
ImGui::SetNextWindowSize
IMGUI_API void SetNextWindowSize(const ImVec2 &size, ImGuiCond cond=0)
Definition: imgui.cpp:6741
ImGuiWindowFlags_HorizontalScrollbar
@ ImGuiWindowFlags_HorizontalScrollbar
Definition: imgui.h:725
IM_ARRAYSIZE
#define IM_ARRAYSIZE(_ARR)
Definition: imgui.h:75
Blam::DebugUI::Windows::IPTest::Draw
void Draw()
Draws the window.
Definition: ip_test.hpp:34
engine_definitions.h
InternalUI::Colors::crash_text_shadow_col
UI_API ImVec4 crash_text_shadow_col()
Definition: debug_ui_colors.cpp:23
ImGuiTextBuffer::clear
void clear()
Definition: imgui.h:1637
Blam::SetConsoleState2
BLAM void SetConsoleState2(bool state)
i have no idea why this exists
Definition: console_hack.cpp:113
ImVector< int >
BlamLogger::AddLog
void AddLog(const char *fmt,...) IM_FMTARGS(2)
Definition: console_hack.cpp:151
BlamLogger::Buffer
ImGuiTextBuffer Buffer
Definition: console_hack.cpp:141
ImGuiTextBuffer::size
int size() const
Definition: imgui.h:1635
ImGui::EndChild
IMGUI_API void EndChild()
Definition: imgui.cpp:4764
ImGuiWindowFlags_AlwaysAutoResize
@ ImGuiWindowFlags_AlwaysAutoResize
Definition: imgui.h:720
Blam::SetConsoleCommand2
BLAM void SetConsoleCommand2(std::string command)
i have no idea why this exists
Definition: console_hack.cpp:118
ImGuiWindowFlags_NoMove
@ ImGuiWindowFlags_NoMove
Definition: imgui.h:716
ImGuiCol_Text
@ ImGuiCol_Text
Definition: imgui.h:1027
show_testing_newconsole
bool show_testing_newconsole
Definition: console_hack.cpp:9
debug_ui.h
ImGuiTextFilter
Definition: imgui.h:1599
BlamLogger::ScrollToBottom
bool ScrollToBottom
Definition: console_hack.cpp:147
ImGui::Separator
IMGUI_API void Separator()
Definition: imgui_widgets.cpp:1284
BlamLogger::LineOffsets
ImVector< int > LineOffsets
Definition: console_hack.cpp:145
ImGuiWindowFlags_NoResize
@ ImGuiWindowFlags_NoResize
Definition: imgui.h:715
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: ui.h:26
ImGui::TextUnformatted
IMGUI_API void TextUnformatted(const char *text, const char *text_end=NULL)
Definition: imgui_widgets.cpp:233
ImGui::TextColored
IMGUI_API void TextColored(const ImVec4 &col, const char *fmt,...) IM_FMTARGS(2)
Definition: imgui_widgets.cpp:257
ImVector::Size
int Size
Definition: imgui.h:1229
InternalUI::Colors::crash_text_col
UI_API ImVec4 crash_text_col()
Definition: debug_ui_colors.cpp:22
ImGui::Button
IMGUI_API bool Button(const char *label, const ImVec2 &size=ImVec2(0, 0))
Definition: imgui_widgets.cpp:644
ImGuiTextBuffer::appendfv
IMGUI_API void appendfv(const char *fmt, va_list args) IM_FMTLIST(2)
Definition: imgui.cpp:2206
ImGui::BeginChild
IMGUI_API bool BeginChild(const char *str_id, const ImVec2 &size=ImVec2(0, 0), bool border=false, ImGuiWindowFlags flags=0)
Definition: imgui.cpp:4752
ImGui::PushStyleColor
IMGUI_API void PushStyleColor(ImGuiCol idx, ImU32 col)
Definition: imgui.cpp:6321