Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
5e20a62
djui_hud_set_color_interpolated
Cooliokid956 Mar 14, 2026
f4d681b
a bit of cleaning here and there
Cooliokid956 Mar 17, 2026
01d5a0b
djui color combiner functions, work start
Cooliokid956 Mar 26, 2026
5e3f0ee
djui hud set combiner progress!
Cooliokid956 Mar 30, 2026
34aebb6
more work!
Cooliokid956 Mar 30, 2026
c7a2756
a few more bits
Cooliokid956 Mar 30, 2026
4a23809
It works?!
Cooliokid956 Mar 31, 2026
9ebf160
color/alpha bool
Cooliokid956 Mar 31, 2026
fe6ba63
no longer needed
Cooliokid956 Apr 1, 2026
2cae237
this might be right
Cooliokid956 Apr 7, 2026
255c946
:p
Cooliokid956 Apr 8, 2026
fcde636
publish work
Cooliokid956 Apr 7, 2026
12fd51c
back to basics; finding out some things
Cooliokid956 Apr 7, 2026
3db4131
another checkpoint
Cooliokid956 Apr 8, 2026
42b2c68
let's do it this way
Cooliokid956 Apr 8, 2026
99d19e5
no more leakage
Cooliokid956 Apr 9, 2026
b26d4e7
Let's make life easier (WIP)
Cooliokid956 Apr 9, 2026
b8b4030
major change
Cooliokid956 Apr 9, 2026
afbce59
fix rotation pivot
Cooliokid956 Apr 10, 2026
8723cd6
a whole lot of work
Cooliokid956 Apr 10, 2026
fee021a
pre progress
Cooliokid956 Apr 13, 2026
e09b230
Mostly fixed
Cooliokid956 Apr 14, 2026
437bb2e
Fix crash handler + attempt fix
Cooliokid956 Apr 15, 2026
77175ec
Give the matrix stack some space to do its thing
Cooliokid956 Apr 15, 2026
b303001
quick convention fixes
Cooliokid956 Apr 16, 2026
728381f
quick thing
Cooliokid956 Apr 16, 2026
b1b3685
This could change everything??
Cooliokid956 May 2, 2026
330f18f
Merge remote-tracking branch 'upstream/dev' into transform
Cooliokid956 May 2, 2026
0a0e2d1
Merge remote-tracking branch 'upstream/dev' into transform
Cooliokid956 May 2, 2026
721314d
Merge remote-tracking branch 'upstream/dev' into transform
Cooliokid956 May 18, 2026
236183a
address only this part for now
Cooliokid956 May 18, 2026
50a19b4
Merge remote-tracking branch 'upstream/dev' into transform
Cooliokid956 Jul 9, 2026
96802e9
AutoGn
Cooliokid956 Jul 9, 2026
b708b59
Merge remote-tracking branch 'upstream/dev' into transform
Cooliokid956 Jul 10, 2026
c50f640
Fix build
Cooliokid956 Jul 11, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions autogen/exposed_lists.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"include/PR/gbi.h",
"include/PR/gbi_extension.h",
"src/pc/gfx/gfx_pc.h",
"src/pc/djui/djui_gfx.h",
"src/engine/surface_load.h",
"src/pc/lua/utils/smlua_audio_utils.h",
]
Expand Down Expand Up @@ -117,6 +118,7 @@
"src/pc/lua/smlua_hooks.h": [ "^LUA_BEHAVIOR_.*", "MAX_HOOKED_.*", "^HOOK_RETURN_.*", "^ACTION_HOOK_.*", "^MOD_MENU_ELEMENT_.*" ],
"src/pc/djui/djui_panel_menu.h": [ "RAINBOW_TEXT_LEN" ],
"src/pc/mods/mod_fs.h": [ "INT_TYPE_MAX", "FLOAT_TYPE_MAX", "FILE_SEEK_MAX" ],
"src/pc/djui/djui_gfx.h": [ "MTX_" ],
"src/engine/surface_load.h": [ "NUM_CELLS" ],
"src/pc/network/version.h": [ "VERSION_OFFSET" ],
}
Expand Down
27 changes: 27 additions & 0 deletions autogen/lua_definitions/constants.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2753,6 +2753,33 @@ CONSOLE_MESSAGE_ERROR = 2 --- @type ConsoleMessageLevel
--- | `CONSOLE_MESSAGE_WARNING`
--- | `CONSOLE_MESSAGE_ERROR`

CS_KEEP = -1 --- @type CombinerSource
CS_0 = 0 --- @type CombinerSource
CS_1 = 1 --- @type CombinerSource
CS_TEXTURE = 2 --- @type CombinerSource
CS_COLOR = 3 --- @type CombinerSource
CS_TEXT = 4 --- @type CombinerSource
CS_COMBINED = 5 --- @type CombinerSource
CS_NOISE = 6 --- @type CombinerSource
CS_TEXTURE_ALPHA = 7 --- @type CombinerSource
CS_COLOR_ALPHA = 8 --- @type CombinerSource
CS_TEXT_ALPHA = 9 --- @type CombinerSource
CS_COMBINED_ALPHA = 10 --- @type CombinerSource

