mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-29 07:23:01 +00:00
dfef74e727
Adjusted text system to have multiple fonts Added color escape to text
482 lines
16 KiB
C
482 lines
16 KiB
C
#include <ultra64.h>
|
|
#include "sm64.h"
|
|
#include "game/ingame_menu.h"
|
|
#include "make_const_nonconst.h"
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_01[] = {
|
|
#include "textures/custom_font_title/custom_font_title_01.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_02[] = {
|
|
#include "textures/custom_font_title/custom_font_title_02.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_03[] = {
|
|
#include "textures/custom_font_title/custom_font_title_03.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_04[] = {
|
|
#include "textures/custom_font_title/custom_font_title_04.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_05[] = {
|
|
#include "textures/custom_font_title/custom_font_title_05.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_06[] = {
|
|
#include "textures/custom_font_title/custom_font_title_06.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_07[] = {
|
|
#include "textures/custom_font_title/custom_font_title_07.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_08[] = {
|
|
#include "textures/custom_font_title/custom_font_title_08.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_09[] = {
|
|
#include "textures/custom_font_title/custom_font_title_09.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_10[] = {
|
|
#include "textures/custom_font_title/custom_font_title_10.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_11[] = {
|
|
#include "textures/custom_font_title/custom_font_title_11.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_12[] = {
|
|
#include "textures/custom_font_title/custom_font_title_12.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_13[] = {
|
|
#include "textures/custom_font_title/custom_font_title_13.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_14[] = {
|
|
#include "textures/custom_font_title/custom_font_title_14.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_15[] = {
|
|
#include "textures/custom_font_title/custom_font_title_15.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_16[] = {
|
|
#include "textures/custom_font_title/custom_font_title_16.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_17[] = {
|
|
#include "textures/custom_font_title/custom_font_title_17.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_18[] = {
|
|
#include "textures/custom_font_title/custom_font_title_18.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_19[] = {
|
|
#include "textures/custom_font_title/custom_font_title_19.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_20[] = {
|
|
#include "textures/custom_font_title/custom_font_title_20.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_21[] = {
|
|
#include "textures/custom_font_title/custom_font_title_21.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_22[] = {
|
|
#include "textures/custom_font_title/custom_font_title_22.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_23[] = {
|
|
#include "textures/custom_font_title/custom_font_title_23.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_24[] = {
|
|
#include "textures/custom_font_title/custom_font_title_24.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_25[] = {
|
|
#include "textures/custom_font_title/custom_font_title_25.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_26[] = {
|
|
#include "textures/custom_font_title/custom_font_title_26.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_27[] = {
|
|
#include "textures/custom_font_title/custom_font_title_27.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_28[] = {
|
|
#include "textures/custom_font_title/custom_font_title_28.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_29[] = {
|
|
#include "textures/custom_font_title/custom_font_title_29.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_30[] = {
|
|
#include "textures/custom_font_title/custom_font_title_30.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_31[] = {
|
|
#include "textures/custom_font_title/custom_font_title_31.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_32[] = {
|
|
#include "textures/custom_font_title/custom_font_title_32.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_33[] = {
|
|
#include "textures/custom_font_title/custom_font_title_33.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_34[] = {
|
|
#include "textures/custom_font_title/custom_font_title_34.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_35[] = {
|
|
#include "textures/custom_font_title/custom_font_title_35.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_36[] = {
|
|
#include "textures/custom_font_title/custom_font_title_36.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_37[] = {
|
|
#include "textures/custom_font_title/custom_font_title_37.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_38[] = {
|
|
#include "textures/custom_font_title/custom_font_title_38.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_39[] = {
|
|
#include "textures/custom_font_title/custom_font_title_39.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_40[] = {
|
|
#include "textures/custom_font_title/custom_font_title_40.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_41[] = {
|
|
#include "textures/custom_font_title/custom_font_title_41.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_42[] = {
|
|
#include "textures/custom_font_title/custom_font_title_42.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_43[] = {
|
|
#include "textures/custom_font_title/custom_font_title_43.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_44[] = {
|
|
#include "textures/custom_font_title/custom_font_title_44.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_45[] = {
|
|
#include "textures/custom_font_title/custom_font_title_45.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_46[] = {
|
|
#include "textures/custom_font_title/custom_font_title_46.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_47[] = {
|
|
#include "textures/custom_font_title/custom_font_title_47.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_48[] = {
|
|
#include "textures/custom_font_title/custom_font_title_48.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_49[] = {
|
|
#include "textures/custom_font_title/custom_font_title_49.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_50[] = {
|
|
#include "textures/custom_font_title/custom_font_title_50.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_51[] = {
|
|
#include "textures/custom_font_title/custom_font_title_51.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_52[] = {
|
|
#include "textures/custom_font_title/custom_font_title_52.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_53[] = {
|
|
#include "textures/custom_font_title/custom_font_title_53.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_54[] = {
|
|
#include "textures/custom_font_title/custom_font_title_54.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_55[] = {
|
|
#include "textures/custom_font_title/custom_font_title_55.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_56[] = {
|
|
#include "textures/custom_font_title/custom_font_title_56.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_57[] = {
|
|
#include "textures/custom_font_title/custom_font_title_57.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_58[] = {
|
|
#include "textures/custom_font_title/custom_font_title_58.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_59[] = {
|
|
#include "textures/custom_font_title/custom_font_title_59.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_60[] = {
|
|
#include "textures/custom_font_title/custom_font_title_60.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_61[] = {
|
|
#include "textures/custom_font_title/custom_font_title_61.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_62[] = {
|
|
#include "textures/custom_font_title/custom_font_title_62.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_63[] = {
|
|
#include "textures/custom_font_title/custom_font_title_63.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_64[] = {
|
|
#include "textures/custom_font_title/custom_font_title_64.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_65[] = {
|
|
#include "textures/custom_font_title/custom_font_title_65.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_66[] = {
|
|
#include "textures/custom_font_title/custom_font_title_66.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_67[] = {
|
|
#include "textures/custom_font_title/custom_font_title_67.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_68[] = {
|
|
#include "textures/custom_font_title/custom_font_title_68.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_69[] = {
|
|
#include "textures/custom_font_title/custom_font_title_69.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_70[] = {
|
|
#include "textures/custom_font_title/custom_font_title_70.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_71[] = {
|
|
#include "textures/custom_font_title/custom_font_title_71.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_72[] = {
|
|
#include "textures/custom_font_title/custom_font_title_72.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_73[] = {
|
|
#include "textures/custom_font_title/custom_font_title_73.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_74[] = {
|
|
#include "textures/custom_font_title/custom_font_title_74.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_75[] = {
|
|
#include "textures/custom_font_title/custom_font_title_75.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_76[] = {
|
|
#include "textures/custom_font_title/custom_font_title_76.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_77[] = {
|
|
#include "textures/custom_font_title/custom_font_title_77.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_78[] = {
|
|
#include "textures/custom_font_title/custom_font_title_78.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_79[] = {
|
|
#include "textures/custom_font_title/custom_font_title_79.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_80[] = {
|
|
#include "textures/custom_font_title/custom_font_title_80.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_81[] = {
|
|
#include "textures/custom_font_title/custom_font_title_81.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_82[] = {
|
|
#include "textures/custom_font_title/custom_font_title_82.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_83[] = {
|
|
#include "textures/custom_font_title/custom_font_title_83.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_84[] = {
|
|
#include "textures/custom_font_title/custom_font_title_84.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_85[] = {
|
|
#include "textures/custom_font_title/custom_font_title_85.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_86[] = {
|
|
#include "textures/custom_font_title/custom_font_title_86.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_87[] = {
|
|
#include "textures/custom_font_title/custom_font_title_87.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_88[] = {
|
|
#include "textures/custom_font_title/custom_font_title_88.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_89[] = {
|
|
#include "textures/custom_font_title/custom_font_title_89.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_90[] = {
|
|
#include "textures/custom_font_title/custom_font_title_90.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_91[] = {
|
|
#include "textures/custom_font_title/custom_font_title_91.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_92[] = {
|
|
#include "textures/custom_font_title/custom_font_title_92.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_93[] = {
|
|
#include "textures/custom_font_title/custom_font_title_93.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_94[] = {
|
|
#include "textures/custom_font_title/custom_font_title_94.rgba32.inc.c"
|
|
};
|
|
|
|
ALIGNED8 static const u8 texture_font_title_char_95[] = {
|
|
#include "textures/custom_font_title/custom_font_title_95.rgba32.inc.c"
|
|
};
|
|
|
|
const u8 *const font_title_chars[] = {
|
|
texture_font_title_char_01,
|
|
texture_font_title_char_02,
|
|
texture_font_title_char_03,
|
|
texture_font_title_char_04,
|
|
texture_font_title_char_05,
|
|
texture_font_title_char_06,
|
|
texture_font_title_char_07,
|
|
texture_font_title_char_08,
|
|
texture_font_title_char_09,
|
|
texture_font_title_char_10,
|
|
texture_font_title_char_11,
|
|
texture_font_title_char_12,
|
|
texture_font_title_char_13,
|
|
texture_font_title_char_14,
|
|
texture_font_title_char_15,
|
|
texture_font_title_char_16,
|
|
texture_font_title_char_17,
|
|
texture_font_title_char_18,
|
|
texture_font_title_char_19,
|
|
texture_font_title_char_20,
|
|
texture_font_title_char_21,
|
|
texture_font_title_char_22,
|
|
texture_font_title_char_23,
|
|
texture_font_title_char_24,
|
|
texture_font_title_char_25,
|
|
texture_font_title_char_26,
|
|
texture_font_title_char_27,
|
|
texture_font_title_char_28,
|
|
texture_font_title_char_29,
|
|
texture_font_title_char_30,
|
|
texture_font_title_char_31,
|
|
texture_font_title_char_32,
|
|
texture_font_title_char_33,
|
|
texture_font_title_char_34,
|
|
texture_font_title_char_35,
|
|
texture_font_title_char_36,
|
|
texture_font_title_char_37,
|
|
texture_font_title_char_38,
|
|
texture_font_title_char_39,
|
|
texture_font_title_char_40,
|
|
texture_font_title_char_41,
|
|
texture_font_title_char_42,
|
|
texture_font_title_char_43,
|
|
texture_font_title_char_44,
|
|
texture_font_title_char_45,
|
|
texture_font_title_char_46,
|
|
texture_font_title_char_47,
|
|
texture_font_title_char_48,
|
|
texture_font_title_char_49,
|
|
texture_font_title_char_50,
|
|
texture_font_title_char_51,
|
|
texture_font_title_char_52,
|
|
texture_font_title_char_53,
|
|
texture_font_title_char_54,
|
|
texture_font_title_char_55,
|
|
texture_font_title_char_56,
|
|
texture_font_title_char_57,
|
|
texture_font_title_char_58,
|
|
texture_font_title_char_59,
|
|
texture_font_title_char_60,
|
|
texture_font_title_char_61,
|
|
texture_font_title_char_62,
|
|
texture_font_title_char_63,
|
|
texture_font_title_char_64,
|
|
texture_font_title_char_65,
|
|
texture_font_title_char_66,
|
|
texture_font_title_char_67,
|
|
texture_font_title_char_68,
|
|
texture_font_title_char_69,
|
|
texture_font_title_char_70,
|
|
texture_font_title_char_71,
|
|
texture_font_title_char_72,
|
|
texture_font_title_char_73,
|
|
texture_font_title_char_74,
|
|
texture_font_title_char_75,
|
|
texture_font_title_char_76,
|
|
texture_font_title_char_77,
|
|
texture_font_title_char_78,
|
|
texture_font_title_char_79,
|
|
texture_font_title_char_80,
|
|
texture_font_title_char_81,
|
|
texture_font_title_char_82,
|
|
texture_font_title_char_83,
|
|
texture_font_title_char_84,
|
|
texture_font_title_char_85,
|
|
texture_font_title_char_86,
|
|
texture_font_title_char_87,
|
|
texture_font_title_char_88,
|
|
texture_font_title_char_89,
|
|
texture_font_title_char_90,
|
|
texture_font_title_char_91,
|
|
texture_font_title_char_92,
|
|
texture_font_title_char_93,
|
|
texture_font_title_char_94,
|
|
texture_font_title_char_95,
|
|
};
|