Commit Graph

2558 Commits

Author SHA1 Message Date
Briggs Baltzell 153ee490bf Rename ambiguous field members to padding in d_menu_cloth and update struct size. 2026-03-09 17:44:31 -05:00
Briggs Baltzell 8aa7121964 Add STATIC_ASSERT checks for struct size validation in d_menu_cloth. 2026-03-09 17:33:25 -05:00
Briggs Baltzell 0073467680 Normalize hex color and value formatting in d_menu_cloth. 2026-03-09 09:33:14 -05:00
Briggs Baltzell cc6ae6bdd1 Use version-specific scale values for MENU_CLOTH_TYPE_DEFAULT in d_menu_cloth. 2026-03-09 09:27:29 -05:00
Briggs Baltzell 341b0bf80b Add dummy functions to ensure correct float order in d_menu_cloth. 2026-03-09 09:14:35 -05:00
Briggs Baltzell ce493ca7e3 Adjust plot_shadow parameters in d_menu_cloth for consistent shadow scaling. 2026-03-08 18:36:52 -05:00
Briggs Baltzell 296fea9e2c Match d_menu_cloth for specific regions: GZLJ01, GZLE01, GZLP01. 2026-03-07 19:30:39 -06:00
Briggs Baltzell 49512d77ca Add TODO note to identify superclass for correct size in menu_cloth_class. 2026-03-07 19:28:17 -06:00
Briggs Baltzell 9c35aaf747 Match draw for JP version 2026-03-07 19:18:09 -06:00
Briggs Baltzell 5aa20508c5 Match init for JP version 2026-03-07 19:16:38 -06:00
Briggs Baltzell 1181a6652c Match cloth_init for JP version 2026-03-07 19:15:27 -06:00
Briggs Baltzell 9b4778fae7 Update vertex attribute formats and streamline vertex function calls in d_cloth_packet. 2026-03-07 19:03:24 -06:00
Briggs Baltzell 8a9805e074 Match plot and plot_shadow in demo build. 2026-03-07 18:44:22 -06:00
Briggs Baltzell b64d4e28ba Inline empty destructor for daCLOTH_HIO_c in d_menu_cloth to simplify code. 2026-03-07 18:39:03 -06:00
Briggs Baltzell 1284002cc7 Refactor lightDistance variable in d_menu_cloth for improved clarity. 2026-03-07 18:25:10 -06:00
Briggs Baltzell a8d9627bbb Match plot and plot_shadow. 2026-03-07 18:18:52 -06:00
Briggs Baltzell b529c780a6 Inline vertex index calculations in d_menu_cloth to simplify code and reduce redundant variables. 2026-03-07 18:05:28 -06:00
Briggs Baltzell e776cf7b24 Refactor variable names in alpha calculation for improved clarity in d_menu_cloth. 2026-03-07 17:56:57 -06:00
Briggs Baltzell 8c1d90f7e8 Refactor loop variable initialization in d_menu_cloth for improved clarity. 2026-03-07 17:46:49 -06:00
Briggs Baltzell 872ad7fdb1 Match cloth_move_sin and cloth_move_simple. 2026-03-07 17:43:49 -06:00
Briggs Baltzell 9c18c6685a Remove demo version-specific mipmap handling logic in d_menu_cloth initialization. 2026-03-07 17:34:27 -06:00
Briggs Baltzell 2f276439a0 Add demo version-specific mipmap handling logic in d_menu_cloth initialization. 2026-03-06 19:56:29 -06:00
Briggs Baltzell 883cca8b06 Change waveFreqX and waveFreqY types from u16 to s16 in d_menu_cloth structure for consistency. 2026-03-05 14:36:54 -06:00
Briggs Baltzell e49a9b6801 Refactor position array access in d_menu_cloth to use getPos() result for better clarity and maintainability. 2026-03-05 14:34:58 -06:00
Briggs Baltzell ff4e8d50cb Add temporary dummy0 function in d_menu_window for placeholder debug strings. 2026-03-05 14:01:45 -06:00
Briggs Baltzell 34c32cd7d7 Refactor mColor1/mColor2 to mClothColor/mShadowColor for improved clarity in d_menu_cloth and update all related logic. 2026-03-05 13:42:04 -06:00
Briggs Baltzell d86fbdbbbd Simplify alpha blending logic by removing redundant variables in d_menu_cloth. 2026-03-05 13:38:34 -06:00
Briggs Baltzell 3f1556b681 Refactor color1 and color2 fields to clothColor and shadowColor for improved clarity in d_menu_cloth structure and related logic. 2026-03-05 13:33:50 -06:00
Briggs Baltzell ff51b74645 Refactor mChildren array indexing in daCLOTH_HIO_c constructor to use MENU_CLOTH_TYPE constants for improved readability and maintainability. 2026-03-05 13:31:56 -06:00
Briggs Baltzell 01958fe322 Refactor MENU_CLOTH_TYPE enum names for clarity and update all references across d_menu_cloth, d_s_name, and d_menu_window. 2026-03-05 13:18:09 -06:00
Briggs Baltzell 0144c32c53 Replace hardcoded cloth type with MENU_CLOTH_TYPE_2 constant in d_menu_window. 2026-03-05 13:04:01 -06:00
Briggs Baltzell 4f6c6eba4b Implement dMs_cloth_create and dMs_cloth_delete functions in d_menu_window and update related structure definitions. 2026-03-05 13:03:01 -06:00
Briggs Baltzell ddf57fdd63 Add dMs_clothOnly_create and dMs_clothOnly_delete implementations in d_menu_window 2026-03-05 13:03:00 -06:00
Briggs Baltzell 1820779222 Update vertex format in d_menu_cloth to use GXPosition1x16 and GXNormal1x16 for improved attribute handling. 2026-03-05 12:53:39 -06:00
Briggs Baltzell 9d76f1decd Add GXNormal1x16 and GXColor3x8 inline utility functions to GX.h for simplified normal and color input handling. 2026-03-05 12:53:10 -06:00
Briggs Baltzell 0dde5978e0 Refactor vertex handling in d_menu_cloth to group vertex and texture operations for improved readability and structure. 2026-03-05 12:35:45 -06:00
Briggs Baltzell 156149f947 Refactor vertex and texture coordinate handling in dMCloth_c::plot_shadow for improved clarity and correctness. 2026-03-05 12:28:08 -06:00
Briggs Baltzell 98af1f807f Refactor triangle strip generation in d_menu_cloth for improved readability and maintainability. 2026-03-05 12:16:17 -06:00
Briggs Baltzell 3ff385ffb6 Add inline utility function GXColor4x8 to GX.h for streamlined color input handling 2026-03-05 12:14:18 -06:00
Briggs Baltzell 09a8c046a6 Update vertex attribute formats in d_menu_cloth for improved correctness. 2026-03-05 00:36:13 -06:00
Briggs Baltzell e0156f17b9 Fix INNER_SIZE iteration in d_menu_cloth to properly handle loop bounds. 2026-03-05 00:00:43 -06:00
Briggs Baltzell add12a1e3c Match cloth_init in d_menu_cloth 2026-03-04 23:57:53 -06:00
Briggs Baltzell a74af799e5 Change mWaveProgress type from u16 to s16 in d_menu_cloth for consistency with signed calculations. 2026-03-04 17:11:19 -06:00
Briggs Baltzell 8834e7314d Replace hardcoded angle conversion with cM_deg2s in MENU_CLOTH_TYPE_0 logic for improved clarity and maintainability. 2026-03-04 17:07:49 -06:00
Briggs Baltzell b07c7e690e Change wavePreSteps type from u16 to s16 in d_menu_cloth for alignment with signed calculations. 2026-03-04 17:05:31 -06:00
Briggs Baltzell ac76b6e26d Refactor MENU_CLOTH_TYPE_2 logic: replace hardcoded rotation calculation with cM_deg2s for clarity and maintainability. 2026-03-04 17:04:10 -06:00
Briggs Baltzell b5240d4bdb Refactor dMCloth_c::cloth_init: replace raw pointer arithmetic with set calls for improved clarity and maintainability. 2026-03-04 16:58:11 -06:00
Briggs Baltzell d90d9b218d Merge branch 'main' into menu_cloth 2026-03-04 16:23:51 -06:00
LagoLunatic 256b4eeb37 Fix some clangd errors 2026-03-04 13:47:40 -05:00
Zeclos dcf4862387 D_a_npc_tc matching for retail (#930)
* progress

* code matching non-demo

* cleanup for d_a_npc_tc and d_a_obj_smplbg
2026-03-04 13:25:59 -05:00