1804 Commits

Author SHA1 Message Date
yvt
3c90eedfb8 Add Handle::operator== 2019-07-16 01:18:26 +09:00
yvt
07cdbf9d1d
Add some functions related to stmp::optional 2019-07-16 01:18:09 +09:00
yvt
8aa52a40fb
Add const to GameMap's methods 2019-07-16 01:17:47 +09:00
YVT
ed5875181a
Merge pull request #842 from yvt/feature-system-console
Add internal console window
2019-07-16 00:31:36 +09:00
YVT
dc5225d4a1
Merge branch 'master' into feature-system-console 2019-07-16 00:08:03 +09:00
yvt
5eab672881
Clear TextViewer's selection when Text is changed 2019-07-15 23:49:31 +09:00
yvt
64438390fa
Fix crash on clicking empty TextViewer
Closes #843.
2019-07-15 23:48:16 +09:00
yvt
eb086b2165
Update a doc comment 2019-07-15 23:45:59 +09:00
yvt
18911042e7
Merge remote-tracking branch 'origin/master' into feature-system-console 2019-07-15 09:08:09 +09:00
yvt
797dbd755f
Do not initialize 3D before displaying "NOW LOADING"
Fixes the regression introduced by `ConsoleScreen`.
2019-07-15 00:22:30 +09:00
yvt
781056ef70
Fix small peculiarities with the system console's input field
- Hide the candidates after hitting Enter
- Fix the weird hard-to-describe behavior when navigating through the
  input history
2019-07-15 00:19:17 +09:00
yvt
abcf65d536
Add clearsfxcache console command 2019-07-15 00:08:02 +09:00
yvt
2a1c28d7d1
Add cleargfxcache console command 2019-07-14 23:58:46 +09:00
yvt
ed508fadd5
Add IRenderer::ClearCache 2019-07-14 23:53:10 +09:00
yvt
37982aa020 Replace std::map with std::unordered_map
Because we do not support MSVC 2010 anymore.
2019-07-14 23:48:06 +09:00
YVT
33b6aa370c
Remove unnecessary code 2019-07-14 23:45:13 +09:00
yvt
bb4675ca00
Add help console command 2019-07-14 23:34:40 +09:00
yvt
008c687e83
Raise the buffer size limit of BoundedLogBuffer 2019-07-14 23:22:20 +09:00
yvt
3960f47cc8
Deprecate cvar editing via chat window 2019-07-14 23:07:55 +09:00
yvt
a9561991c3
Add savemap console command 2019-07-14 22:29:15 +09:00
yvt
d0dfb188f0
Remove unnecessary code 2019-07-14 22:06:58 +09:00
yvt
8f12984882
Hide unrecognized config variables from autocompletion 2019-07-14 21:31:26 +09:00
yvt
4c041ea8e1
Implement the UI for the command name autocompletion 2019-07-14 20:37:50 +09:00
yvt
8616b5b509
Get the config variable autocompletion working 2019-07-14 20:36:56 +09:00
yvt
dd071637d6
Fix MergeConsoleCommandCandidates 2019-07-14 20:36:27 +09:00
yvt
5794acbc18
Register the assignment behavior of ConsoleCommandCandidate 2019-07-14 20:36:12 +09:00
yvt
1634c61512
Expose the command name autocompletion to the script 2019-07-14 19:51:30 +09:00
yvt
e4efc8b5fc
Autocomplete config variables 2019-07-14 19:15:30 +09:00
yvt
bfe746abca
Remove C++20 constructs 2019-07-14 18:41:13 +09:00
yvt
e57e9655dd
Implement console-related methods on MainScreen 2019-07-14 18:32:42 +09:00
yvt
93cccdecf9
Add View::AutocompleteCommandName 2019-07-14 18:29:50 +09:00
yvt
0ade4b6356
Add console commands for accessing config variables 2019-07-14 17:43:04 +09:00
yvt
f4f9dce529
Add #pragma once 2019-07-14 17:26:19 +09:00
yvt
6b415aa7d4
Redirect SPLog to the console window 2019-07-14 16:02:07 +09:00
yvt
cacec5b470
Invoke View::ExecCommand from the console window 2019-07-14 14:59:58 +09:00
yvt
bb7c84b2c2
Add View::ExecCommand 2019-07-14 14:31:51 +09:00
yvt
1f10dc82ca
Add SPADES_MARK_FUNCTION() 2019-07-14 14:14:04 +09:00
yvt
070707c892
Implement the script side of the console window 2019-07-14 14:13:34 +09:00
yvt
a9edb61512
Add TextViewer.RemoveFirstLines
This method is used to remove old log lines from the console window.
2019-07-14 13:22:51 +09:00
yvt
3ca9948d50 Fix CScriptArray::RemoveRange
- The count parameters of `memmove` was incorrectly calculated.
- The use of `memmove` would be UB here because of region overlap.
2019-07-14 13:20:33 +09:00
yvt
c6edd641ca
Hide the console window when the escape key is pressed 2019-07-14 11:31:53 +09:00
yvt
d6f5370581
Add the console window (WIP) 2019-07-14 01:38:28 +09:00
yvt
b02ad53109 Add View::RunFrameLate
`IRenderer::{FrameDone, Flip}` are now called in `RunFrameLate` instead.
This makes it possible to create a `View` wrapping another `View` to
insert a new 2D drawing pass, which is necessary to render the system
console.
2019-07-14 00:29:36 +09:00
yvt
c37a013157 clang-format AngleScript source files
Unsurprisingly it doesn't support AngelScript, so the Java language mode
is used instead. The overall result seems good, but there's one problem:
Long statements starting with `@something = ` (object handle assignment)
are broken after the `@`. To work-around this, I had to set
`ColumnLimit` to `100`.
2019-07-13 23:45:47 +09:00
yvt
cb89824f32
clang-format 2019-06-09 13:44:05 +09:00
YVT
c2677c0465
Merge pull request #832 from otzade/fix-minimap
Fix minimap
2019-06-09 13:43:05 +09:00
YVT
1c1b883fe6
Merge pull request #833 from otzade/block
Use model for block cursor instead of debug lines
2019-05-27 11:28:42 +09:00
YVT
9455f8598f
Merge pull request #836 from devnexen/little_fix_proposals
Little code changes proposal.
2019-05-26 17:06:24 +09:00
David Carlier
6ef18bd0cd Little code changes proposal.
Modern C++ stricter with member initialisation order.
Destructor possibly throwing exception through assertions.
In debug mode, pretty important memory leak with zip archives.
2019-05-26 07:18:39 +01:00
otzade
ab83d7639b Merge remote-tracking branch 'upstream/master' into block 2019-05-26 00:53:38 +03:00