Subversion Repositories eduke32

Rev

Show changed files | Details | Compare with Previous | Blame | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
8659 567d 12h hendricks266 /source/duke3d/src/text.cpp Move minitext_lowercase calculation to a new G_InitText() in text.cpp  
8658 567d 12h hendricks266 /source/duke3d/src/text.cpp screentext: Big refactor to take an array of tilenums (or control codes) instead of a C string  
8657 567d 12h hendricks266 /source/duke3d/src/text.cpp screentext: Remove TEXT_LINEWRAP  
8656 567d 12h hendricks266 /source/duke3d/src/text.cpp screentext: Move TEXT_{INTERNAL,TILE}{SPACE,LINE} handling off the critical path  
8653 567d 12h hendricks266 /source/duke3d/src/text.cpp screentext: Move ROTATESPRITE_FULL16 handling out of critical path  
8650 567d 12h hendricks266 /source/duke3d/src/text.cpp Move screentext to engine  
8649 567d 12h hendricks266 /source/duke3d/src/text.cpp Rename screentext.cpp to text.cpp  
7925 772d 17h terminx /source/duke3d/src/text.cpp Tiny error message cleanup  
7776 803d 19h terminx /source/duke3d/src/text.cpp This is just syntax and formatting

No functional changes.
 
7705 816d 8h terminx /source/duke3d/src/text.cpp Added Xfree() function to accompany the Xmalloc() family of functions and change all uses of Bfree() to Xfree()

This was necessary because everything is already allocated with the Xmalloc() functions, but a future commit will make blocks allocated with those functions no longer compatible with the system implementation of free(), which Bfree() wraps.
 
7673 853d 15h terminx /source/duke3d/src/text.cpp Convert loops using unsigned integers as iterators to use regular signed ints instead

https://kristerw.blogspot.com/2016/02/how-undefined-signed-overflow-enables.html

Doing this as cleanly as possible involved demoting several function parameters concerning object sizes and counts from size_t to int--I'm fine with this change as the functions in question are not actually capable of handling input with sizes larger than what can be stored in a signed 32-bit integer, making the use of size_t here misleading at best.
 
7335 942d 14h hendricks266 /source/duke3d/src/text.cpp Fix a mistake in r7322

Patch from Fox.
 
7322 962d 10h terminx /source/duke3d/src/text.cpp screentext alignment patch from Fox  
6829 1254d 22h terminx /source/duke3d/src/text.cpp Continuing the quest for clearer function names  
6684 1304d 6h hendricks266 /source/duke3d/src/text.cpp Some screentext fixes (that don't affect CON scripts)  
6613 1328d 17h hendricks266 /source/duke3d/src/text.cpp Systematize the appearance of the menu fonts using the DOS version as a reference.

New events:
"EVENT_MENUCURSORLEFT"
"EVENT_MENUCURSORRIGHT"
"EVENT_MENUCURSORSHADE"
"EVENT_MENUSHADESELECTED"

New userdef structures:
"menu_shadedeselected"
"menu_shadedisabled"
"menutext_zoom"
"menutext_xspace"
"menutext_pal"
"menutext_palselected"
"menutext_paldeselected"
"menutext_paldisabled"
"menutext_palselected_right"
"menutext_paldeselected_right"
"menutext_paldisabled_right"
"gametext_zoom"
"gametext_xspace"
"gametext_pal"
"gametext_palselected"
"gametext_paldeselected"
"gametext_paldisabled"
"gametext_palselected_right"
"gametext_paldeselected_right"
"gametext_paldisabled_right"
"minitext_zoom"
"minitext_xspace"
"minitext_tracking"
"minitext_pal"
"minitext_palselected"
"minitext_paldeselected"
"minitext_paldisabled"
"minitext_palselected_right"
"minitext_paldeselected_right"
"minitext_paldisabled_right"
"menutitle_pal"
"slidebar_palselected"
"slidebar_paldisabled"

Self-explanatory. Use in conjunction with "menutext_tracking" and "gametext_tracking" ("mgametext_tracking" is now ignored).

The values for disabled shade is added to the selected or deselected shades. The palettes have a disabled > selected > deselected hierarchy, and are applied if not zero.

Patch from Fox
 
6598 1329d 15h hendricks266 /source/duke3d/src/text.cpp Remove function left behind in r6587.  
6588 1331d 15h hendricks266 /source/duke3d/src/text.cpp Add an option to move the status bar to the top of the screen in the Android version.

Restores a feature temporarily disabled in r6553.

Currently only supports the modern status bar.

Patch from Fox.
 
6587 1331d 15h hendricks266 /source/duke3d/src/text.cpp New userdef structure: "statusbarflags", "statusbarrange", "statusbarcustom"

"statusbarflags" is a bitfield. Values are:
STATUSBAR_NONONE = 1
STATUSBAR_NOMINI = 2
STATUSBAR_NOFULL = 4
STATUSBAR_NOSHRINK = 8
STATUSBAR_NOFRAGBAR = 16
STATUSBAR_NOOVERLAY = 32
STATUSBAR_NOMODERN = 64
Default value is 8. In case you modify it, you also have to set the other status bar related userdefs in EVENT_SETDEFAULTS. Default values in EDuke32 are: screen_size = 4; statusbarmode = 1; althud = 1;

"statusbarrange" is used to add more alternatives for the status bar without breaking the option in the menu. If used, the mini status bar (screen_size = 4) will cycle through "statusbarcustom" when changing the screen size.

Also fix the size of the viewport when the screen is shrunk and the scale of the status bar is not 100%.

Patch from Fox.
 
6390 1513d 11h hendricks266 /source/duke3d/src/text.cpp Connect minitext_ to MF_Minifont.  

Show All