sm64coopdx/docs/lua
Beckowl 03b29489b1
Some checks failed
Build coop / build-linux (push) Has been cancelled
Build coop / build-steamos (push) Has been cancelled
Build coop / build-windows-opengl (push) Has been cancelled
Build coop / build-windows-directx (push) Has been cancelled
Build coop / build-macos-arm (push) Has been cancelled
Build coop / build-macos-intel (push) Has been cancelled
Add `smlua_text_utils_allocate_dialog` (#896)
* wip

* get rid of seg2_dialog_table and fix crashes

* remove unused include

* change more types to s32

* remove dialog tables from eu_translation.h

* fix dialog_table_get signature

* Change `oToadMessageDialogId` to s32

* remove exit from dialog_table_add

* warning

* calloc allocated dialogs

* avoid memcpy on allocation fail

* Move dialog entry text field init to dialog_table_init

* Free original dialog entries' text field

* Put all reset logic in one place

* Run autogen

* Remove ``get_dialog_text_ascii`` from autogen

* minor fix

* free dialog->str if replaced

* nevermind

* remove get_dialog_unmodified from autogen

* Change -1 to DIALOG_NONE

* update stuff to s32

* use growing array functions

* Change limit to something more reasonable

* add null check

* remove explicit cast

* Minor fixes

* more type fix

* peachy review

* Fix weird enums in autogen

* remove extra newline :p

* add dialog restore

* bump max dialogs just a lil bit 🥺

* add lua behavior params

* all OBJECT fields are now Lua variables

* Revert lua behavior params changes

* isaac review

* fix segfault

---------

Co-authored-by: PeachyPeachSM64 <72323920+PeachyPeachSM64@users.noreply.github.com>
2025-08-03 17:49:45 +02:00
..
examples Add bytestring packets for mods to use (#866) 2025-06-30 11:24:39 +10:00
guides Lighting engine full documentation and more improvements 2025-07-01 13:41:28 -04:00
constants.md Add `smlua_text_utils_allocate_dialog` (#896) 2025-08-03 17:49:45 +02:00
functions-2.md Speed up lighting engine by 80% 2025-07-17 15:41:06 -04:00
functions-3.md Add `smlua_text_utils_allocate_dialog` (#896) 2025-08-03 17:49:45 +02:00
functions-4.md Lighting engine improvements (#870) 2025-06-29 17:46:35 +02:00
functions-5.md Mod file system (#850) 2025-07-01 01:53:47 +02:00
functions-6.md Add `smlua_text_utils_allocate_dialog` (#896) 2025-08-03 17:49:45 +02:00
functions.md Add `smlua_text_utils_allocate_dialog` (#896) 2025-08-03 17:49:45 +02:00
globals.md Final touches for geo hooks (#588) 2024-12-28 08:44:36 -05:00
lua.md Add bytestring packets for mods to use (#866) 2025-06-30 11:24:39 +10:00
structs.md Add `smlua_text_utils_allocate_dialog` (#896) 2025-08-03 17:49:45 +02:00