Skip to content

Instantly share code, notes, and snippets.

@Rinatamu
Created October 10, 2018 03:08
Show Gist options
  • Save Rinatamu/9bd0e68c119895f6c6d2d0d2ef8896bc to your computer and use it in GitHub Desktop.
Save Rinatamu/9bd0e68c119895f6c6d2d0d2ef8896bc to your computer and use it in GitHub Desktop.
PowerApps GameDev#1 スコア表示フォントをゲームっぽいものにしてみる ref: https://qiita.com/rnakamuramartiny/items/c95a46eec0d189471926
MID(TEXT(Score),Len(Text(Score)),1)
MID(TEXT(Score),Len(Text(Score))-1,1)
MID(TEXT(Score),Len(Text(Score))-2,1)
Switch(Value(Mid(Text(score),Len(Text(score)),1)),
0,ScoreFont_0_Black,
1,ScoreFont_1_Black,
2,ScoreFont_2_Black,
3,ScoreFont_3_Black,
4,ScoreFont_4_Black,
5,ScoreFont_5_Black,
6,ScoreFont_6_Black,
7,ScoreFont_7_Black,
8,ScoreFont_8_Black,
9,ScoreFont_9_Black
)
Switch(Value(Mid(Text(score),Len(Text(score))-1,1)),
0,ScoreFont_0_Black,
1,ScoreFont_1_Black,
2,ScoreFont_2_Black,
3,ScoreFont_3_Black,
4,ScoreFont_4_Black,
5,ScoreFont_5_Black,
6,ScoreFont_6_Black,
7,ScoreFont_7_Black,
8,ScoreFont_8_Black,
9,ScoreFont_9_Black
)
If(Len(Text(score))<2,false,true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment