File tree Expand file tree Collapse file tree 4 files changed +55
-4
lines changed
Expand file tree Collapse file tree 4 files changed +55
-4
lines changed Original file line number Diff line number Diff line change 1+ # 1.2.0
2+ - 25 New Splashes!
3+ - Splash label is now more like Minecraft.
4+ - Splash label rotation now customizable.
5+ - Updated about.md to have info on creating new splashes
6+
17# 1.1.0
28- Users not on iOS can now create their own splashes!
39
Original file line number Diff line number Diff line change 88 },
99 "id" : " alphii.gd-splash-text" ,
1010 "name" : " Splash Text!" ,
11- "version" : " v1.1 .0" ,
11+ "version" : " v1.2 .0" ,
1212 "developer" : " Alphii" ,
1313 "description" : " Minecraft-style splashes in the main menu!" ,
1414 "tags" : [" enhancement" , " offline" ],
4141 }
4242 ]
4343 }
44+ },
45+ "splash-rotation" : {
46+ "type" : " float" ,
47+ "name" : " Splash Text Rotation" ,
48+ "description" : " The rotation for the splash in the main menu. Default is -20" ,
49+ "default" : -20 ,
50+ "min" : -180 ,
51+ "max" : 180 ,
52+ "control" : {
53+ "slider" : true
54+ }
4455 }
4556 }
4657}
Original file line number Diff line number Diff line change @@ -72,4 +72,30 @@ Good luck Doggie!
7272__PLAYER_USERNAME__ is you!
7373You are __RANDOM__% complete!
7474Unlock icons from achievements!
75- Triple Spikes!
75+ Triple Spikes!
76+ Try the GDDP!
77+ Try the GDDL!
78+ Sponsored by Geode!
79+ Hop on Globed!
80+ Climax is Top __RANDOM__!
81+ It's a bird!
82+ It's a plane!
83+ CBF is cheating!
84+ Try Demons in Between!
85+ Try Seperate Dual Icons!
86+ Soggy cat says hi!
87+ Try GDPS Switcher!
88+ Try Minecraftify!
89+ Try Icon Gradients!
90+ Try BetterQuests!
91+ Woah! It's Wulzy!
92+ To the Recent Taaaaaaab!
93+ Follow TricoGMD on Twitch!
94+ Also on Amazon!
95+ sqrt(-1) love you!
96+ __RANDOM__0000 lines of code!
97+ Fire in the hole!
98+ Glubfub!
99+ The chicken is ready!
100+ Rock Lobster!
101+ Gimmie! Gimmie! Gimmie!
Original file line number Diff line number Diff line change @@ -41,9 +41,17 @@ class $modify(ST_MenuLayer, MenuLayer)
4141 auto mainTitle = getChildByIDRecursive (" main-title" );
4242
4343 m_fields->m_SplashText = ScalingLabel::create (m_fields->m_SplashStr .c_str (), " goldFont.fnt" );
44+
45+ // The scale here is an inverse scaling function for text used pretty often for UI.
4446 m_fields->m_SplashText ->setScale (0 .5f / (1 .0f + 0 .05f * strlen (m_fields->m_SplashText ->getLabel ()->getString ())));
45- m_fields->m_SplashText ->setPosition (mainTitle->getContentSize ().width - 10 .f , mainTitle->getContentSize ().height * 0 .5f );
46- m_fields->m_SplashText ->setRotation (20 .0f );
47+ m_fields->m_SplashText ->setPosition (
48+ // The magic numbers are the percentage offset to get the anchor point at the bottom right
49+ // of the actual text and not the sprite.
50+ mainTitle->getContentSize ().width - mainTitle->getContentSize ().width * 0 .0175f ,
51+ mainTitle->getContentSize ().height * 0 .1923f
52+ );
53+
54+ m_fields->m_SplashText ->setRotation (Mod::get ()->getSettingValue <float >(" splash-rotation" ));
4755 mainTitle->addChild (m_fields->m_SplashText );
4856
4957 return true ;
You can’t perform that action at this time.
0 commit comments