sm64ex-coop/actors
TheGag96 a1bcd19529 Arbitrary shirt, pants, glove colors + settings menu (#145)
* Support for more granular player colors

You can now configure RGB values for shirt, pants, gloves, and shoes.
Due to some limitations, configuring shoes does nothing at the moment.

* Remove paletteIndex and friends

Restructured and filled in some remaining code to account for that.

* Add Edit Palette panel to Player panel

* Change PlayerPalette contents to an enum-indexed array, remove shoes

This gets rid of all the hokey code doing switch cases on the
different parts.

* Fix goof with player model selection box

Should actually have affect now even if a custom palette is being used.

* Fix gap in player color display list commands

The extra space was leftover from when I was trying to get shoes
working. Forgot to clean it up.

* Standardize PlayerParts enum, including for lua constants autogen

* djui_panel_player.c: Properly hook sending palette changes on unpause

Editing the palette and then unpausing should send out the packet to
everyone with the new palette changes (and update the palette preset
selection box), but since we weren't hooking that situation before, it
would stay changed only for you. You would have had to press the Back
button for it to work right.

* Allow Lua mods to continue using `paletteIndex`, `overridePaletteIndex`

This lets mod code like this still work unchanged:

if s.team == 2 then
    np.overridePaletteIndex = 7
elseif s.team == 1 then
    np.overridePaletteIndex = 15
else
    np.overridePaletteIndex = np.paletteIndex
end

It's essentially faked, and would work strangely if the value of either
variable was inspected more closely directly. This should at least
handle the typical use case, though.

Every frame, `overridePaletteIndex` is checked to see if it was modified
from its previous value. If so, `overridePalette` is set to the preset
corresponding to the index. `paletteIndex` contains a special value that
when used to assign to `overridePaletteIndex`, it copies `palette` into
`overridePalette` to restore the real colors, which of course may not
follow the presets at all.

* characters.h: Pack `PlayerPalette` to eliminate size differences between computers

* mario_misc.c: Remove remaining "TODO GAG"
2022-08-07 15:13:19 -07:00
..
amp Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
bird refresh 4 2019-12-01 21:52:53 -05:00
blargg refresh 4 2019-12-01 21:52:53 -05:00
blue_coin_switch Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
blue_fish Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
bobomb Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
bomb Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
boo Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
boo_castle Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
book Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
bookend Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
bowling_ball Refresh 3 2019-11-03 14:36:27 -05:00
bowser Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
bowser_flame Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
bowser_key Refresh 7 2020-03-01 22:42:52 -05:00
breakable_box Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
bub Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
bubba Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
bubble Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
bullet_bill Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
bully Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
burn_smoke Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
butterfly Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
cannon_barrel Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
cannon_base Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
cannon_lid Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
capswitch Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
chain_ball Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
chain_chomp Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
chair Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
checkerboard_platform Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
chillychief Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
chuckya Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
clam_shell Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
coin Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
cyan_fish Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
dirt Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
door Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
dorrie Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
error_model Load Super Keeberghrh's ERROR model when DynOS can't find the model 2022-03-16 01:34:18 -07:00
exclamation_box Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
exclamation_box_outline Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
explosion Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
eyerok Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
flame Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
flyguy Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
fwoosh Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
goomba Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
haunted_cage Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
heart Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
heave_ho Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
hoot Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
impact_ring Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
impact_smoke Add support for custom HUD textures and faster texture packs w/o EXTERNAL_DATA 2022-05-06 22:03:12 -07:00
king_bobomb Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
klepto Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
koopa Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
koopa_flag Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
koopa_shell Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
lakitu_cameraman Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
lakitu_enemy Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
leaves Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
luigi Arbitrary shirt, pants, glove colors + settings menu (#145) 2022-08-07 15:13:19 -07:00
luigi_cap Add support for custom HUD textures and faster texture packs w/o EXTERNAL_DATA 2022-05-06 22:03:12 -07:00
mad_piano Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
manta Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
mario Arbitrary shirt, pants, glove colors + settings menu (#145) 2022-08-07 15:13:19 -07:00
mario_cap Add support for custom HUD textures and faster texture packs w/o EXTERNAL_DATA 2022-05-06 22:03:12 -07:00
metal_box Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
mips Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
mist Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
moneybag Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
monty_mole Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
monty_mole_hole Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
mr_i_eyeball Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
mr_i_iris Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
mushroom_1up Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
number Fix clang/mac compile 2022-05-19 19:42:07 -07:00
peach Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
pebble Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
penguin Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
piranha_plant Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
pokey Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
poundable_pole Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
power_meter Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
purple_switch Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
sand Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
scuttlebug Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
seaweed Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
skeeter Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
small_key refresh 4 2019-12-01 21:52:53 -05:00
smoke Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
snowman Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
snufit Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
sparkle Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
sparkle_animation Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
spindrift Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
spiny Update to Refresh 13 (#19) 2022-03-13 00:17:10 -08:00
spiny_egg Update to Refresh 13 (#19) 2022-03-13 00:17:10 -08:00
springboard Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
star Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
stomp_smoke Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
sushi Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
swoop Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
test_platform Update to Refresh 13 (#19) 2022-03-13 00:17:10 -08:00
thwomp Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
toad Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
toad_cap Added toad player character 2021-08-18 22:55:31 -07:00
toad_player Arbitrary shirt, pants, glove colors + settings menu (#145) 2022-08-07 15:13:19 -07:00
tornado Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
transparent_star refresh 4 2019-12-01 21:52:53 -05:00
treasure_chest Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
tree Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
ukiki Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
unagi Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
walk_smoke Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
waluigi Arbitrary shirt, pants, glove colors + settings menu (#145) 2022-08-07 15:13:19 -07:00
waluigi_cap Add support for custom HUD textures and faster texture packs w/o EXTERNAL_DATA 2022-05-06 22:03:12 -07:00
wario Arbitrary shirt, pants, glove colors + settings menu (#145) 2022-08-07 15:13:19 -07:00
wario_cap Add support for custom HUD textures and faster texture packs w/o EXTERNAL_DATA 2022-05-06 22:03:12 -07:00
warp_collision merge refresh 10 2020-06-20 02:49:59 +03:00
warp_pipe Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
water_bubble Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
water_mine Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
water_ring Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
water_splash Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
water_wave Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
whirlpool Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
white_particle Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
white_particle_small Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
whomp Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
wiggler_body Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
wiggler_head refresh 4 2019-12-01 21:52:53 -05:00
wooden_signpost Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
yellow_sphere Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
yellow_sphere_small Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
yoshi Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
yoshi_egg Added actor textures to dynos builtin list; added shadow_spike_ext 2022-04-13 19:13:25 -07:00
common0.c Update to Refresh 13 (#19) 2022-03-13 00:17:10 -08:00
common0.h merge refresh 10 2020-06-20 02:49:59 +03:00
common0_geo.c Refresh 3 2019-11-03 14:36:27 -05:00
common1.c Update to Refresh 13 (#19) 2022-03-13 00:17:10 -08:00
common1.h Split luigi/custom character models into custom and zcustom 2021-08-15 01:06:25 -07:00
common1_geo.c Split luigi/custom character models into custom and zcustom 2021-08-15 01:06:25 -07:00
custom0.c Load Super Keeberghrh's ERROR model when DynOS can't find the model 2022-03-16 01:34:18 -07:00
custom0.h Load Super Keeberghrh's ERROR model when DynOS can't find the model 2022-03-16 01:34:18 -07:00
custom0_geo.c Load Super Keeberghrh's ERROR model when DynOS can't find the model 2022-03-16 01:34:18 -07:00
group0.c Split luigi/custom character models into custom and zcustom 2021-08-15 01:06:25 -07:00
group0.h Split luigi/custom character models into custom and zcustom 2021-08-15 01:06:25 -07:00
group0_geo.c Split luigi/custom character models into custom and zcustom 2021-08-15 01:06:25 -07:00
group1.c Update to Refresh 13 (#19) 2022-03-13 00:17:10 -08:00
group1.h merge refresh 10 2020-06-20 02:49:59 +03:00
group1_geo.c Refresh 3 2019-11-03 14:36:27 -05:00
group2.c Update to Refresh 13 (#19) 2022-03-13 00:17:10 -08:00
group2.h Refresh 3 2019-11-03 14:36:27 -05:00
group2_geo.c Refresh 3 2019-11-03 14:36:27 -05:00
group3.c Update to Refresh 13 (#19) 2022-03-13 00:17:10 -08:00
group3.h Refresh 3 2019-11-03 14:36:27 -05:00
group3_geo.c Refresh 3 2019-11-03 14:36:27 -05:00
group4.c Update to Refresh 13 (#19) 2022-03-13 00:17:10 -08:00
group4.h Refresh 3 2019-11-03 14:36:27 -05:00
group4_geo.c Refresh 3 2019-11-03 14:36:27 -05:00
group5.c Update to Refresh 13 (#19) 2022-03-13 00:17:10 -08:00
group5.h refresh 6 2020-02-03 00:51:26 -05:00
group5_geo.c Split luigi/custom character models into custom and zcustom 2021-08-15 01:06:25 -07:00
group6.c Update to Refresh 13 (#19) 2022-03-13 00:17:10 -08:00
group6.h Refresh 3 2019-11-03 14:36:27 -05:00
group6_geo.c Split luigi/custom character models into custom and zcustom 2021-08-15 01:06:25 -07:00
group7.c Update to Refresh 13 (#19) 2022-03-13 00:17:10 -08:00
group7.h merge refresh 10 2020-06-20 02:49:59 +03:00
group7_geo.c Refresh 3 2019-11-03 14:36:27 -05:00
group8.c Update to Refresh 13 (#19) 2022-03-13 00:17:10 -08:00
group8.h merge refresh 10 2020-06-20 02:49:59 +03:00
group8_geo.c Refresh 3 2019-11-03 14:36:27 -05:00
group9.c Update to Refresh 13 (#19) 2022-03-13 00:17:10 -08:00
group9.h Refresh 3 2019-11-03 14:36:27 -05:00
group9_geo.c Refresh 3 2019-11-03 14:36:27 -05:00
group10.c Update to Refresh 13 (#19) 2022-03-13 00:17:10 -08:00
group10.h Refresh 3 2019-11-03 14:36:27 -05:00
group10_geo.c Refresh 3 2019-11-03 14:36:27 -05:00
group11.c Update to Refresh 13 (#19) 2022-03-13 00:17:10 -08:00
group11.h Refresh 3 2019-11-03 14:36:27 -05:00
group11_geo.c Refresh 3 2019-11-03 14:36:27 -05:00
group12.c Update to Refresh 13 (#19) 2022-03-13 00:17:10 -08:00
group12.h Refresh 3 2019-11-03 14:36:27 -05:00
group12_geo.c Refresh 3 2019-11-03 14:36:27 -05:00
group13.c Update to Refresh 13 (#19) 2022-03-13 00:17:10 -08:00
group13.h Refresh 3 2019-11-03 14:36:27 -05:00
group13_geo.c Refresh 3 2019-11-03 14:36:27 -05:00
group14.c Update to Refresh 13 (#19) 2022-03-13 00:17:10 -08:00
group14.h merge refresh 10 2020-06-20 02:49:59 +03:00
group14_geo.c Refresh 3 2019-11-03 14:36:27 -05:00
group15.c Update to Refresh 13 (#19) 2022-03-13 00:17:10 -08:00
group15.h Refresh 3 2019-11-03 14:36:27 -05:00
group15_geo.c Refresh 3 2019-11-03 14:36:27 -05:00
group16.c Update to Refresh 13 (#19) 2022-03-13 00:17:10 -08:00
group16.h Refresh 3 2019-11-03 14:36:27 -05:00
group16_geo.c Refresh 3 2019-11-03 14:36:27 -05:00
group17.c Update to Refresh 13 (#19) 2022-03-13 00:17:10 -08:00
group17.h merge refresh 10 2020-06-20 02:49:59 +03:00
group17_geo.c Refresh 3 2019-11-03 14:36:27 -05:00
zcustom0.c Added FluffaLuigi's Wario model 2022-02-13 21:52:35 -08:00
zcustom0.h Added FluffaLuigi's Wario model 2022-02-13 21:52:35 -08:00
zcustom0_geo.c Added FluffaLuigi's Wario model 2022-02-13 21:52:35 -08:00