From e720a446139b6252d5a2226729251c0b004d668f Mon Sep 17 00:00:00 2001 From: dimok789 Date: Fri, 22 Apr 2016 20:28:01 +0200 Subject: [PATCH] added and bumped version string on main view --- src/common/common.h | 2 +- src/menu/HomebrewWindow.cpp | 5 +++++ src/menu/HomebrewWindow.h | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/common/common.h b/src/common/common.h index 4b7848a..47c704b 100644 --- a/src/common/common.h +++ b/src/common/common.h @@ -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:" diff --git a/src/menu/HomebrewWindow.cpp b/src/menu/HomebrewWindow.cpp index 9fa4f33..3a76384 100644 --- a/src/menu/HomebrewWindow.cpp +++ b/src/menu/HomebrewWindow.cpp @@ -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() diff --git a/src/menu/HomebrewWindow.h b/src/menu/HomebrewWindow.h index 2b78e9e..72394f2 100644 --- a/src/menu/HomebrewWindow.h +++ b/src/menu/HomebrewWindow.h @@ -50,6 +50,7 @@ class HomebrewWindow : public GuiFrame, public sigslot::has_slots<> GuiImage arrowLeftImage; GuiButton arrowRightButton; GuiButton arrowLeftButton; + GuiText hblVersionText; typedef struct {