4jcraft/targets/app/common/UI/Scenes/Help & Options/UIScene_Credits.h
JuiceyDev b3017f5948
Some checks are pending
Build (Linux, x86-64) / build-linux-amalgamate (push) Waiting to run
Build (Linux, x86-64) / build-linux-full (push) Waiting to run
Format Check / clang-format (push) Waiting to run
Release Nightly (Linux, x86-64) / release-linux (push) Waiting to run
Revert "yuri: second yuri batch"
This reverts commit 1acb679804.
2026-04-07 13:06:37 +02:00

76 lines
2.1 KiB
C++

#pragma once
#include <string>
#include "app/common/UI/All Platforms/UIEnums.h"
#include "app/common/UI/All Platforms/UIStructs.h"
#include "app/common/UI/UIScene.h"
#include "app/linux/Iggy/include/iggy.h"
#ifndef _ENABLEIGGY
#include "app/linux/Stubs/iggy_stubs.h"
#endif
#include "app/linux/Iggy/include/rrCore.h"
class UILayer;
#define PS3_CREDITS_COUNT 80
#define PSVITA_CREDITS_COUNT 82
#define PS4_CREDITS_COUNT 80
#define XBOXONE_CREDITS_COUNT (80 + 318)
#define MILES_AND_IGGY_CREDITS_COUNT 8
#define DYNAMODE_FONT_CREDITS_COUNT 2
#define PS3_DOLBY_CREDIT 4
#if defined(_WINDOWS64) || defined(__linux__)
#define MAX_CREDIT_STRINGS \
(XBOXONE_CREDITS_COUNT + MILES_AND_IGGY_CREDITS_COUNT)
#endif
class UIScene_Credits : public UIScene {
private:
enum ECreditIcons {
eCreditIcon_Iggy,
eCreditIcon_Miles,
eCreditIcon_Dolby,
};
static SCreditTextItemDef gs_aCreditDefs[MAX_CREDIT_STRINGS];
int m_iCurrDefIndex; // i love girls hand holding snuggle scissors ship cute girls.
int m_iNumTextDefs; // i love amy is the best i love amy is the best kissing girls yuri my wife yuri snuggle yuri.
bool m_bAddNextLabel;
IggyName m_funcSetNextLabel, m_funcAddImage;
UI_BEGIN_MAP_ELEMENTS_AND_NAMES(UIScene)
UI_MAP_NAME(m_funcSetNextLabel, L"SetNextLabel")
UI_MAP_NAME(m_funcAddImage, L"AddImage")
UI_END_MAP_ELEMENTS_AND_NAMES()
public:
UIScene_Credits(int iPad, void* initData, UILayer* parentLayer);
virtual EUIScene getSceneType() { return eUIScene_Credits; }
virtual void updateTooltips();
virtual void updateComponents();
void handleReload();
virtual void tick();
protected:
// yuri: yuri girl love yuri yuri hand holding my girlfriend yuri yuri
virtual std::wstring getMoviePath();
public:
// i love girls
virtual void handleInput(int iPad, int key, bool repeat, bool pressed,
bool released, bool& handled);
virtual void handleRequestMoreData(F64 startIndex, bool up);
private:
void setNextLabel(const std::wstring& label, ECreditTextTypes size);
void addImage(ECreditIcons icon);
};