From 4498cc39eb3d87dd75b5c1563b15b4cfafb09979 Mon Sep 17 00:00:00 2001 From: sigonasr2 Date: Sun, 17 Mar 2024 13:24:30 -0500 Subject: [PATCH] Add artists to Credits screen. Modify Scrolling behavior of ScrollableWindowComponents so you can click in the scroll region to move the scrollbar, not just the scrollbar itself. Release Build 8155. --- .../ScrollableWindowComponent.h | 29 ++++-- Adventures in Lestoria/TODO.txt | 5 +- Adventures in Lestoria/Version.h | 2 +- .../AdventuresInLestoria_LibraryCapsule.png | Bin 0 -> 72752 bytes .../AdventuresInLestoria_LibraryHero.png | Bin 0 -> 92896 bytes .../AdventuresInLestoria_LibraryLogo.png | Bin 0 -> 33401 bytes .../assets/BlueSlime_120.png | Bin 0 -> 893 bytes .../assets/GreenSlime_120.jpg | Bin 0 -> 3647 bytes .../assets/GreenSlime_120.png | Bin 0 -> 901 bytes Adventures in Lestoria/assets/LinuxIcons.zip | Bin 0 -> 39304 bytes .../assets/RedSlime_120.jpg | Bin 0 -> 3747 bytes .../assets/RedSlime_120.png | Bin 0 -> 923 bytes .../assets/config/credits.txt | 98 +++++++++--------- .../assets/title_icon_128.png | Bin 0 -> 11713 bytes .../assets/title_icon_16.png | Bin 0 -> 4620 bytes .../assets/title_icon_16.tga | Bin 0 -> 811 bytes .../assets/title_icon_184.jpg | Bin 0 -> 17114 bytes .../assets/title_icon_256.png | Bin 0 -> 18287 bytes .../assets/title_icon_64.png | Bin 0 -> 7825 bytes .../assets/title_icon_96.png | Bin 0 -> 9730 bytes x64/Release/Adventures in Lestoria.exe | Bin 3427840 -> 3428352 bytes 21 files changed, 76 insertions(+), 58 deletions(-) create mode 100644 Adventures in Lestoria/assets/AdventuresInLestoria_LibraryCapsule.png create mode 100644 Adventures in Lestoria/assets/AdventuresInLestoria_LibraryHero.png create mode 100644 Adventures in Lestoria/assets/AdventuresInLestoria_LibraryLogo.png create mode 100644 Adventures in Lestoria/assets/BlueSlime_120.png create mode 100644 Adventures in Lestoria/assets/GreenSlime_120.jpg create mode 100644 Adventures in Lestoria/assets/GreenSlime_120.png create mode 100644 Adventures in Lestoria/assets/LinuxIcons.zip create mode 100644 Adventures in Lestoria/assets/RedSlime_120.jpg create mode 100644 Adventures in Lestoria/assets/RedSlime_120.png create mode 100644 Adventures in Lestoria/assets/title_icon_128.png create mode 100644 Adventures in Lestoria/assets/title_icon_16.png create mode 100644 Adventures in Lestoria/assets/title_icon_16.tga create mode 100644 Adventures in Lestoria/assets/title_icon_184.jpg create mode 100644 Adventures in Lestoria/assets/title_icon_256.png create mode 100644 Adventures in Lestoria/assets/title_icon_64.png create mode 100644 Adventures in Lestoria/assets/title_icon_96.png diff --git a/Adventures in Lestoria/ScrollableWindowComponent.h b/Adventures in Lestoria/ScrollableWindowComponent.h index 24786692..5980369a 100644 --- a/Adventures in Lestoria/ScrollableWindowComponent.h +++ b/Adventures in Lestoria/ScrollableWindowComponent.h @@ -186,10 +186,23 @@ protected: bool mouseOverScrollbar=geom2d::overlaps(geom2d::rect(windowAbsPos+vf2d{rect.size.x-12,scrollBarTop+12},{12,scrollBarHeight}),game->GetMousePos()); + auto ScrollToClickedPosition=[&](){ + float spaceBetweenTopAndBottomArrows=rect.size.y-24; + float viewHeight=rect.size.y; + + float totalContentHeight=bounds.size.y; + if(totalContentHeight==0)totalContentHeight=1; + float scrollBarScale=(spaceBetweenTopAndBottomArrows/totalContentHeight); + //The scroll amount moves centered on the position the mouse is at. + float newScrollbarTop=(game->GetMousePos().y-windowAbsPos.y-12)-scrollBarHeight/2; + SetScrollAmount({GetScrollAmount().x,(-newScrollbarTop+1)/scrollBarScale}); + }; + if(mouseOverScrollbar||scrollBarSelected){ scrollBarHoverTime=std::min(scrollBarHoverTime+game->GetElapsedTime(),"ThemeGlobal.HighlightTime"_F); if(game->GetMouse(0).bPressed&&!geom2d::contains(rect,bounds)){ scrollBarSelected=true; + Menu::menus[parentMenu]->alreadyClicked=true; } if(game->GetMouse(0).bReleased){ scrollBarSelected=false; @@ -197,18 +210,16 @@ protected: } if(scrollBarSelected){ Menu::scrolling=true; - float spaceBetweenTopAndBottomArrows=rect.size.y-24; - float viewHeight=rect.size.y; - - float totalContentHeight=bounds.size.y; - if(totalContentHeight==0)totalContentHeight=1; - float scrollBarScale=(spaceBetweenTopAndBottomArrows/totalContentHeight); - //The scroll amount moves centered on the position the mouse is at. - float newScrollbarTop=(game->GetMousePos().y-windowAbsPos.y-12)-scrollBarHeight/2; - SetScrollAmount({GetScrollAmount().x,(-newScrollbarTop+1)/scrollBarScale}); + ScrollToClickedPosition(); } }else{ scrollBarHoverTime=std::max(scrollBarHoverTime-game->GetElapsedTime(),0.f); + //It's possible to still scroll by clicking outside the scrollbar but in the scroll region. + if(game->GetMouse(0).bHeld&&!geom2d::contains(rect,bounds)&& + geom2d::overlaps(geom2d::rect(windowAbsPos+vf2d{rect.size.x-12.f,12.f},{12.f,rect.size.y-12.f}),game->GetMousePos())){ + ScrollToClickedPosition(); + Menu::menus[parentMenu]->alreadyClicked=true; + } } if(game->GetMouseWheel()!=0){ diff --git a/Adventures in Lestoria/TODO.txt b/Adventures in Lestoria/TODO.txt index ada871f3..27ddf9dd 100644 --- a/Adventures in Lestoria/TODO.txt +++ b/Adventures in Lestoria/TODO.txt @@ -8,4 +8,7 @@ Materials for initial craft seems to be wrong? need to recheck do we need a minimap? (maybe with fog of war?) Maybe polling that once testing with more people. should gemstones dropp from boss stages aswell? (Maybe lower droprate?) -Toggle for displaying error messages \ No newline at end of file +Toggle for displaying error messages + +Equip Gear using Start menu tutorial +Steam Controller SDK \ No newline at end of file diff --git a/Adventures in Lestoria/Version.h b/Adventures in Lestoria/Version.h index 2ffe284c..433834bc 100644 --- a/Adventures in Lestoria/Version.h +++ b/Adventures in Lestoria/Version.h @@ -39,7 +39,7 @@ All rights reserved. #define VERSION_MAJOR 0 #define VERSION_MINOR 5 #define VERSION_PATCH 1 -#define VERSION_BUILD 8151 +#define VERSION_BUILD 8155 #define stringify(a) stringify_(a) #define stringify_(a) #a diff --git a/Adventures in Lestoria/assets/AdventuresInLestoria_LibraryCapsule.png b/Adventures in Lestoria/assets/AdventuresInLestoria_LibraryCapsule.png new file mode 100644 index 0000000000000000000000000000000000000000..acde09fbbc76a03ed59b70c14ecbea455baaa926 GIT binary patch literal 72752 zcmeFYby(AF+c=H|79s{HNDC@3a9q;jbzwcj<94@ZUb)DDQ*BRGBwKVS2o@P2tMMXvX@PVQ> z71dD#Dyn0_C#fkT2)yQP%G;W+u7SI@r5C%iD;x}Qv}Jeqakgc*^@f0{sJtg4AHkeX zaGcyD-10qsT=8~a06IrvVNHhDvr!N-_|PU~faS;#k+`kG#FLek=}adLpU5 z!UZ0rrwO|lvhy*XuhZgeVO8>@uR@JkLGvBPCUK+Nw$%@&-*%yquxx@Rf=*$}>&;lq zZFrt&z)7yp1rO{36qT?|az-+AzV8UR+T&q!MK8K^i^ZJn2E%+Z&{}eNBbpAX2HVnI z1)+kS_g-*{7r$)Q756_O9L{~MXE5fHu;OL5pc}WjRUX4r+sf^0=r%}>t5?ZS4yqHH zkEF+XeBZbexJyNKBp9Ngp!HBe;V=hQH~SsQ*0U}eXFR6cDnqAunPE?pzi# zcrjQQYsINRa-lnT^;I)ol}G<_#I-X83eRSLwAg)btOY~B6Y8hip6oN?_FqvQZM@S6 z!OgUzrsR(7^}kKP5=V`JA2bJ3O#!aQgHcbym&RRRjya93M)pa4)n2%zK*@f6{dJI#LE)dnoBt*HDP1m&A7r@gzov$UX~ zmzS4-m#6^T)lN`YN=iylNJLOX1VEVqaPx6;xAX=$xp5tW_yt4J*3H@#;_MEAJFy?a zw6ubIxXW^KQl7K_g&)jWUHxC+o!owNfx-_#Z%b!EVF4jQ7)jcIo)jRz5&Fj! zZn_kk7Sy(NgL}AI+bVh5I=OTG3BtzuU+bMcTpfRsV`D97>u3w3Om(B|D*U%C?>|)6 z`qzp>7T7^x&OcXCnEkhz?hx?5ne{i^4xjua=TAf^%l`%UZ?pfR{pV!LEOm8hMYy%c zA$kuLWjPP`m$rdhLu{mfei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