Commit graph

15122 commits

Author SHA1 Message Date
Lactozilla
6893601fd5 Fix P_DialogPreprocessOpcode not advancing pointer 2024-01-18 00:08:40 -03:00
Lactozilla
d710ec1b39 Add 'SUPERNAME' command 2024-01-18 00:08:28 -03:00
Lactozilla
b9f596c50f Make 'COLOR' command parameter optional 2024-01-17 23:59:30 -03:00
Lactozilla
00a09c473e Ensure the text writer doesn't advance multiple characters after a WAIT command 2024-01-17 23:56:56 -03:00
Lactozilla
991557c66e Add 'player.promptactive' to Lua 2024-01-17 23:52:37 -03:00
Lactozilla
b02ca69612 Only animate the chevron if viewing a player that has a text prompt active 2024-01-17 23:49:00 -03:00
Lactozilla
999a8efb4d Serialize new dialog state fields 2024-01-17 23:43:54 -03:00
Lactozilla
f4171126fa Fix TRNSLATE parser 2024-01-17 23:25:06 -03:00
Lactozilla
e8768bd2ad Fix build warning 2024-01-17 23:17:35 -03:00
Lactozilla
f24cf804f4 Merge branch 'next' into text-prompt-features 2024-01-17 23:17:22 -03:00
Lactozilla
3fb0adb63e Rearrange some code 2024-01-17 23:11:45 -03:00
Lactozilla
01838fd4d4 Move some code out of usdf.c into p_dialogscript.c 2024-01-17 23:07:49 -03:00
Lactozilla
10cbeac9f6 Add 'WAIT' command 2024-01-17 22:58:36 -03:00
Lactozilla
7a38d65137 Check if the conversation icon is a valid patch 2024-01-17 22:43:05 -03:00
Lactozilla
043383fe5f Remove texture name detection for conversation icons 2024-01-17 22:33:38 -03:00
Logan Aerl Arias
3176abe2e4 Merge branch 'cv-can-change' into 'next'
Add can_change for console variables

See merge request STJr/SRB2!2196
2024-01-17 03:39:39 +00:00
Logan Aerl Arias
a3b79056e9 Merge branch 'translations' into 'next'
ZDoom translations

See merge request STJr/SRB2!2190
2024-01-17 03:24:54 +00:00
Lactozilla
9ac88031e1 Add 'Invert' translation 2024-01-16 20:36:31 -03:00
Lactozilla
f8d75ee077 Refactor 2024-01-16 20:35:30 -03:00
Lactozilla
2019e7df18 Throw warning on invalid translations 2024-01-16 20:17:01 -03:00
Logan Aerl Arias
c5bf6d07ed Merge branch 'fix-ipv6-bans-blocking-ipv4' into 'next'
Fix IPv6 bans incorrectly banning IPv4 address

See merge request STJr/SRB2!2265
2024-01-14 20:29:33 +00:00
Hanicef
4eb514ce71 Fix IPv6 bans incorrectly banning IPv4 address 2024-01-14 19:20:25 +01:00
Lactozilla
d77e346bd6 Run this block of code earlier 2024-01-13 23:53:20 -03:00
Lactozilla
d6ae1fcd31 Changes:
Added support for using textures as conversation icons
Implemented V_DrawTexture
Misc. cleanup
2024-01-13 23:46:50 -03:00
Lactozilla
474f94ef25 Fix escaping of '{' 2024-01-13 19:45:45 -03:00
Lactozilla
2f56d1ee3f Fix a typo 2024-01-13 19:38:37 -03:00
Lactozilla
fb4a4920ea Move this macro 2024-01-13 19:38:14 -03:00
Lactozilla
47b1bdf7c2 Reorganize code 2024-01-13 19:37:34 -03:00
Lactozilla
fbcc1d445c Changes:
Split code out of m_misc.c into m_writebuffer.c
Turned text buffer variables into a struct
Use F_DrawDialogText for speaker name and choices strings
Support multiline strings and color commands in page 'name' and choices 'text'
2024-01-13 19:35:09 -03:00
Lactozilla
a1bc2257cc Add 'COLOR' command 2024-01-13 18:25:22 -03:00
Lactozilla
8f99dad260 Make DIALOGUE parser show the line numbers where errors happen 2024-01-13 18:07:12 -03:00
Lactozilla
7b42e53aff Improve command parser and make case-insensitive 2024-01-13 17:41:37 -03:00
Lactozilla
3585e6ad42 Add 'NEXTPAGE' control code 2024-01-13 04:39:06 -03:00
Lactozilla
9eb8098157 Minor optimization and fix 2024-01-13 03:37:01 -03:00
Lactozilla
604a2637e6 Split p_dialog.c into p_dialogscript.c and usdf.c 2024-01-13 03:22:02 -03:00
Lactozilla
888df2a2d5 Handle parse errors more gracefully 2024-01-13 02:51:28 -03:00
Lactozilla
7c5d7882c2 Changes:
Make Tokenizer_Read capture quotation marks as individual tokens
Make DIALOGUE parser more strict about capturing strings
Make DIALOGUE parser treat identifiers and keywords as case-insensitive
Support multi-line page dialogs
2024-01-12 20:37:33 -03:00
Lactozilla
6c6efd9fb6 Change semantics of text speed
Now text speed 0 is used to type text immediately.
Text speed >= 1 works as it did before, but offset by one.
2024-01-12 18:18:13 -03:00
Lactozilla
5c4717e896 Rename 'PAUSE' to 'DELAY' and implement new 'PAUSE' command 2024-01-12 17:31:48 -03:00
Lactozilla
834c325740 Add 'CHARNAME' and 'PLAYERNAME' control codes 2024-01-12 16:06:51 -03:00
Lactozilla
e8b96f6dba Add 'NAME' and 'ICON' control codes 2024-01-12 14:51:14 -03:00
Lactozilla
1b9bd6d275 Implement new control codes for dialog text 2024-01-12 04:30:38 -03:00
Lactozilla
5f77d32385 Support escape characters in text prompt dialog 2024-01-12 00:25:08 -03:00
Lactozilla
28a7689521 No longer accept non-game controls as valid inputs for prompt choices 2024-01-11 23:29:17 -03:00
Lactozilla
ed2c4c8ee3 Changes:
Add G_IsGameControl as a shortcut to check if either gamecontrol is down
Support GC_FORWARD and GC_BACKWARD as up/down in text prompt choices
Improve splitscreen support
2024-01-11 23:26:59 -03:00
Lactozilla
82b1c9afcf Add USDF-SRB2 specification document 2024-01-11 22:43:12 -03:00
Lactozilla
4c438667a0 Rename choice 'executelinedefsbytag' to 'executelinedef'
Add 'executelinedef' to pages
2024-01-11 22:35:40 -03:00
Lactozilla
a48a476c07 Add P_StartTextPrompt and P_EndTextPrompt to Lua
Ignore conversations if they lack pages
2024-01-11 22:19:47 -03:00
Lactozilla
fc81853b5f Implement USDF-SRB2 parser 2024-01-11 21:44:58 -03:00
Lactozilla
17d0dd832b Refactor tokenizer 2024-01-11 14:04:17 -03:00