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"
#define HBL_VERSION "v0.1"
#define HBL_VERSION "v1.2"
#define CAFE_OS_SD_PATH "/vol/external01"
#define SD_PATH "sd:"

View File

@ -37,6 +37,7 @@ HomebrewWindow::HomebrewWindow(int w, int h)
, arrowLeftImage(arrowLeftImageData)
, arrowRightButton(arrowRightImage.getWidth(), arrowRightImage.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)
, 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)
@ -158,6 +159,10 @@ HomebrewWindow::HomebrewWindow(int w, int h)
arrowRightButton.clicked.connect(this, &HomebrewWindow::OnRightArrowClick);
append(&arrowRightButton);
}
hblVersionText.setAlignment(ALIGN_BOTTOM | ALIGN_RIGHT);
hblVersionText.setPosition(-30, 30);
append(&hblVersionText);
}
HomebrewWindow::~HomebrewWindow()

View File

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