Baezon
7b6488aba2
array safety
2020-10-21 23:23:23 -04:00
Baezon
6808101e4a
much cleaner this way
2020-10-21 23:10:35 -04:00
Baezon
eae514a269
v1
2020-10-21 22:57:08 -04:00
Goober5000
3b2af702f7
refactor display_name for ships, ship classes, and weapon classes
...
Several things going on here:
1) refactor `get_display_string()` to `get_display_name()` to be more precise
2) likewise, refactor `alt_name` to `display_name`
3) automatically generate display names when parsing the ship, ship class, and weapon class for the first time
4) remove the on-the-fly truncation of names with hash symbols
Basically this subsumes the `end_string_at_first_hash_symbol` logic into the display name. Rather than truncate the name every time it's displayed, truncate it once when it's parsed. This takes advantage of the previous display name infrastructure, since display names are a superset of the case of truncating the hash symbol.
This also has the benefit of now allowing hash symbols within display names. When updating Destiny of Peace, I noticed that "Lockheed Shuttle #4 " would no longer display properly; and it was not previously possible to fix this even with display names.
I could pull out the `get_display_string()` and `alt_name` renaming into a separate PR if desired.
2020-08-21 00:15:38 -04:00
CasparKielwein
0692286bba
Remove dead code in hud directory.
...
Removed a lot of unused functions.
This is mostly a cleanup of a prior refactoring.
There where a lot of unimplemented functions remaining from renaming.
Removed several outcommented parts of code.
2018-12-26 20:40:20 +01:00
asarium
120750ebd2
Adress code review feedback
2018-06-04 11:56:45 +02:00
asarium
ae149b6061
Add convencience function for retrieving weapon alt name
...
I also fixed a few issues where the internal char array was used as a
mutable string which changed the string after it was parsed which is not
good(TM).
This also replaces all user-facing occurences of usages of name to use
the new function so that the correct, possibly translated, name is displayed
to the user.
2018-06-04 11:56:44 +02:00
asarium
bd3632d1bf
Enable remaining misc- checks and fix detected issues
2018-04-25 11:57:55 +02:00
asarium
eeed22b91a
Enable misc-unused-parameters
...
clang-tidy was used for fixing the warnings. It is not clear if this is
actually an improvement so this may still be disabled later.
2018-04-25 11:57:55 +02:00
asarium
2e0253e301
Add a mechanism for batching line draw calls
...
The previous version used NanoVG which caused quite a serious FPS drop.
This adds a buffer batching class which groups line drawing operations
together and submits them to the GPU with a single draw call.
2018-02-25 19:55:41 +01:00
asarium
e795327a3f
Add simple NanoVG draw buffer for better performance
...
This improves the rendering performance of the target hotkey brackets a
bit which caused a significant slowdown previously.
2018-01-20 18:32:39 +01:00
Yarn366
69f9d9f090
Make the target bracket gauge account for the sizes of the font and the attacker blip
2015-11-19 15:35:31 -05:00
asarium
b76bccb9ef
Actually set the bounds of the drawn subsystem
2015-08-22 17:16:42 +02:00
Goober5000
bd3cd7eb18
Merge pull request #195 from Echelon9/fix/sort-uniq-includes
...
Review and refactor #include's
2015-08-19 00:05:02 -04:00
Echelon9
29fa74fd63
Remove redundant parameter to draw_brackets_diamond_quick().
2015-07-01 23:07:17 +10:00
Echelon9
47af1ff851
Simplify duplicative hud/ includes.
2015-06-22 20:24:30 +10:00
Echelon9
c5493bb480
Scripted sort and uniq on (internal) project includes. Improves search time and as a by product removed a number of duplicative includes.
2015-06-22 20:24:30 +10:00
The_E
6e91857745
From Yarn: Fixes interface graphics scaling issues. If, for some reason, you want to have the interface graphics stretched, use the -stretch_menu commandline flag.
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10544 387891d4-d844-0410-90c0-e4c51a9137d3
2014-03-30 12:39:54 +10:00
niffiwan
797ffdf0f4
Fix mantis 2883
...
update hud_num_make_mono (& callers) to handle the font number
add partial support for specifying special char indexes for individual fonts
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9985 387891d4-d844-0410-90c0-e4c51a9137d3
2013-10-31 19:25:03 +10:00
niffiwan
5f5d13f2b6
Remove 2 unused hudbrackets functions (only with "#if 0" for now)
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9971 387891d4-d844-0410-90c0-e4c51a9137d3
2013-10-27 13:51:49 +10:00
Goober5000
4bd10888ff
make localization more robust with additional checks on string length, more consting, and stronger typing and make XSTR const, since we don't want to modify the strings it translates and then CONST ALL THE THINGS
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9809 387891d4-d844-0410-90c0-e4c51a9137d3
2013-09-26 18:51:34 +10:00
chief1983
4e5d3e2e57
Fix all the 'no newline at end of file' warnings I saw thrown by gcc on FreeBSD.
2012-11-02 17:30:17 +00:00
m_m
e2e3eeafed
Adding a few new scripting functions, including support for dockingpoint access for scripting and a function to draw HUD-like brackets around an arbitrary subsystem.
2012-10-12 16:14:47 +00:00
Echelon9
e20a418c94
PVS-Studio fix: The 'false' value is implicitly casted to the integer type.
2012-05-28 13:35:39 +00:00
Echelon9
13ca0a1c67
Remove redundant #includes to fs2open's internal linked list implementation
2012-04-08 01:39:34 +00:00
Echelon9
a0e59defd6
CJumpNode class code convention; convert to UpperCamelCase for class and function name; ensure all private variables adopt m_ prefix
2012-04-07 11:07:30 +00:00
Swifty
3affb86b52
Removed configOverride from HudGauge class since we don't even use it.
2012-02-05 03:41:31 +00:00
Echelon9
5bf63e8c8d
Third part of fixing jump_nodes refactor, remove the union approach to linking Jump_nodes into Objects[]. First go at clearing the FRED errors.
2011-11-19 04:07:30 +00:00
Echelon9
9f711bf53e
Documentation: General code cleanup for 64bit
2011-11-05 08:12:04 +00:00
IssMneur
0717ad3d13
PVS-Studio fix: V512 A call of the 'memcpy' function will lead to overflow of the buffer '& x'. (pstypes.h:131)
2011-09-08 05:39:53 +00:00
Goober5000
f3349119b8
end string at hash symbol for jump nodes too
2011-09-06 08:59:29 +00:00
Zacam
09fad95070
Antipodes 7 Merge: HUD Overhaul, by Swifty.
2010-12-12 20:34:15 +00:00
portej05
98f337f701
safe_strings - from Antipodes build #1
2009-07-27 16:06:24 +00:00
portej05
719825f80d
The big CVS comment removal. This chops approx. 3.5mb off a full checkout.
...
I've tested this through compiling and through hand checking.
Normalises line endings in ALL files to \n.
2009-06-20 08:08:20 +00:00
karajorma
a4e623db23
Portej05's preFAST warning fixes.
2009-05-17 11:50:48 +00:00
Goober5000
6e4021888d
add apostrophes to contractions, lol
2009-04-10 07:49:12 +00:00
Goober5000
570755309c
final tweak to callsign feature
2009-03-26 01:43:26 +00:00
Goober5000
ec427000eb
hopefully final revision of the callsign code
2009-01-19 20:56:36 +00:00
Goober5000
a832c11585
hopefully this should be the last on Mantis #1785 (the callsigns)
2008-10-21 06:17:44 +00:00
Goober5000
a0344aefae
uninitialized pointer bugfix and cleanup to hud_stuff_ship_name / hud_stuff_ship_class
...
send messages with ship class rather than ship name if ship name is hidden
2008-09-29 04:47:23 +00:00
Goober5000
f0e53971f6
redo the callsign feature to be independent of the alt name
...
(fixes Mantis #1785 )
2008-09-28 23:05:03 +00:00
Swifty
7e047b5c98
WMC's fix for RTT indexing and fix unnecessary slewing for 3D HUD elements.
2008-09-06 07:51:50 +00:00
WMCoolmon
74a6636bc6
Attempted HUD shake fixes
2008-08-30 10:59:10 +00:00
karajorma
ea02c08748
Add the Hide-ship-name ship flag
2008-06-22 16:55:29 +00:00
Backslash
251e565593
Add "orders hidden", "orders shown", and "wing name hidden" to iff_defs.tbl flags.
...
Use these flags instead of wcsaga command line for certain HUD displays.
2008-04-29 05:26:34 +00:00
Backslash
549589bdd2
One more little change involving #. Stupid pointers...
2008-04-24 02:16:10 +00:00
Backslash
0e86ab07b4
Whoops. Don't actually change the name, just the displayed name.
...
Also, don't forget the alternate type name.
2008-04-07 00:18:19 +00:00
Backslash
364e644cf0
Apply end_string_at_first_hash_symbol to ship names now.
...
This way people can use # to name duplicates of ships for fake nanojumps and other stuff like that, instead of Unicode characters.
2008-04-06 23:00:20 +00:00
taylor
2d6cc6cc8f
no reason to if-else the hud multiplier if it simply defaults to 1.0
...
add a little sanity checking for hud mutiplier tbl value
add missing multiplier for off-screen indicator
2007-11-22 05:19:47 +00:00
Backslash
c314641a80
The long-awaited HUD $Length Unit Multiplier setting! (With lots of help from KeldorKatarn)
...
Multiplies all speeds and distances displayed by the HUD by a given constant multiplier. The value is declared in hud_gauges.tbl (right after $Max Escort Ships) as
$Length Unit Multiplier: 5
2007-08-30 04:52:30 +00:00