added and bumped version string on main view

This commit is contained in:
dimok789 2016-04-22 20:28:01 +02:00
parent 3a574c3b0a
commit e720a44613
3 changed files with 7 additions and 1 deletions

View File

@ -7,7 +7,7 @@ extern "C" {
#include "os_defs.h" #include "os_defs.h"
#define HBL_VERSION "v0.1" #define HBL_VERSION "v1.2"
#define CAFE_OS_SD_PATH "/vol/external01" #define CAFE_OS_SD_PATH "/vol/external01"
#define SD_PATH "sd:" #define SD_PATH "sd:"

View File

@ -37,6 +37,7 @@ HomebrewWindow::HomebrewWindow(int w, int h)
, arrowLeftImage(arrowLeftImageData) , arrowLeftImage(arrowLeftImageData)
, arrowRightButton(arrowRightImage.getWidth(), arrowRightImage.getHeight()) , arrowRightButton(arrowRightImage.getWidth(), arrowRightImage.getHeight())
, arrowLeftButton(arrowLeftImage.getWidth(), arrowLeftImage.getHeight()) , arrowLeftButton(arrowLeftImage.getWidth(), arrowLeftImage.getHeight())
, hblVersionText("Homebrew Launcher " HBL_VERSION " by Dimok", 32, glm::vec4(1.0f))
, touchTrigger(GuiTrigger::CHANNEL_1, GuiTrigger::VPAD_TOUCH) , touchTrigger(GuiTrigger::CHANNEL_1, GuiTrigger::VPAD_TOUCH)
, wpadTouchTrigger(GuiTrigger::CHANNEL_2 | GuiTrigger::CHANNEL_3 | GuiTrigger::CHANNEL_4 | GuiTrigger::CHANNEL_5, GuiTrigger::BUTTON_A) , wpadTouchTrigger(GuiTrigger::CHANNEL_2 | GuiTrigger::CHANNEL_3 | GuiTrigger::CHANNEL_4 | GuiTrigger::CHANNEL_5, GuiTrigger::BUTTON_A)
, buttonLTrigger(GuiTrigger::CHANNEL_ALL, GuiTrigger::BUTTON_L | GuiTrigger::BUTTON_LEFT, true) , buttonLTrigger(GuiTrigger::CHANNEL_ALL, GuiTrigger::BUTTON_L | GuiTrigger::BUTTON_LEFT, true)
@ -158,6 +159,10 @@ HomebrewWindow::HomebrewWindow(int w, int h)
arrowRightButton.clicked.connect(this, &HomebrewWindow::OnRightArrowClick); arrowRightButton.clicked.connect(this, &HomebrewWindow::OnRightArrowClick);
append(&arrowRightButton); append(&arrowRightButton);
} }
hblVersionText.setAlignment(ALIGN_BOTTOM | ALIGN_RIGHT);
hblVersionText.setPosition(-30, 30);
append(&hblVersionText);
} }
HomebrewWindow::~HomebrewWindow() HomebrewWindow::~HomebrewWindow()

View File

@ -50,6 +50,7 @@ private:
GuiImage arrowLeftImage; GuiImage arrowLeftImage;
GuiButton arrowRightButton; GuiButton arrowRightButton;
GuiButton arrowLeftButton; GuiButton arrowLeftButton;
GuiText hblVersionText;
typedef struct typedef struct
{ {