mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-25 12:56:59 +01:00
Add special image for bind keys
This commit is contained in:
parent
7ef8109788
commit
e352fa10cf
@ -456,10 +456,10 @@ public:
|
|||||||
SDL_BlitSurface(Gui::gui->main_menu_bg, NULL, where, &dst);
|
SDL_BlitSurface(Gui::gui->main_menu_bg, NULL, where, &dst);
|
||||||
|
|
||||||
dst = (SDL_Rect){350,13,0,0};
|
dst = (SDL_Rect){350,13,0,0};
|
||||||
SDL_BlitSurface(Gui::gui->disc_info, NULL, where, &dst);
|
SDL_BlitSurface(Gui::gui->bind_key_box, NULL, where, &dst);
|
||||||
|
|
||||||
this->menu->draw(where, 50, 70, 300, 400);
|
this->menu->draw(where, 50, 70, 300, 400);
|
||||||
this->help->draw(where, 354, 24, 264, 210);
|
this->help->draw(where, 358, 28, 264, 210);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
@ -87,6 +87,7 @@ Gui::Gui()
|
|||||||
this->default_font = NULL;
|
this->default_font = NULL;
|
||||||
this->dialogue_bg = NULL;
|
this->dialogue_bg = NULL;
|
||||||
this->network_info = NULL;
|
this->network_info = NULL;
|
||||||
|
this->bind_key_box = NULL;
|
||||||
this->small_font = NULL;
|
this->small_font = NULL;
|
||||||
|
|
||||||
this->n_views = 0;
|
this->n_views = 0;
|
||||||
@ -155,6 +156,7 @@ Gui::~Gui()
|
|||||||
SDL_FreeSurface(this->bg_submenu_right);
|
SDL_FreeSurface(this->bg_submenu_right);
|
||||||
SDL_FreeSurface(this->background);
|
SDL_FreeSurface(this->background);
|
||||||
SDL_FreeSurface(this->main_menu_bg);
|
SDL_FreeSurface(this->main_menu_bg);
|
||||||
|
SDL_FreeSurface(this->bind_key_box);
|
||||||
SDL_FreeSurface(this->infobox);
|
SDL_FreeSurface(this->infobox);
|
||||||
SDL_FreeSurface(this->dialogue_bg);
|
SDL_FreeSurface(this->dialogue_bg);
|
||||||
SDL_FreeSurface(this->disc_info);
|
SDL_FreeSurface(this->disc_info);
|
||||||
@ -188,6 +190,7 @@ bool Gui::setTheme(const char *path)
|
|||||||
this->dialogue_bg = this->loadThemeImage(path, "dialogue_box.png");
|
this->dialogue_bg = this->loadThemeImage(path, "dialogue_box.png");
|
||||||
this->disc_info = this->loadThemeImage(path, "disc_info.png");
|
this->disc_info = this->loadThemeImage(path, "disc_info.png");
|
||||||
this->network_info = this->loadThemeImage(path, "network_info.png");
|
this->network_info = this->loadThemeImage(path, "network_info.png");
|
||||||
|
this->bind_key_box = this->loadThemeImage(path, "bind_key_box.png");
|
||||||
|
|
||||||
this->highlighted_key = this->loadThemeImage(path, "highlighted_key.png");
|
this->highlighted_key = this->loadThemeImage(path, "highlighted_key.png");
|
||||||
this->selected_key = this->loadThemeImage(path, "selected_key.png");
|
this->selected_key = this->loadThemeImage(path, "selected_key.png");
|
||||||
@ -203,6 +206,7 @@ bool Gui::setTheme(const char *path)
|
|||||||
!this->selected_key ||
|
!this->selected_key ||
|
||||||
!this->highlighted_key ||
|
!this->highlighted_key ||
|
||||||
!this->status_bar_bg ||
|
!this->status_bar_bg ||
|
||||||
|
!this->bind_key_box ||
|
||||||
!this->network_info ||
|
!this->network_info ||
|
||||||
!this->default_font ||
|
!this->default_font ||
|
||||||
!this->small_font)
|
!this->small_font)
|
||||||
@ -222,6 +226,7 @@ bool Gui::setTheme(const char *path)
|
|||||||
SDL_FreeSurface(this->network_message_box);
|
SDL_FreeSurface(this->network_message_box);
|
||||||
SDL_FreeSurface(this->selected_key);
|
SDL_FreeSurface(this->selected_key);
|
||||||
SDL_FreeSurface(this->keyboard);
|
SDL_FreeSurface(this->keyboard);
|
||||||
|
SDL_FreeSurface(this->bind_key_box);
|
||||||
SDL_FreeSurface(this->highlighted_key);
|
SDL_FreeSurface(this->highlighted_key);
|
||||||
SDL_FreeSurface(this->status_bar_bg);
|
SDL_FreeSurface(this->status_bar_bg);
|
||||||
|
|
||||||
|
@ -88,6 +88,7 @@ public:
|
|||||||
SDL_Surface *main_menu_bg;
|
SDL_Surface *main_menu_bg;
|
||||||
SDL_Surface *status_bar_bg;
|
SDL_Surface *status_bar_bg;
|
||||||
SDL_Surface *infobox;
|
SDL_Surface *infobox;
|
||||||
|
SDL_Surface *bind_key_box;
|
||||||
SDL_Surface *network_message_box;
|
SDL_Surface *network_message_box;
|
||||||
SDL_Surface *keyboard;
|
SDL_Surface *keyboard;
|
||||||
SDL_Surface *dialogue_bg;
|
SDL_Surface *dialogue_bg;
|
||||||
|
BIN
themes/default/bind_key_box.png
Normal file
BIN
themes/default/bind_key_box.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.1 KiB |
Loading…
Reference in New Issue
Block a user