145 Commits

Author SHA1 Message Date
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
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
ed508fadd5
Add IRenderer::ClearCache 2019-07-14 23:53:10 +09:00
yvt
3960f47cc8
Deprecate cvar editing via chat window 2019-07-14 23:07:55 +09:00
yvt
4c041ea8e1
Implement the UI for the command name autocompletion 2019-07-14 20:37:50 +09:00
yvt
cacec5b470
Invoke View::ExecCommand from the console window 2019-07-14 14:59:58 +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
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
4ffd817056
Add ModelRenderParam::{castShadow, unlit} 2019-05-25 12:10:51 +09:00
yvt
c654b7074b TextViewer: Support text selection and the copy operation
Fixes #417.
2017-12-30 23:23:07 +09:00
yvt
8e7cf01492 Refactor AngelScript code
Split huge source files
2017-12-30 22:06:38 +09:00
yvt
604d82eee4 Fix #592 2017-12-30 21:19:21 +09:00
yvt
5948ef1a2a Exclude unknown configs in the in-game config editor
Fixes #693.
2017-12-30 21:02:36 +09:00
yvt
228f1b1ee5 Remove C++ definitions of some config variables
The following config variables are no longer accessed by the C++ code
directly:

- cg_lastQuickConnectHost
- cg_playerName (not to be confused with cg_playerNames)

The AngelScript code still uses them, though.
2017-09-11 21:03:18 +09:00
yvt
22cda2a1fe Prevent client commands from being sent to the server
Client commands (e.g, /r_bloom 1) typed in the chat window are no longer
send to the server.

Also, the function CheckConfigVariableSet was renamed to
CheckAndSetConfigVariable to make its intent more clear.

Fixes #657.
2017-09-10 20:38:50 +09:00
Flavio Monteiro
d924d75ba1 Fix Resources/Scripts/Base/Utils.as weird formatting 2017-08-28 19:16:46 -03:00
yvt
8e8f2a8772 (Hopefully) fixes #577 2017-02-25 21:19:19 +09:00
yvt
f52f840256 Add translator comments 2017-02-11 16:38:24 +09:00
yvt
7272c067a7 Automatic update check
Fixes #526.
2017-01-30 01:02:40 +09:00
yvt
66c4b6b91a Limit the range of cg_fov
Fixes #549.
2017-01-29 19:58:49 +09:00
yvt
2ad5074d9c Rename SetSoundAmbience to SetSoundEnvironment 2017-01-07 03:55:39 +09:00
yvt
7a14c39911 Enhancement to weapon sound effects 2017-01-06 04:01:10 +09:00
yvt
75b7b97ff1 Set initial value for cg_protocolVersion 2017-01-05 05:31:43 +09:00
yvt
a7b9909b2e Refactoring 2017-01-05 03:03:39 +09:00
yvt
6673b6c56c Update sprint animation 2017-01-04 23:17:07 +09:00
yvt
c878a8f7aa Add GUI for SSAO 2017-01-01 17:48:53 +09:00
yvt
2ecbd554b4 Support Ogg Opus audio files (.opus) on macOS 2016-12-18 00:45:17 +09:00
yvt
2c1893e2d0 Make the locale selector slightly bigger in size 2016-12-16 05:09:43 +09:00
yvt
d505bfae91 Expose “FontManager” to the scripting environment 2016-12-16 05:05:23 +09:00
João Rodrigues
745f062e31 Fix typo. 2016-12-10 19:05:47 +00:00
yvt
85fe0b94ac Fix typo 2016-12-08 10:39:15 +09:00
YVT
5b887ddb96 Provide an option to browse the config directory (#481)
Fixes #268.
2016-12-08 04:40:33 +09:00
yvt
7c615bd259 Provide an option to reset all settings
Can be found in Startup configuration window -> Generic tab.
Fixes #360.
2016-12-08 01:29:41 +09:00
Marco Schlumpp
f198d7b824
Render favorite servers with yellow text and blue background. 2016-12-03 20:04:16 +01:00
Marco Schlumpp
986e27436b
Implement simple favorite system. 2016-12-03 20:04:11 +01:00
Marco Schlumpp
b0c0e6d945
Add Rightclick to Button. 2016-12-03 19:49:44 +01:00
Tomoaki Kawada
2be6524d02 Implement language switcher
Fixes #445.
2016-12-04 00:22:05 +09:00
Tomoaki Kawada
4d964d6595 Add more camera shake (cg_shake 2) and additional movements of view weapons 2016-11-22 01:25:22 +09:00
Tomoaki Kawada
29c42d950b Double-click to join a server
Fixes #228.
2016-11-20 18:58:52 +09:00
Tomoaki Kawada
5e3b41b8ed Provide more game experience options
- Fixes #448. (Setting `cg_animations` to `0` disables the ADS animation)
2016-11-20 18:13:49 +09:00
VelocityRa
30ab74f860 Correct typo in a setting's description 2016-11-19 14:59:54 +02:00
Tomoaki Kawada
e93ea36536 Fix spades::ui::Field to raise “changed” event when a user hits Ctrl+X 2016-11-11 21:58:26 +09:00
Tomoaki Kawada
c2dce413a9 Let player decide their player name upon first launch (fix #432) 2016-11-11 21:57:24 +09:00