This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "JsonStthm.h" | |
namespace JsonStthm | |
{ | |
JsonValue::JsonMember::JsonMember(const ImwChar* pName, JsonValue* pValue) | |
{ | |
m_pName = NULL; | |
SetName(pName); | |
m_pValue = pValue; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Exemple: | |
float fValue = 1.f; | |
DragNumeric("Float", &fValue, 1.0, 0.f, 0.f, "%f"); | |
double fDoubleValue = 1.f; | |
DragNumeric("Double", &fDoubleValue, 1.0, 0.0, 0.0, "%lf"); | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <windows.h> | |
#include <tchar.h> | |
#include <stdio.h> | |
#include <dbghelp.h> | |
#include <stdlib.h> | |
#pragma comment(lib, "dbghelp.lib") // for "VerQueryValue" | |
#pragma comment(lib, "version.lib") // for "VerQueryValue" | |
#pragma warning(disable:4826) | |
#pragma warning(disable:4127) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class SimpleErrorHandler | |
{ | |
static function Exception($msg, $level = 0) | |
{ | |
//trigger_error("Member not exist"/*, E_USER_ERROR*/); | |
$traces = debug_backtrace(); | |
self::PrintError($msg,$traces[$level]["file"], $traces[$level]["line"]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool ColorSelector(const char* pLabel, ImVec4& oRGBA) | |
{ | |
const ImU32 c_oColorGrey = ImGui::ColorConvertFloat4ToU32(ImVec4(0.75f,0.75f,0.75f,1.f)); | |
const ImU32 c_oColorBlack = ImGui::ColorConvertFloat4ToU32(ImVec4(0.f,0.f,0.f,1.f)); | |
const ImU32 c_oColorBlackTransparent = ImGui::ColorConvertFloat4ToU32(ImVec4(0.f,0.f,0.f,0.f)); | |
const ImU32 c_oColorWhite = ImGui::ColorConvertFloat4ToU32(ImVec4(1.f,1.f,1.f,1.f)); | |
ImGui::PushID(pLabel); | |
bool bRet = false; | |
ImGuiID iID = ImGui::GetID(pLabel); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ini::IniConfig& m_oIniConfig; | |
Ini::CategoryValueMap& mCategories = m_oIniConfig.GetCategories(); | |
if (ImGui::Button("Reload")) | |
{ | |
m_oIniConfig.Load("Config.ini", true, false); | |
} | |
ImGui::SameLine(); | |
if (ImGui::Button("Save")) |
NewerOlder