1
1
#include <screen.h>
2
+ #include <clock.h>
3
+ #include <font.h>
2
4
3
5
INCLUDE_ASM (const s32 , "P2 /screen ", StartupScreen__Fv);
4
6
@@ -16,31 +18,58 @@ INCLUDE_ASM(const s32, "P2/screen", DrawBlots__Fv);
16
18
17
19
INCLUDE_ASM (const s32 , "P2/screen" , InitBlot__FP4BLOT5BLOTK ) ;
18
20
19
- INCLUDE_ASM (const s32 , "P2 /screen ", PostBlotLoad__FP4BLOT);
21
+ void PostBlotLoad (BLOT * pblot )
22
+ {
23
+ pblot -> pfont = g_pfont ;
24
+ * (int * )& pblot -> rgba = 0xff808080 ; // Union?
25
+ pblot -> achzDraw [0 ] = 0 ;
26
+ pblot -> rFontScale = 1.0f ;
27
+ }
20
28
21
29
INCLUDE_ASM (const s32 , "P2 /screen ", UpdateBlot__FP4BLOT);
22
30
23
31
INCLUDE_ASM (const s32 , "P2/screen" , SetBlotAchzDraw__FP4BLOTPc ) ;
24
32
25
33
INCLUDE_ASM (const s32 , "P2 /screen ", SetBlotRgba__FP4BLOTUi);
26
34
27
- INCLUDE_ASM (const s32 , "P2 /screen ", SetBlotFontScale__FP4BLOTf);
35
+ void SetBlotFontScale (float rFontScale , BLOT * pblot )
36
+ {
37
+ pblot -> rFontScale = rFontScale ;
38
+ }
28
39
29
40
INCLUDE_ASM (const s32 , "P2 /screen ", DrawBlot__FP4BLOT);
30
41
31
42
INCLUDE_ASM (const s32 , "P2/screen" , func_001AA890 ) ;
32
43
33
- INCLUDE_ASM (const s32 , "P2/screen" , DtAppearBlot__FP4BLOT ) ;
34
-
35
- INCLUDE_ASM (const s32 , "P2 /screen ", DtVisibleBlot__FP4BLOT);
36
-
37
- INCLUDE_ASM (const s32 , "P2/screen" , DtDisappearBlot__FP4BLOT ) ;
38
-
39
- INCLUDE_ASM (const s32 , "P2 /screen ", SetBlotDtAppear__FP4BLOTf);
40
-
41
- INCLUDE_ASM (const s32 , "P2/screen" , SetBlotDtVisible__FP4BLOTf ) ;
42
-
43
- INCLUDE_ASM (const s32 , "P2 /screen ", SetBlotDtDisappear__FP4BLOTf);
44
+ float DtAppearBlot (BLOT * pblot )
45
+ {
46
+ return pblot -> dtAppear ;
47
+ }
48
+
49
+ float DtVisibleBlot (BLOT * pblot )
50
+ {
51
+ return pblot -> dtVisible ;
52
+ }
53
+
54
+ float DtDisappearBlot (BLOT * pblot )
55
+ {
56
+ return pblot -> dtDisappear ;
57
+ }
58
+
59
+ void SetBlotDtAppear (BLOT * pblot , float dtAppear )
60
+ {
61
+ pblot -> dtAppear = dtAppear ;
62
+ }
63
+
64
+ void SetBlotDtVisible (BLOT * pblot , float dtVisible )
65
+ {
66
+ pblot -> dtVisible = dtVisible ;
67
+ }
68
+
69
+ void SetBlotDtDisappear (BLOT * pblot , float dtDisappear )
70
+ {
71
+ pblot -> dtDisappear = dtDisappear ;
72
+ }
44
73
45
74
INCLUDE_ASM (const s32 , "P2 /screen ", OnBlotReset__FP4BLOT);
46
75
0 commit comments