--- @alias CombinerSource
--- | `CS_KEEP`
--- | `CS_0`
--- | `CS_1`
--- | `CS_TEXTURE`
--- | `CS_COLOR`
--- | `CS_TEXT`
--- | `CS_COMBINED`
--- | `CS_NOISE`
--- | `CS_TEXTURE_ALPHA`
--- | `CS_COLOR_ALPHA`
--- | `CS_TEXT_ALPHA`
--- | `CS_COMBINED_ALPHA`

--- @type number
ROTATION_PIVOT_X_LEFT = 0.0

Expand Down
73 changes: 71 additions & 2 deletions autogen/lua_definitions/functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3980,6 +3980,19 @@ function djui_hud_set_color(r, g, b, a)
-- ...
end

--- @param prevR integer
--- @param prevG integer
--- @param prevB integer
--- @param prevA integer
--- @param r integer
--- @param g integer
--- @param b integer
--- @param a integer
--- Sets the current DJUI HUD global color interpolated
function djui_hud_set_color_interpolated(prevR, prevG, prevB, prevA, r, g, b, a)
-- ...
end

--- Resets the current DJUI HUD global color
function djui_hud_reset_color()
-- ...
Expand All @@ -4005,6 +4018,30 @@ function djui_hud_reset_text_color()
-- ...
end

--- @param cycles integer
--- Sets the number of cycles used by the combiner
function djui_hud_set_combiner_cycles(cycles)
-- ...
end

--- @param cycle integer
--- @param alpha boolean
--- @param a? CombinerSource
--- @param b? CombinerSource
--- @param c? CombinerSource
--- @param d? CombinerSource
--- Sets the current DJUI HUD combiner.<br>
--- Each part uses the following equation: `P = (A - B) * C + D`.<br>
--- Cycle 2 may be used to extend the equation, with the result of the previous cycle accessible through CS_COMBINED
function djui_hud_set_combiner(cycle, alpha, a, b, c, d)
-- ...
end

--- Resets the current DJUI HUD combiner
function djui_hud_reset_combiner()
-- ...
end

--- @return integer rotation
--- @return number pivotX
--- @return number pivotY
Expand All @@ -4014,8 +4051,8 @@ function djui_hud_get_rotation()
end

--- @param rotation integer
--- @param pivotX number
--- @param pivotY number
--- @param pivotX? number
--- @param pivotY? number
--- Sets the current DJUI HUD rotation
function djui_hud_set_rotation(rotation, pivotX, pivotY)
-- ...
Expand Down Expand Up @@ -4161,6 +4198,38 @@ function djui_hud_reset_scissor()
-- ...
end

--- @param x number
--- @param y number
--- @param scaleX number
--- @param scaleY number
--- Applies a transformation (translate, rotate, scale) to subsequent DJUI HUD elements until closed
function djui_hud_transform(x, y, scaleX, scaleY)
-- ...
end

--- @param prevX number
--- @param prevY number
--- @param prevScaleX number
--- @param prevScaleY number
--- @param x number
--- @param y number
--- @param scaleX number
--- @param scaleY number
--- Applies an interpolated transformation (translate, rotate, scale) to subsequent DJUI HUD elements until closed
function djui_hud_transform_interpolated(prevX, prevY, prevScaleX, prevScaleY, x, y, scaleX, scaleY)
-- ...
end

--- Closes the previous transformation
function djui_hud_close_transform()
-- ...
end

--- Resets the transformation to a fullscreen state
function djui_hud_reset_transform()
-- ...
end

--- @param message string
--- @return number width
--- @return number height
Expand Down
24 changes: 24 additions & 0 deletions docs/lua/constants.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
- [enum DialogId](#enum-DialogId)
- [djui_console.h](#djui_consoleh)
- [enum ConsoleMessageLevel](#enum-ConsoleMessageLevel)
- [djui_gfx.h](#djui_gfxh)
- [enum CombinerSource](#enum-CombinerSource)
- [djui_hud_utils.h](#djui_hud_utilsh)
- [enum HudUtilsResolution](#enum-HudUtilsResolution)
- [enum HudUtilsFilter](#enum-HudUtilsFilter)
Expand Down Expand Up @@ -1193,6 +1195,28 @@

<br />

## [djui_gfx.h](#djui_gfx.h)

### [enum CombinerSource](#CombinerSource)
| Identifier | Value |
| :--------- | :---- |
| CS_KEEP | -1 |
| CS_0 | 0 |
| CS_1 | 1 |
| CS_TEXTURE | 2 |
| CS_COLOR | 3 |
| CS_TEXT | 4 |
| CS_COMBINED | 5 |
| CS_NOISE | 6 |
| CS_TEXTURE_ALPHA | 7 |
| CS_COLOR_ALPHA | 8 |
| CS_TEXT_ALPHA | 9 |
| CS_COMBINED_ALPHA | 10 |

[:arrow_up_small:](#)

<br />

## [djui_hud_utils.h](#djui_hud_utils.h)
- ROTATION_PIVOT_X_LEFT
- ROTATION_PIVOT_X_CENTER
Expand Down
Loading