-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from Lefraudeur/dev
Cleaned some parts of code structure
- Loading branch information
Showing
55 changed files
with
535 additions
and
285 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,11 @@ | ||
#pragma once | ||
|
||
#include "imgui.h" | ||
|
||
namespace Ripterms | ||
{ | ||
namespace GUI | ||
{ | ||
inline bool draw = false; | ||
bool init(); | ||
void clean(); | ||
|
||
inline ImVec2 category_button_size = ImVec2(100, 30); | ||
|
||
/* other style*/ | ||
|
||
inline bool ripterms_title = true; | ||
/* both are false by default but eh why not */ | ||
inline bool show_color_theming = false; | ||
inline bool show_rounding_theming = false; | ||
|
||
/* color picker colors */ | ||
inline ImVec4 color_active_tab = ImVec4(.6f, .0f, .0f, 1.f); | ||
//inline ImVec4 color_inactive_tab = ImVec4(.5f, .5f, .5f, 1.f); | ||
inline ImColor color_child_bg = ImColor(23, 23, 23, 190); | ||
inline ImColor color_bool_enabled = ImColor(10, 150, 10, 255); | ||
inline ImColor color_bool_disabled = ImColor(173, 55, 65, 255); | ||
inline ImColor color_slider_grab = ImColor(10, 150, 10, 255); | ||
inline ImColor color_slider_line = ImColor(173, 55, 65, 255); | ||
inline ImColor color_frame_bg = ImColor(35, 35, 35, 255); | ||
inline ImColor color_frame_bg_active = ImColor(35, 35, 35, 255); | ||
inline ImColor color_frame_bg_hovered = ImColor(35, 35, 35, 255); | ||
inline ImColor color_window_bg = ImColor(11, 14, 15, 255); | ||
inline ImColor color_button = ImColor(31, 30, 31, 255); | ||
inline ImColor color_button_active = ImColor(239, 73, 88, 255); | ||
inline ImColor color_button_hovered = ImColor(173, 55, 65, 255); | ||
inline ImColor color_text = ImColor(200, 200, 200, 255); | ||
inline ImColor color_header = ImColor(78, 78, 78, 255); | ||
inline ImColor color_header_active = ImColor(78, 78, 78, 255); | ||
inline ImColor color_header_hovered = ImColor(78, 78, 78, 255); | ||
|
||
/* rounding */ | ||
|
||
inline float rounding_frame = 10.f; | ||
inline float rounding_window = 5.f; | ||
inline float rounding_child = 5.f; | ||
inline float rounding_grab = 5.f; | ||
inline float rounding_popup = 5.f; | ||
inline float rounding_scrollbar = 5.f; | ||
inline float rounding_tab = 5.f; | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#pragma once | ||
#include <ImGui/imgui.h> | ||
|
||
namespace Ripterms::GUI | ||
{ | ||
static ImVec2 category_button_size = ImVec2(100, 30); | ||
|
||
/* other style*/ | ||
|
||
static bool ripterms_title = true; | ||
/* both are false by default but eh why not */ | ||
static bool show_color_theming = false; | ||
static bool show_rounding_theming = false; | ||
|
||
/* color picker colors */ | ||
static ImVec4 color_active_tab = ImVec4(.6f, .0f, .0f, 1.f); | ||
//inline ImVec4 color_inactive_tab = ImVec4(.5f, .5f, .5f, 1.f); | ||
static ImColor color_child_bg = ImColor(23, 23, 23, 190); | ||
static ImColor color_bool_enabled = ImColor(10, 150, 10, 255); | ||
static ImColor color_bool_disabled = ImColor(173, 55, 65, 255); | ||
static ImColor color_slider_grab = ImColor(10, 150, 10, 255); | ||
static ImColor color_slider_line = ImColor(173, 55, 65, 255); | ||
static ImColor color_frame_bg = ImColor(35, 35, 35, 255); | ||
static ImColor color_frame_bg_active = ImColor(35, 35, 35, 255); | ||
static ImColor color_frame_bg_hovered = ImColor(35, 35, 35, 255); | ||
static ImColor color_window_bg = ImColor(11, 14, 15, 255); | ||
static ImColor color_button = ImColor(31, 30, 31, 255); | ||
static ImColor color_button_active = ImColor(239, 73, 88, 255); | ||
static ImColor color_button_hovered = ImColor(173, 55, 65, 255); | ||
static ImColor color_text = ImColor(200, 200, 200, 255); | ||
static ImColor color_header = ImColor(78, 78, 78, 255); | ||
static ImColor color_header_active = ImColor(78, 78, 78, 255); | ||
static ImColor color_header_hovered = ImColor(78, 78, 78, 255); | ||
|
||
/* rounding */ | ||
|
||
static float rounding_frame = 10.f; | ||
static float rounding_window = 5.f; | ||
static float rounding_child = 5.f; | ||
static float rounding_grab = 5.f; | ||
static float rounding_popup = 5.f; | ||
static float rounding_scrollbar = 5.f; | ||
static float rounding_tab = 5.f; | ||
} |
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
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
Oops, something went wrong.