Skip to content

Commit

Permalink
use better sprite for the presets button
Browse files Browse the repository at this point in the history
  • Loading branch information
anatom3000 committed Oct 21, 2024
1 parent 30f2fbb commit d5284b4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 5 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,12 @@ class FunctionToolPopup : public geode::Popup<> {
menu_selector(FunctionToolPopup::onHsv)
);

auto historySprite = CCSprite::createWithSpriteFrameName("accountBtn_myLevels_001.png");
historySprite->setScale(0.75f);

auto historyBtn = CCMenuItemSpriteExtra::create(
CCSprite::createWithSpriteFrameName("GJ_timeIcon_001.png"),
//CCSprite::createWithSpriteFrameName("GJ_timeIcon_001.png"),
historySprite,
this,
menu_selector(FunctionToolPopup::onHistory)
);
Expand Down
8 changes: 4 additions & 4 deletions src/popups/history.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,12 @@ class ConfigCell : public cocos2d::CCLayer {
c.use_robtop_units ? "use robtop units, " : "",
c.use_radians ? "use radians, " : "",
c.delete_original ? "delete original, " : ""
),
);

if (toggles_content.length() != 0) {
toggles_content->pop_back();
toggles_content->pop_back();
toggles_content->push_back('.');
toggles_content.pop_back();
toggles_content.pop_back();
toggles_content.push_back('.');

toggles_content[0] = static_cast<char>(
std::toupper(static_cast<unsigned char>(toggles_content[0]))
Expand Down

0 comments on commit d5284b4

Please sign in to comment.