mirror of
https://github.com/Lorenzooone/cc3dsfs.git
synced 2026-08-11 19:35:59 -05:00
Add title and back or X option
This commit is contained in:
@@ -9,14 +9,6 @@ ConnectionMenu::~ConnectionMenu() {
|
||||
|
||||
void ConnectionMenu::class_setup() {
|
||||
this->num_elements_per_screen = 4;
|
||||
this->num_page_elements = 3;
|
||||
this->num_elements_displayed_per_screen = num_elements_per_screen + num_page_elements;
|
||||
this->num_vertical_slices = (num_elements_displayed_per_screen - (num_page_elements - 1));
|
||||
this->num_elements_start_id = 0;
|
||||
this->num_page_elements_start_id = num_elements_per_screen + num_elements_start_id;
|
||||
this->prev_page_id = num_page_elements_start_id;
|
||||
this->info_page_id = num_page_elements_start_id + 1;
|
||||
this->next_page_id = num_page_elements_start_id + 2;
|
||||
this->min_elements_text_scaling_factor = num_elements_per_screen;
|
||||
this->width_factor_menu = 16;
|
||||
this->width_divisor_menu = 9;
|
||||
@@ -24,6 +16,11 @@ void ConnectionMenu::class_setup() {
|
||||
this->base_height_divisor_menu = 6;
|
||||
this->min_text_size = 0.3;
|
||||
this->max_width_slack = 1.1;
|
||||
this->menu_color = sf::Color(30, 30, 60, 192);
|
||||
this->title = "Connection Menu";
|
||||
this->show_back_x = false;
|
||||
this->show_x = false;
|
||||
this->show_title = false;
|
||||
}
|
||||
|
||||
void ConnectionMenu::insert_data(DevicesList *devices_list) {
|
||||
|
||||
Reference in New Issue
Block a user