yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::editor::anonymous_namespace{welcome_screen.cc} Namespace Reference

Classes

struct  GridLayout
 

Functions

void UpdateWelcomeAccentPalette ()
 
std::string EllipsizeText (const std::string &text, float max_width)
 
void DrawTriforceBackground (ImDrawList *draw_list, ImVec2 pos, float size, float alpha, float glow)
 
GridLayout ComputeGridLayout (float avail_width, float min_width, float max_width, float min_height, float max_height, float preferred_width, float aspect_ratio, float spacing)
 
void DrawThemeQuickSwitcher (const char *popup_id, const ImVec2 &button_size)
 

Variables

const ImVec4 kTriforceGoldFallback = ImVec4(1.0f, 0.843f, 0.0f, 1.0f)
 
const ImVec4 kHyruleGreenFallback = ImVec4(0.133f, 0.545f, 0.133f, 1.0f)
 
const ImVec4 kMasterSwordBlueFallback = ImVec4(0.196f, 0.6f, 0.8f, 1.0f)
 
const ImVec4 kGanonPurpleFallback = ImVec4(0.502f, 0.0f, 0.502f, 1.0f)
 
const ImVec4 kHeartRedFallback = ImVec4(0.863f, 0.078f, 0.235f, 1.0f)
 
const ImVec4 kSpiritOrangeFallback = ImVec4(1.0f, 0.647f, 0.0f, 1.0f)
 
const ImVec4 kShadowPurpleFallback = ImVec4(0.416f, 0.353f, 0.804f, 1.0f)
 
constexpr float kRecentCardBaseWidth = 240.0f
 
constexpr float kRecentCardBaseHeight = 128.0f
 
constexpr float kRecentCardWidthMaxFactor = 1.30f
 
constexpr float kRecentCardHeightMaxFactor = 1.30f
 
ImVec4 kTriforceGold = kTriforceGoldFallback
 
ImVec4 kHyruleGreen = kHyruleGreenFallback
 
ImVec4 kMasterSwordBlue = kMasterSwordBlueFallback
 
ImVec4 kGanonPurple = kGanonPurpleFallback
 
ImVec4 kHeartRed = kHeartRedFallback
 
ImVec4 kSpiritOrange = kSpiritOrangeFallback
 
ImVec4 kShadowPurple = kShadowPurpleFallback
 

Function Documentation

◆ UpdateWelcomeAccentPalette()

void yaze::editor::anonymous_namespace{welcome_screen.cc}::UpdateWelcomeAccentPalette ( )

◆ EllipsizeText()

std::string yaze::editor::anonymous_namespace{welcome_screen.cc}::EllipsizeText ( const std::string & text,
float max_width )

Definition at line 94 of file welcome_screen.cc.

References EllipsizeText().

Referenced by EllipsizeText().

Here is the call graph for this function:

◆ DrawTriforceBackground()

void yaze::editor::anonymous_namespace{welcome_screen.cc}::DrawTriforceBackground ( ImDrawList * draw_list,
ImVec2 pos,
float size,
float alpha,
float glow )

Definition at line 138 of file welcome_screen.cc.

References DrawTriforceBackground(), and kTriforceGold.

Referenced by DrawTriforceBackground().

Here is the call graph for this function:

◆ ComputeGridLayout()

GridLayout yaze::editor::anonymous_namespace{welcome_screen.cc}::ComputeGridLayout ( float avail_width,
float min_width,
float max_width,
float min_height,
float max_height,
float preferred_width,
float aspect_ratio,
float spacing )

◆ DrawThemeQuickSwitcher()

void yaze::editor::anonymous_namespace{welcome_screen.cc}::DrawThemeQuickSwitcher ( const char * popup_id,
const ImVec2 & button_size )

Definition at line 224 of file welcome_screen.cc.

References DrawThemeQuickSwitcher(), yaze::gui::ThemeManager::Get(), ICON_MD_PALETTE, and yaze::gui::ThemedButton().

Referenced by DrawThemeQuickSwitcher().

Here is the call graph for this function:

Variable Documentation

◆ kTriforceGoldFallback

const ImVec4 yaze::editor::anonymous_namespace{welcome_screen.cc}::kTriforceGoldFallback = ImVec4(1.0f, 0.843f, 0.0f, 1.0f)

Definition at line 33 of file welcome_screen.cc.

◆ kHyruleGreenFallback

const ImVec4 yaze::editor::anonymous_namespace{welcome_screen.cc}::kHyruleGreenFallback = ImVec4(0.133f, 0.545f, 0.133f, 1.0f)

