268 Commits

Author SHA1 Message Date
Amos
963c189f35 Reset scroll position when AutoSuggest has updated 2022-01-20 00:24:41 +01:00
Amos
df3bfafce6 Register ConCommands as early as possible 2022-01-19 23:46:14 +01:00
Amos
f418d36e1b Add flags to registered ConCommands 2022-01-19 23:46:03 +01:00
Amos
03e700bac1 Move 'PrintLastError()' to utility.cpp 2022-01-19 23:14:50 +01:00
Amos
b1d3a01a71 Reset AutoComplete vars when "Submit" button is clicked 2022-01-19 23:12:43 +01:00
Amos
6c002049a9 Update win64_rrthreads.h 2022-01-19 19:07:45 +01:00
Amos
dd50004c61 Fix typo in sdklauncher.cpp
Thanks Julefox!
2022-01-19 19:03:59 +01:00
Amos
998de21d73 Implement new FileSystem hooks
The hooks will check if the file in question exist on the disk first before falling back to VPK or obtaining it from the cache.
2022-01-19 19:03:11 +01:00
Amos
540e219c22 Clamp Autocomplete window properly
* Fixed cases where the horizontal scrollbar would conceal the only item in the autocomplete window

* Add new ConVar to show help text next to ConVar in autocomplete. disabled by default to prevent it from being cluttered.
2022-01-19 19:03:04 +01:00
Amos
40204c6b84 Fix typo 2022-01-18 13:21:42 +01:00
Amos
c796a44aa9 Keep items within rect
The text was off by one unit after the last commit
2022-01-18 11:37:53 +01:00
Amos
6bc6996f9a Fixed scroll position bug out of scope + changed autocomplete scrolling behavior to that of Source console
Added new parameter for forcing default ImGui theme
2022-01-18 11:24:03 +01:00
Amos
60f3402fd6 Improve readability of AutoComplete suggestion ConVar values 2022-01-18 02:21:46 +01:00
Amos
66cdb6ff18 Fix std::string cast 2022-01-18 02:21:46 +01:00
Amos
2be10dbaa4 Fix PushStyleVar/PopStyleVar imbalance 2022-01-18 01:46:27 +01:00
Amos
57bc8fd6de Add 'interfaces.cpp' for dedicated 2022-01-18 01:45:36 +01:00
Amos
4b29892304 's_pInterfacesRegs' Pattern works for all supported builds 2022-01-18 01:21:24 +01:00
Amos
2c62fbfafe Use memset instead. Temporary fix for invisible 'AddLog' logs 2022-01-18 00:39:59 +01:00
Amos
a359ae25bc Small update
* IVEngineServer::PersistenceAvailable() only sets the persistence var in the CClient struct when 'g_bIsPersistenceVarSet[clientidx]' is false.  It sets it to true when a client connects and the var has been set. The var gets reset on any disconnection, and 'g_bIsPersistenceVarSet[clientidx]' gets set to false by CBaseClient::Clear()

