2017-12-26 22:36:01 -05:00
|
|
|
; name lengths
|
2022-06-06 16:25:42 -05:00
|
|
|
DEF NAME_LENGTH EQU 11
|
|
|
|
DEF PLAYER_NAME_LENGTH EQU 8
|
|
|
|
DEF BOX_NAME_LENGTH EQU 9
|
|
|
|
DEF MON_NAME_LENGTH EQU 11
|
|
|
|
DEF MOVE_NAME_LENGTH EQU 13
|
|
|
|
DEF ITEM_NAME_LENGTH EQU 13
|
|
|
|
DEF TRAINER_CLASS_NAME_LENGTH EQU 13
|
|
|
|
DEF NAME_LENGTH_JAPANESE EQU 6
|
2017-12-26 22:36:01 -05:00
|
|
|
|
|
|
|
; GetName types (see home/names.asm)
|
2018-01-31 11:38:45 -05:00
|
|
|
const_def 1
|
2018-01-20 12:25:55 -05:00
|
|
|
const MON_NAME ; 1
|
2018-01-19 00:42:31 -05:00
|
|
|
const MOVE_NAME ; 2
|
|
|
|
const DUMMY_NAME ; 3
|
|
|
|
const ITEM_NAME ; 4
|
|
|
|
const PARTY_OT_NAME ; 5
|
|
|
|
const ENEMY_OT_NAME ; 6
|
|
|
|
const TRAINER_NAME ; 7
|
|
|
|
const MOVE_DESC_NAME_BROKEN ; 8
|
2017-12-26 22:36:01 -05:00
|
|
|
|
|
|
|
; see home/text.asm
|
2022-06-06 16:25:42 -05:00
|
|
|
DEF BORDER_WIDTH EQU 2
|
|
|
|
DEF TEXTBOX_WIDTH EQU SCREEN_WIDTH
|
|
|
|
DEF TEXTBOX_INNERW EQU TEXTBOX_WIDTH - BORDER_WIDTH
|
|
|
|
DEF TEXTBOX_HEIGHT EQU 6
|
|
|
|
DEF TEXTBOX_INNERH EQU TEXTBOX_HEIGHT - BORDER_WIDTH
|
|
|
|
DEF TEXTBOX_X EQU 0
|
|
|
|
DEF TEXTBOX_INNERX EQU TEXTBOX_X + 1
|
|
|
|
DEF TEXTBOX_Y EQU SCREEN_HEIGHT - TEXTBOX_HEIGHT
|
|
|
|
DEF TEXTBOX_INNERY EQU TEXTBOX_Y + 2
|
2017-12-26 22:36:01 -05:00
|
|
|
|
2021-03-16 17:53:42 -04:00
|
|
|
; see gfx/frames/*.png
|
2023-08-07 13:23:57 +02:00
|
|
|
DEF TEXTBOX_FRAME_TILES EQU 6
|
|
|
|
DEF OW_TEXTBOX_FRAME_TILES EQU 14
|
2021-03-16 17:53:42 -04:00
|
|
|
|
2017-12-26 22:36:01 -05:00
|
|
|
; PrintNum bit flags
|
2018-01-31 11:38:45 -05:00
|
|
|
const_def 5
|
2023-09-02 23:16:35 +02:00
|
|
|
const PRINTNUM_COINS_F ; 5
|
2019-11-03 20:17:04 -05:00
|
|
|
const PRINTNUM_LEFTALIGN_F ; 6
|
2017-12-26 22:36:01 -05:00
|
|
|
const PRINTNUM_LEADINGZEROS_F ; 7
|
|
|
|
|
2018-04-04 23:44:24 +02:00
|
|
|
; PrintNum arguments (see engine/math/print_num.asm)
|
2023-09-02 23:16:35 +02:00
|
|
|
DEF PRINTNUM_COINS EQU 1 << PRINTNUM_COINS_F
|
2022-06-06 16:25:42 -05:00
|
|
|
DEF PRINTNUM_LEFTALIGN EQU 1 << PRINTNUM_LEFTALIGN_F
|
|
|
|
DEF PRINTNUM_LEADINGZEROS EQU 1 << PRINTNUM_LEADINGZEROS_F
|
2018-01-18 18:34:20 -05:00
|
|
|
|
|
|
|
; character sets (see charmap.asm)
|
2023-08-02 18:21:34 +02:00
|
|
|
DEF FIRST_REGULAR_TEXT_CHAR EQU $7f
|
2020-05-06 10:34:51 -04:00
|
|
|
|
|
|
|
; gfx/font/unown_font.png
|
2022-06-06 16:25:42 -05:00
|
|
|
DEF FIRST_UNOWN_CHAR EQU $40
|