File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 11using Celeste . Mod . SpringCollab2020 . Entities ;
22using Celeste . Mod . SpringCollab2020 . Triggers ;
3+ using Microsoft . Xna . Framework ;
34using System ;
45
56namespace Celeste . Mod . SpringCollab2020 {
@@ -33,7 +34,18 @@ public override void Load() {
3334 StrawberryIgnoringLighting . Load ( ) ;
3435 SeekerCustomColors . Load ( ) ;
3536 CameraCatchupSpeedTrigger . Load ( ) ;
36- ColorGradeFadeTrigger . Load ( ) ;
37+ ColorGradeFadeTrigger . Load ( ) ;
38+
39+ DecalRegistry . AddPropertyHandler ( "scale" , ( decal , attrs ) => {
40+ Vector2 scale = decal . Scale ;
41+ if ( attrs [ "multiply" ] != null ) {
42+ scale *= float . Parse ( attrs [ "multiply" ] . Value ) ;
43+ }
44+ if ( attrs [ "divide" ] != null ) {
45+ scale /= float . Parse ( attrs [ "divide" ] . Value ) ;
46+ }
47+ decal . Scale = scale ;
48+ } ) ;
3749 }
3850
3951 public override void LoadContent ( bool firstLoad ) {
You can’t perform that action at this time.
0 commit comments