* current Origin globals are already cross season compatible.
2022-01-17 23:26:42 +01:00
Amos
e28d9060c9 Update console.cpp 2022-01-17 23:21:54 +01:00
Amos
31db2ef7cb Clamp Server Browser window size 2022-01-17 23:21:50 +01:00
Amos
2bb02acd60 Implement autocomplete logic for in-game console.
Autocompletes based on user input.
Also shows ConVar's current value.
2022-01-17 23:21:43 +01:00
Amos
d4dc9d7c3e Implement new ImGui Input Text flag to move cursor to the end of char buffer 2022-01-17 23:21:19 +01:00
IcePixelx
55b708c9fe Comment regarding persistence and hardcoded variables. 2022-01-17 03:41:27 +01:00
IcePixelx
d5a466f7be New vfunc for CHLClient. 2022-01-17 03:35:40 +01:00
IcePixelx
e55ef3b510 Implemented Factories/Interface Classes. 2022-01-17 03:28:16 +01:00
IcePixelx
70057aca05 Fixed types of InterfaceGlobals_t 2022-01-17 02:51:22 +01:00
Amos
98bb9b4655 Fix clang-cl compilation 2022-01-16 12:52:17 +01:00
Amos
f695abc03f Update sdklauncher and reflect to readme 2022-01-16 12:48:56 +01:00
Amos
fc4a426ca2 Fix missing std::string casts 2022-01-16 12:40:25 +01:00
Amos
d21a947474 Fix hardcoded array size
Forgot about this one..
2022-01-16 03:26:19 +01:00
Amos
cbd04b495d Forgot to un-hardcode size of logo array for the for loop 2022-01-16 01:49:36 +01:00
Amos
381b97eb65 Remove unnecessary include
basetypes.h is now precompiled
2022-01-16 01:40:27 +01:00
Amos
b9af86b9c1 Implement terminal utilities for Windows console + add new colors for various output variations
* Add new SDK launch logo.
* Remove ansi-color coding from in-game console and file loggers.
* Improve console colors for Windows.
* Implement various string utilities.
* Implement various terminal utilities.
2022-01-16 01:33:07 +01:00
Amos
d182652211 Check and clear console vector even if console is not drawn
The vector could still overflow if user plays the game for a long time while not opening the console at least once.
2022-01-16 01:32:51 +01:00
Amos
f909635526 Separate SQVM function namespaces per VM type
* Separate based on VM type instead.
* Allow compilation for DEDICATED.
2022-01-16 00:35:39 +01:00
IcePixelx
4da14d7dde Cleaned up native server browser and commented functions. 2022-01-15 20:13:11 +01:00
r-ex
b366e4ce82
sq server browser clean up (#63)
* sq server browser clean up

* Properly loop through std::vector on GetAvailableMaps.

Co-authored-by: IcePixelx <41352111+PixieCore@users.noreply.github.com>
2022-01-15 18:57:18 +01:00
IcePixelx
829e122cea SQ Serverbrowser V1 push. Clean-up following after @r-ex fixed SQ things. 2022-01-15 15:25:19 +01:00
IcePixelx
29fe6be989 Fix pre-compiled headers for imgui_utility.cpp 2022-01-14 20:59:06 +01:00
Amos
f2f8a088bf Fix compiler error caused merge from separate branch 2022-01-14 20:51:32 +01:00
Amos
1c5df4e178 Ansi terminal color support + big optimizations on all log systems + 'Warning()' hook
* Ansi colors can now be enabled with the '-ansiclr- flag.
* All loggers have been optimized and are all initialized only once at process startup.
* New hook for 'Warning()' print function with warning level.
2022-01-14 20:48:16 +01:00
Amos
a14480e7cf Update stdafx.h 2022-01-14 20:46:42 +01:00
Amos
bdc67e90cb Set default spdlog level to trace 2022-01-14 20:46:30 +01:00
Amos
96ee434d4e Fix missing header errors for SpdLog 2022-01-14 20:46:19 +01:00
IcePixelx
6bbb16dcb9 Fix sendrequest crash. Due to htResults being null. 2022-01-14 20:39:11 +01:00
Amos
5612c7a3a7 This seems no longer needed for dedicated servers
Shader/texture assets are no longer loaded where the pointer parameters to the asset unloading function won't be out of scope anymore
2022-01-12 13:11:26 +01:00
Amos
e6254e3a03 Fix issue with ImGui windows where input could loose focus and not work
'ImGui_ImplWin32_WndProcHandler' has to be called at all times from the HwndProc handler as it has to track all events to prevent issues with input.
2022-01-12 13:11:18 +01:00
Amos
de3b3f53bd Optimizations + QoL improvements/cleanup
* IConsole overlay now clears the oldest log entries to stay under the vector limit instead of clearing the whole vector.
* IConsole code cleanup.
* IBrowser code cleanup, reordered class methods.
* Use ConVar utilities to get/set values for strings in IBrowser and IConsole.
* New ConVar's for RUI console overlay to tweak colors.
2022-01-12 02:56:17 +01:00
Amos
44102abbcc Execute dev configs when '-devsdk' parameter is passed 2022-01-10 02:47:19 +01:00