-
Notifications
You must be signed in to change notification settings - Fork 0
/
MGW.event
79 lines (63 loc) · 2.09 KB
/
MGW.event
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#include "Extensions/Hack Installation.txt"
//C compiled stuff
#include "src/ModularGoalWindow.lyn.event"
#include "src/DrawTimeText.lyn.event"
#define GoalWindowTemplate(Template) "SHORT $1C30; BL(Template); SHORT $BCF0 $BC01 $4700"
#define SetWindowOptions(Character,CharColor,CharX,CharY, IsIcon,IconPal,IconX,IconY) "BYTE Character CharColor CharX CharY IsIcon IconPal IconX IconY"
#define GoalWindowText(TextA, TextB) "SHORT TextA TextB"
//Color definitions. Remove if you already have them defined
#define NormalText 0x0
#define GrayText 0x1
#define BlueText 0x2
#define OrangeText 0x3
#define GreenText 0x4
#define BlackText 0x5
//Special character definitions
#define G_Character 30
PUSH
ORG 0x8D32B
BYTE 9 //Number of goal window templates (Starting count at 0)
// New Goal window
ORG $08D200
WORD $46C04778 $E59FC000 $E12FFF1C; POIN DrawGoalWindow
ORG $8D33C
POIN NewGoalWindowjpt
POP
ALIGN 4
TwoLineDisplay:
GoalWindowTemplate(TwoLineTextTemplate)
ALIGN 4
GoldDisplay:
GoalWindowTemplate(GoldTextTemplate)
ALIGN 4
GoldTurnDisplay:
GoalWindowTemplate(GoldTurnTextTemplate)
ALIGN 4
EnemyAndTurnCountDisplay:
GoalWindowTemplate(EnemyAndTurnCountTemplate)
ALIGN 4
RealTimeClockDisplay:
GoalWindowTemplate(RealTimeClockDisplayTemplate)
NewGoalWindowjpt:
/*0x0*/ WORD 0x0808D354 // Single line display (Seize)
/*0x1*/ WORD 0x0808D35C // Route
/*0x2*/ WORD 0x0808D3B0 // Defend/Survive
/*0x3*/ WORD 0x0808D354 // Single line display (Defeat Boss)
/*0x4*/ WORD 0x0808D354 // Single line diaplay (Unknown)
/*0x5*/ POIN TwoLineDisplay
/*0x6*/ POIN GoldDisplay
/*0x7*/ POIN GoldTurnDisplay
/*0x8*/ POIN EnemyAndTurnCountDisplay
/*0x9*/ POIN RealTimeClockDisplay
//NOTE: "IsIcon" is only used to decide whether or not to display an icon ever. Use the SetMGWIcon ASMC to set an Icon by ID
MGWOptions:
/*0x0*/ WORD 0 0
/*0x1*/ WORD 0 0
/*0x2*/ WORD 0 0
/*0x3*/ WORD 0 0
/*0x4*/ WORD 0 0
/*0x5*/ WORD 0 0
/*0x6*/ SetWindowOptions(G_Character,OrangeText,9,1, 0x0,1,1,1)
/*0x7*/ SetWindowOptions(G_Character,OrangeText,9,1, 0x1,1,8,3)
/*0x8*/ WORD 0 0
/*0x9*/ WORD 0 0