mirror of
https://github.com/Lorenzooone/cc3dsfs.git
synced 2026-03-22 02:06:22 -05:00
Some checks are pending
CD / ${{ matrix.platform.name }} ${{ matrix.config.name }} (map[flags:-DBUILD_SHARED_LIBS=FALSE name:Static], map[artifact_name:linux32 flags:32 name:Linux GCC 32 os:ubuntu-latest]) (push) Waiting to run
CD / ${{ matrix.platform.name }} ${{ matrix.config.name }} (map[flags:-DBUILD_SHARED_LIBS=FALSE name:Static], map[artifact_name:linux64 flags:64 name:Linux GCC x64 os:ubuntu-latest]) (push) Waiting to run
CD / ${{ matrix.platform.name }} ${{ matrix.config.name }} (map[flags:-DBUILD_SHARED_LIBS=FALSE name:Static], map[artifact_name:linuxarm32 flags:arm32 name:Linux GCC ARM 32 os:ubuntu-latest]) (push) Waiting to run
CD / ${{ matrix.platform.name }} ${{ matrix.config.name }} (map[flags:-DBUILD_SHARED_LIBS=FALSE name:Static], map[artifact_name:linuxarm64 flags:arm64 name:Linux GCC ARM 64 os:ubuntu-latest]) (push) Waiting to run
CD / ${{ matrix.platform.name }} ${{ matrix.config.name }} (map[flags:-DBUILD_SHARED_LIBS=FALSE name:Static], map[artifact_name:macos name:macOS Apple Silicon os:macos-14]) (push) Waiting to run
CD / ${{ matrix.platform.name }} ${{ matrix.config.name }} (map[flags:-DBUILD_SHARED_LIBS=FALSE name:Static], map[artifact_name:win32 flags:-A Win32 -DCMAKE_PARALLEL_MSVC=TRUE name:Windows VS2022 Win32 os:windows-2022]) (push) Waiting to run
CD / ${{ matrix.platform.name }} ${{ matrix.config.name }} (map[flags:-DBUILD_SHARED_LIBS=FALSE name:Static], map[artifact_name:win64 flags:-A x64 -DCMAKE_PARALLEL_MSVC=TRUE name:Windows VS2022 x64 os:windows-2022]) (push) Waiting to run
CD / ${{ matrix.platform.name }} ${{ matrix.config.name }} (map[flags:-DBUILD_SHARED_LIBS=FALSE name:Static], map[artifact_name:winarm64 flags:-A ARM64 -DCMAKE_PARALLEL_MSVC=TRUE name:Windows VS2022 ARM os:windows-2022]) (push) Waiting to run
CD / Create Pi Mono Setup (push) Blocked by required conditions
CD / Publishing (push) Blocked by required conditions
51 lines
1.7 KiB
C++
51 lines
1.7 KiB
C++
#ifndef __SECOND_SCREEN_3D_RELPOSMENU_HPP
|
|
#define __SECOND_SCREEN_3D_RELPOSMENU_HPP
|
|
|
|
#include <SFML/Graphics.hpp>
|
|
#include <chrono>
|
|
|
|
#include "TextRectangle.hpp"
|
|
#include "display_structs.hpp"
|
|
#include "event_structs.hpp"
|
|
#include "RelativePositionMenu.hpp"
|
|
|
|
#define BACK_X_OUTPUT_OPTION -1
|
|
|
|
enum SecondScreen3DRelPosMenuOutAction{
|
|
SECOND_SCREEN_3D_REL_POS_MENU_NO_ACTION,
|
|
SECOND_SCREEN_3D_REL_POS_MENU_BACK,
|
|
SECOND_SCREEN_3D_REL_POS_MENU_TOGGLE_MATCH,
|
|
SECOND_SCREEN_3D_REL_POS_MENU_CONFIRM,
|
|
};
|
|
|
|
class SecondScreen3DRelativePositionMenu : public RelativePositionMenu {
|
|
public:
|
|
SecondScreen3DRelativePositionMenu(TextRectanglePool* text_pool);
|
|
~SecondScreen3DRelativePositionMenu();
|
|
std::chrono::time_point<std::chrono::high_resolution_clock> last_input_processed_time;
|
|
void reset_output_option();
|
|
void prepare(float scaling_factor, int view_size_x, int view_size_y, ScreenInfo* info);
|
|
void insert_data(ScreenType stype);
|
|
SecondScreen3DRelPosMenuOutAction selected_index = SecondScreen3DRelPosMenuOutAction::SECOND_SCREEN_3D_REL_POS_MENU_NO_ACTION;
|
|
SecondScreen3DRelativePosition selected_confirm_value = SECOND_SCREEN_3D_REL_POS_END;
|
|
protected:
|
|
bool is_option_drawable(int index);
|
|
bool is_option_selectable(int index);
|
|
void set_output_option(int index);
|
|
std::string get_string_option(int index);
|
|
void class_setup();
|
|
|
|
void option_slice_prepare(int i, int index, int num_vertical_slices, float text_scaling_factor);
|
|
bool is_option_element(int option);
|
|
bool is_option_left(int index);
|
|
bool is_option_right(int index);
|
|
bool is_option_above(int index);
|
|
bool is_option_below(int index);
|
|
private:
|
|
std::string setTextOptionBool(int index, bool value);
|
|
std::string get_false_option(int index);
|
|
int pos_y_subtractor;
|
|
ScreenType stype;
|
|
};
|
|
#endif
|