Skip to content

Commit 35e4446

Browse files
committed
fix a small problem
1 parent f208bcb commit 35e4446

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

changelog.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
# v1.3.1
2+
- Fixed bug where going to a users profile while on another page will assume you want to go to that page
13
# v1.3.0
2-
- Added user profiles
4+
- Added user profiles (Thanks Rue!)
35
- Replaced Trending with Featured
46
- Revamped Object UI
57
- Added abbreviations for object items (Object Count and Download Count)

mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"id": "firee.object-workshop",
1010
"name": "Object Workshop",
11-
"version": "v1.3.0",
11+
"version": "v1.3.1",
1212
"developer": "Firee",
1313
"description": "Download, upload, or find custom objects made by other creators!",
1414
"resources": {

src/ui/ObjectWorkshop.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ void ObjectWorkshop::load() {
681681

682682
auto accName = CCLabelBMFont::create(user.name.c_str(), "goldFont.fnt");
683683
accName->setAlignment(cocos2d::kCCTextAlignmentCenter);
684-
accName->limitLabelWidth(120.F, 0.6F, 0.3F);
684+
accName->limitLabelWidth(100.F, 0.6F, 0.3F);
685685
profileInnerBG->addChildAtPosition(accName, Anchor::Center, {-35, 9});
686686

687687
auto uploadsSpr = CCSprite::createWithSpriteFrameName("GJ_hammerIcon_001.png");
@@ -1090,6 +1090,9 @@ void ObjectWorkshop::onClickUser(int accountID) {
10901090
static_cast<CategoryButton*>(oldItem->getChildren()->objectAtIndex(0))->setIndicatorState(false);
10911091
}
10921092
m_currentUserID = accountID;
1093+
m_currentPage = 1;
1094+
m_pageInput->setString("1");
1095+
isSearching = false;
10931096
currentMenuIndexGD = -1;
10941097
RegenCategory();
10951098
}

0 commit comments

Comments
 (0)