Skip to content

Commit 8017fb3

Browse files
committed
Seconds fix and offset on mobile
1 parent e351bfe commit 8017fb3

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

src/nodes/layers/DTGraphLayer.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,13 @@ void DTGraphLayer::OnPointSelected(GraphPoint* point){
482482
if (!displaysForPoints.size()){
483483
auto pointPosConverted = m_mainLayer->convertToNodeSpace(point->convertToWorldSpace({point->getContentWidth() / 2, 0}));
484484

485-
position = pointPosConverted - ccp(display->getContentWidth() / 2, display->getContentHeight());
485+
position = pointPosConverted - ccp(
486+
display->getContentWidth() / 2,
487+
display->getContentHeight()
488+
#if defined(GEODE_IS_MOBILE)
489+
+ 15
490+
#endif
491+
);
486492
}
487493
else{
488494
GraphPointDisplay* lowestOther = *displays.rbegin();

src/utils/Settings.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
int64_t Settings::getMaxSessionLength() {
44
auto sessionMethod = Mod::get()->getSettingValue<std::string>("session-method");
5+
if (sessionMethod == "Seconds"){
6+
sessionMethod = "Exit game";
7+
Mod::get()->setSettingValue("session-method", sessionMethod);
8+
}
9+
510
if (sessionMethod == "Exit level")
611
return -2;
712
else if (sessionMethod == "Exit game")

0 commit comments

Comments
 (0)