Definition at line 34 of file welcome_screen.cc.

◆ kMasterSwordBlueFallback

const ImVec4 yaze::editor::anonymous_namespace{welcome_screen.cc}::kMasterSwordBlueFallback = ImVec4(0.196f, 0.6f, 0.8f, 1.0f)

Definition at line 35 of file welcome_screen.cc.

◆ kGanonPurpleFallback

const ImVec4 yaze::editor::anonymous_namespace{welcome_screen.cc}::kGanonPurpleFallback = ImVec4(0.502f, 0.0f, 0.502f, 1.0f)

Definition at line 36 of file welcome_screen.cc.

◆ kHeartRedFallback

const ImVec4 yaze::editor::anonymous_namespace{welcome_screen.cc}::kHeartRedFallback = ImVec4(0.863f, 0.078f, 0.235f, 1.0f)

Definition at line 37 of file welcome_screen.cc.

◆ kSpiritOrangeFallback

const ImVec4 yaze::editor::anonymous_namespace{welcome_screen.cc}::kSpiritOrangeFallback = ImVec4(1.0f, 0.647f, 0.0f, 1.0f)

Definition at line 38 of file welcome_screen.cc.

◆ kShadowPurpleFallback

const ImVec4 yaze::editor::anonymous_namespace{welcome_screen.cc}::kShadowPurpleFallback = ImVec4(0.416f, 0.353f, 0.804f, 1.0f)

Definition at line 39 of file welcome_screen.cc.

◆ kRecentCardBaseWidth

constexpr float yaze::editor::anonymous_namespace{welcome_screen.cc}::kRecentCardBaseWidth = 240.0f
constexpr

Definition at line 41 of file welcome_screen.cc.

◆ kRecentCardBaseHeight

constexpr float yaze::editor::anonymous_namespace{welcome_screen.cc}::kRecentCardBaseHeight = 128.0f
constexpr

Definition at line 42 of file welcome_screen.cc.

◆ kRecentCardWidthMaxFactor

constexpr float yaze::editor::anonymous_namespace{welcome_screen.cc}::kRecentCardWidthMaxFactor = 1.30f
constexpr

Definition at line 43 of file welcome_screen.cc.

◆ kRecentCardHeightMaxFactor

constexpr float yaze::editor::anonymous_namespace{welcome_screen.cc}::kRecentCardHeightMaxFactor = 1.30f
constexpr

Definition at line 44 of file welcome_screen.cc.

◆ kTriforceGold

ImVec4 yaze::editor::anonymous_namespace{welcome_screen.cc}::kTriforceGold = kTriforceGoldFallback

Definition at line 47 of file welcome_screen.cc.

Referenced by DrawTriforceBackground(), and UpdateWelcomeAccentPalette().

◆ kHyruleGreen

ImVec4 yaze::editor::anonymous_namespace{welcome_screen.cc}::kHyruleGreen = kHyruleGreenFallback

Definition at line 48 of file welcome_screen.cc.

Referenced by UpdateWelcomeAccentPalette().

◆ kMasterSwordBlue

ImVec4 yaze::editor::anonymous_namespace{welcome_screen.cc}::kMasterSwordBlue = kMasterSwordBlueFallback

Definition at line 49 of file welcome_screen.cc.

Referenced by UpdateWelcomeAccentPalette().

◆ kGanonPurple

ImVec4 yaze::editor::anonymous_namespace{welcome_screen.cc}::kGanonPurple = kGanonPurpleFallback

Definition at line 50 of file welcome_screen.cc.

Referenced by UpdateWelcomeAccentPalette().

◆ kHeartRed

ImVec4 yaze::editor::anonymous_namespace{welcome_screen.cc}::kHeartRed = kHeartRedFallback

Definition at line 51 of file welcome_screen.cc.

Referenced by UpdateWelcomeAccentPalette().

◆ kSpiritOrange

ImVec4 yaze::editor::anonymous_namespace{welcome_screen.cc}::kSpiritOrange = kSpiritOrangeFallback

Definition at line 52 of file welcome_screen.cc.

Referenced by UpdateWelcomeAccentPalette().

◆ kShadowPurple

ImVec4 yaze::editor::anonymous_namespace{welcome_screen.cc}::kShadowPurple = kShadowPurpleFallback

Definition at line 53 of file welcome_screen.cc.

Referenced by UpdateWelcomeAccentPalette().